chiark
/
gitweb
/
~mdw
/
qmail
/ blame
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
blob
|
blame
(incremental) |
history
|
HEAD
addrcheck: Don't spew userv error messages at SMTP clients.
[qmail]
/
ndelay_off.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_off(fd)
10
int fd;
11
{
212b6f5d
12
return fcntl(fd,F_SETFL,fcntl(fd,F_GETFL,0) & ~O_NONBLOCK);
2117e02e
13
}