From a5b3e76c38371c2c5781c11cfe5980aeb041e034 Mon Sep 17 00:00:00 2001 From: Denis Vlasenko Date: Sun, 24 Dec 2006 07:15:50 +0000 Subject: missing piece of prev commit: ndelay_off --- libbb/xfuncs.c | 11 +++++------ 1 file changed, 5 insertions(+), 6 deletions(-) (limited to 'libbb/xfuncs.c') diff --git a/libbb/xfuncs.c b/libbb/xfuncs.c index 136dd1cca..827cbe870 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) { -- cgit v1.2.3