fehQlibs 26
Qlibs
Loading...
Searching...
No Matches
ndelay.c
Go to the documentation of this file.
1#include <sys/types.h>
2#include <fcntl.h>
3#include "ndelay.h"
4
12#ifndef O_NONBLOCK
13#define O_NONBLOCK O_NDELAY
14#endif
15
16int ndelay_on(int fd)
17{
18 return fcntl(fd,F_SETFL,fcntl(fd,F_GETFL,0) | O_NONBLOCK);
19}
20
21int ndelay_off(int fd)
22{
23 return fcntl(fd,F_SETFL,fcntl(fd,F_GETFL,0) & ~O_NONBLOCK);
24}
#define O_NONBLOCK
Definition: ndelay.c:13
int ndelay_on(int fd)
Definition: ndelay.c:16
int ndelay_off(int fd)
Definition: ndelay.c:21