fehQlibs
26
Qlibs
Loading...
Searching...
No Matches
fehQlibs-26
src
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
16
int
ndelay_on
(
int
fd)
17
{
18
return
fcntl(fd,F_SETFL,fcntl(fd,F_GETFL,0) |
O_NONBLOCK
);
19
}
20
21
int
ndelay_off
(
int
fd)
22
{
23
return
fcntl(fd,F_SETFL,fcntl(fd,F_GETFL,0) & ~
O_NONBLOCK
);
24
}
O_NONBLOCK
#define O_NONBLOCK
Definition:
ndelay.c:13
ndelay_on
int ndelay_on(int fd)
Definition:
ndelay.c:16
ndelay_off
int ndelay_off(int fd)
Definition:
ndelay.c:21
ndelay.h
Generated on Sat Nov 2 2024 13:01:06 for fehQlibs by
1.9.6