patch-1.3.96 linux/fs/fcntl.c
Next file: linux/fs/filesystems.c
Previous file: linux/fs/fat/msbuffer.h
Back to the patch index
Back to the overall index
- Lines: 11
- Date:
Thu Apr 25 13:32:41 1996
- Orig file:
v1.3.95/linux/fs/fcntl.c
- Orig date:
Mon Apr 8 19:01:44 1996
diff -u --recursive --new-file v1.3.95/linux/fs/fcntl.c linux/fs/fcntl.c
@@ -85,6 +85,10 @@
if (!(arg & FASYNC) && (filp->f_flags & FASYNC) &&
filp->f_op->fasync)
filp->f_op->fasync(filp->f_inode, filp, 0);
+ /* requiered for SunOS emulation */
+ if (O_NONBLOCK != O_NDELAY)
+ if (arg & O_NDELAY)
+ arg |= O_NONBLOCK;
filp->f_flags &= ~(O_APPEND | O_NONBLOCK | FASYNC);
filp->f_flags |= arg & (O_APPEND | O_NONBLOCK |
FASYNC);
FUNET's LINUX-ADM group, linux-adm@nic.funet.fi
TCL-scripts by Sam Shen, slshen@lbl.gov
with Sam's (original) version of this