ucspi-ssl  0.99e
TLS encryption for IPv6 communication
ndelay_on.c
Go to the documentation of this file.
1 /* Public domain. */
2 
3 #include <sys/types.h>
4 #include <fcntl.h>
5 #include "ndelay.h"
6 
7 #ifndef O_NONBLOCK
8 #define O_NONBLOCK O_NDELAY
9 #endif
10 
11 int ndelay_on(int fd)
12 {
13  return fcntl(fd,F_SETFL,fcntl(fd,F_GETFL,0) | O_NONBLOCK);
14 }
int ndelay_on(int fd)
Definition: ndelay_on.c:11
#define O_NONBLOCK
Definition: ndelay_on.c:8