s/qmail  3.3.23
Next generation secure email transport
ndelay_off.c
Go to the documentation of this file.
1 #include <sys/types.h>
2 #include <fcntl.h>
3 #include "ndelay.h"
4 
5 #ifndef O_NONBLOCK
6 #define O_NONBLOCK O_NDELAY
7 #endif
8 
9 int ndelay_off(int fd)
10 {
11  return fcntl(fd,F_SETFL,fcntl(fd,F_GETFL,0) & ~O_NONBLOCK);
12 }
int fd
Definition: idedit.c:16
int ndelay_off(int fd)
Definition: ndelay_off.c:9
#define O_NONBLOCK
Definition: ndelay_off.c:6