~mdw
/
qmail
/ blame
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
blob
|
blame
(incremental) |
history
|
HEAD
Ignore uninteresting files.
[qmail]
/
ndelay.c
Commit
Line
Data
2117e02e
MW
1
#include <sys/types.h>
2
#include <fcntl.h>
3
#include "ndelay.h"
4
212b6f5d
MW
5
#ifndef O_NONBLOCK
6
#define O_NONBLOCK O_NDELAY
7
#endif
8
2117e02e
MW
9
int ndelay_on(fd)
10
int fd;
11
{
212b6f5d
12
return fcntl(fd,F_SETFL,fcntl(fd,F_GETFL,0) | O_NONBLOCK);
2117e02e
13
}