ucspi-ssl
0.99e
TLS encryption for IPv6 communication
ucspi-ssl-0.99e
src
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
}
ndelay.h
ndelay_on
int ndelay_on(int fd)
Definition:
ndelay_on.c:11
O_NONBLOCK
#define O_NONBLOCK
Definition:
ndelay_on.c:8
Generated on Wed Jul 11 2018 22:50:46 for ucspi-ssl by
1.8.13