2 * This routine currently offers minimal functionality and was written at
3 * early stage of dhclient porting. Since then dhclient port architecture
4 * was reconsidered and this function was cancelled. If needed it can be
5 * reincarnated in future netlib versions to be fully functional and
6 * usable on any Level-1 file (or socket) descriptor.
11 #include <sys/filio.h>
12 #include <proto/socket.h>
14 int fcntl(int fd
, int cmd
, ...)
25 arg
= va_arg(a
, long);
31 res1
= IoctlSocket(fd
, FIONBIO
, (char *)&nbio
);
32 res2
= IoctlSocket(fd
, FIOASYNC
, (char *)&async
);