aboutsummaryrefslogtreecommitdiff
path: root/libbb
diff options
context:
space:
mode:
authorvda <vda@69ca8d6d-28ef-0310-b511-8ec308f3f277>2006-12-24 07:15:50 +0000
committervda <vda@69ca8d6d-28ef-0310-b511-8ec308f3f277>2006-12-24 07:15:50 +0000
commit6069703f77422a0741ef1bc755b02d903a523482 (patch)
tree8d71b29b19c05aa96220da4d14552d83a66f9b09 /libbb
parent26a89ae157249617ddd8909ae0130fc22c65f693 (diff)
downloadbusybox-w32-6069703f77422a0741ef1bc755b02d903a523482.tar.gz
busybox-w32-6069703f77422a0741ef1bc755b02d903a523482.tar.bz2
busybox-w32-6069703f77422a0741ef1bc755b02d903a523482.zip
missing piece of prev commit: ndelay_off
git-svn-id: svn://busybox.net/trunk/busybox@17068 69ca8d6d-28ef-0310-b511-8ec308f3f277
Diffstat (limited to 'libbb')
-rw-r--r--libbb/xfuncs.c11
1 files changed, 5 insertions, 6 deletions
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)
121 return ret; 121 return ret;
122} 122}
123 123
124/*
125int ndelay_off(int fd)
126{
127 return fcntl(fd,F_SETFL,fcntl(fd,F_GETFL,0) & ~O_NONBLOCK);
128}
129*/
130// Turn on nonblocking I/O on a fd 124// Turn on nonblocking I/O on a fd
131int ndelay_on(int fd) 125int ndelay_on(int fd)
132{ 126{
133 return fcntl(fd,F_SETFL,fcntl(fd,F_GETFL,0) | O_NONBLOCK); 127 return fcntl(fd,F_SETFL,fcntl(fd,F_GETFL,0) | O_NONBLOCK);
134} 128}
135 129
130int ndelay_off(int fd)
131{
132 return fcntl(fd,F_SETFL,fcntl(fd,F_GETFL,0) & ~O_NONBLOCK);
133}
134
136// Die with an error message if we can't write the entire buffer. 135// Die with an error message if we can't write the entire buffer.
137void xwrite(int fd, const void *buf, size_t count) 136void xwrite(int fd, const void *buf, size_t count)
138{ 137{