summaryrefslogtreecommitdiff
path: root/mcon/files/type.U
diff options
context:
space:
mode:
Diffstat (limited to 'mcon/files/type.U')
-rw-r--r--mcon/files/type.U47
1 files changed, 47 insertions, 0 deletions
diff --git a/mcon/files/type.U b/mcon/files/type.U
new file mode 100644
index 0000000..0a63b49
--- /dev/null
+++ b/mcon/files/type.U
@@ -0,0 +1,47 @@
+?RCS: $Id: type.U,v 3.0 1993/08/18 12:10:11 ram Exp $
+?RCS:
+?RCS: Copyright (c) 1991-1993, Raphael Manfredi
+?RCS:
+?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:
+?RCS: $Log: type.U,v $
+?RCS: Revision 3.0 1993/08/18 12:10:11 ram
+?RCS: Baseline for dist 3.0 netwide release.
+?RCS:
+?MAKE:uidtype: Myread Oldconfig contains usrinc
+?MAKE: -pick add $@ %<
+?S:uidtype:
+?S: This variable defines UIDTYPE to be something like uid_t, int,
+?S: ushort, or whatever type is used to declare user ids in the kernel.
+?S:.
+?C:Uid_t (UIDTYPE):
+?C: This symbol holds the type used to declare user ids in the kernel.
+?C: It can be int, ushort, uid_t, etc... It may be necessary to include
+?C: <sys/types.h> to get any typedef'ed information.
+?C:.
+?H:#define Uid_t $uidtype /* UID type */
+?H:.
+: see what type uids are declared as in the kernel
+case "$uidtype" in
+'')
+ if $contains 'uid_t;' $usrinc/sys/types.h >/dev/null 2>&1 ; then
+ dflt='uid_t';
+ else
+ set `grep '_ruid;' $usrinc/sys/user.h 2>/dev/null` unsigned short
+ case $1 in
+ unsigned) dflt="$1 $2" ;;
+ *) dflt="$1" ;;
+ esac
+ fi
+ ;;
+*) dflt="$uidtype";;
+esac
+echo " "
+rp="What type are user ids on this system declared as?"
+. myread
+uidtype="$ans"
+