diff options
author | Denis Vlasenko | 2006-12-24 07:15:50 +0000 |
---|---|---|
committer | Denis Vlasenko | 2006-12-24 07:15:50 +0000 |
commit | a5b3e76c38371c2c5781c11cfe5980aeb041e034 (patch) | |
tree | 8d71b29b19c05aa96220da4d14552d83a66f9b09 /libbb/xfuncs.c | |
parent | f4dff773553da8b4a5a66205e920a82732156851 (diff) | |
download | busybox-a5b3e76c38371c2c5781c11cfe5980aeb041e034.zip busybox-a5b3e76c38371c2c5781c11cfe5980aeb041e034.tar.gz |
missing piece of prev commit: ndelay_off
Diffstat (limited to 'libbb/xfuncs.c')
-rw-r--r-- | libbb/xfuncs.c | 11 |
1 files changed, 5 insertions, 6 deletions
diff --git a/libbb/xfuncs.c b/libbb/xfuncs.c index 136dd1c..827cbe8 100644 --- a/libbb/xfuncs.c +++ b/libbb/xfuncs.c @@ -121,18 +121,17 @@ int xopen3(const char *pathname, int flags, int mode) return ret; } -/* -int ndelay_off(int fd) -{ - return fcntl(fd,F_SETFL,fcntl(fd,F_GETFL,0) & ~O_NONBLOCK); -} -*/ // Turn on nonblocking I/O on a fd int ndelay_on(int fd) { return fcntl(fd,F_SETFL,fcntl(fd,F_GETFL,0) | O_NONBLOCK); } +int ndelay_off(int fd) +{ + return fcntl(fd,F_SETFL,fcntl(fd,F_GETFL,0) & ~O_NONBLOCK); +} + // Die with an error message if we can't write the entire buffer. void xwrite(int fd, const void *buf, size_t count) { |