path: root/mcon/U/i_sysfile.U
diff options
Diffstat (limited to 'mcon/U/i_sysfile.U')
1 files changed, 60 insertions, 0 deletions
diff --git a/mcon/U/i_sysfile.U b/mcon/U/i_sysfile.U
new file mode 100644
index 0000000..b1aa2a6
--- /dev/null
+++ b/mcon/U/i_sysfile.U
@@ -0,0 +1,60 @@
+?RCS: $Id: i_sysfile.U,v 1995/07/25 14:11:36 ram Exp $
+?RCS: Copyright (c) 1991-1993, Raphael Manfredi
+?RCS: You may redistribute only under the terms of the Artistic Licence,
+?RCS: as specified in the README file that comes with the distribution.
+?RCS: You may reuse parts of this distribution only within the terms of
+?RCS: that same Artistic Licence; a copy of which may be found at the root
+?RCS: of the source tree for dist 3.0.
+?RCS: $Log: i_sysfile.U,v $
+?RCS: Revision 1995/07/25 14:11:36 ram
+?RCS: patch56: removed <> characters from comment, per metalint suggestion
+?RCS: Revision 1993/08/25 14:01:23 ram
+?RCS: patch6: added default for i_sysfile
+?RCS: Revision 3.0 1993/08/18 12:08:31 ram
+?RCS: Baseline for dist 3.0 netwide release.
+?MAKE:i_sysfile: h_sysfile Inhdr Setvar
+?MAKE: -pick add $@ %<
+?S: This variable conditionally defines the I_SYS_FILE symbol, and indicates
+?S: whether a C program should include <sys/file.h> to get R_OK and friends.
+?C: This symbol, if defined, indicates to the C program that it should
+?C: include <sys/file.h> to get definition of R_OK and friends.
+?H:#$i_sysfile I_SYS_FILE /**/
+?LINT:set i_sysfile
+?LINT:change h_sysfile
+: see if this is a sys/file.h system
+set sys/file.h val
+eval $inhdr
+: do we need to include sys/file.h ?
+case "$val" in
+ echo " "
+ if $h_sysfile; then
+ val="$define"
+ echo "We'll be including <sys/file.h>." >&4
+ else
+ val="$undef"
+ echo "We won't be including <sys/file.h>." >&4
+ fi
+ ;;
+ h_sysfile=false
+ ;;
+set i_sysfile
+eval $setvar