patch-1.3.81 linux/fs/pipe.c
Next file: linux/fs/proc/array.c
Previous file: linux/fs/Config.in
Back to the patch index
Back to the overall index
- Lines: 32
- Date:
Sat Mar 30 12:12:14 1996
- Orig file:
v1.3.80/linux/fs/pipe.c
- Orig date:
Mon Feb 19 13:29:08 1996
diff -u --recursive --new-file v1.3.80/linux/fs/pipe.c linux/fs/pipe.c
@@ -14,6 +14,11 @@
#include <linux/termios.h>
#include <linux/mm.h>
+/*
+ * Define this if you want SunOS compatibility wrt braindead
+ * select behaviour on FIFO's.
+ */
+#undef FIFO_SUNOS_BRAINDAMAGE
/* We don't use the head/tail construction any more. Now we use the start/len*/
/* construction providing full use of PIPE_BUF (multiple of PAGE_SIZE) */
@@ -169,6 +174,7 @@
return 0;
}
+#ifdef FIFO_SUNOS_BRAINDAMAGE
/*
* Arggh. Why does SunOS have to have different select() behaviour
* for pipes and fifos? Hate-Hate-Hate. See difference in SEL_IN..
@@ -194,6 +200,11 @@
}
return 0;
}
+#else
+
+#define fifo_select pipe_select
+
+#endif /* FIFO_SUNOS_BRAINDAMAGE */
/*
* The 'connect_xxx()' functions are needed for named pipes when
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