From a8f4e457f484a80469cbcc3f47760f3a6c51c589 Mon Sep 17 00:00:00 2001 From: "B. Watson" Date: Sun, 27 Apr 2014 10:18:18 -0500 Subject: system/csh: Added (C shell from BSD) Signed-off-by: Erik Hanson --- system/csh/bufsiz.diff | 30 ++++++++++++++++++++++++++++++ 1 file changed, 30 insertions(+) create mode 100644 system/csh/bufsiz.diff (limited to 'system/csh/bufsiz.diff') diff --git a/system/csh/bufsiz.diff b/system/csh/bufsiz.diff new file mode 100644 index 0000000000000..21d58a124a237 --- /dev/null +++ b/system/csh/bufsiz.diff @@ -0,0 +1,30 @@ +diff -Naur csh-20110502.orig/csh.h csh-20110502.patched/csh.h +--- csh-20110502.orig/csh.h 2014-04-25 17:31:52.000000000 -0400 ++++ csh-20110502.patched/csh.h 2014-04-25 17:34:08.000000000 -0400 +@@ -36,12 +36,10 @@ + * Fundamental definitions which may vary from system to system. + * + * BUFSIZ The i/o buffering size; also limits word size ++ * 20140425 bkw: moved below the #include since ++ * we want to use the system's default BUFSIZ. + * MAILINTVL How often to mailcheck; more often is more expensive + */ +-#ifndef BUFSIZ +-#define BUFSIZ 1024 /* default buffer size */ +-#endif /* BUFSIZ */ +- + #ifndef MAXPATHLEN + #define MAXPATHLEN BUFSIZ + #endif +@@ -96,6 +94,11 @@ + #include + FILE *cshin, *cshout, *csherr; + ++/* 20140425 bkw: moved here so stdio.h is what initially defines BUFSIZ. */ ++#ifndef BUFSIZ ++#define BUFSIZ 1024 /* default buffer size */ ++#endif /* BUFSIZ */ ++ + #include + #define fpurge __fpurge + -- cgit v1.2.3