7 int ioctl(
int fd,
int request, ...)
14 va_start(ap, request);
18 value = va_arg(ap,
int*);
24 flags =
fcntl(fd, F_GETFL, 0);
31 if(*value) ret =
fcntl(fd, F_SETFL, flags | O_NONBLOCK);
32 else ret =
fcntl(fd, F_SETFL, flags & ~O_NONBLOCK);
int fcntl(int fd, int cmd,...)
int ioctl(int fd, int request,...)