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

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