Diffstat (limited to 'mcon/U/groupstype.U')
1 files changed, 62 insertions, 0 deletions
diff --git a/mcon/U/groupstype.U b/mcon/U/groupstype.U
new file mode 100644
@@ -0,0 +1,62 @@
+?RCS: $Id: groupstype.U,v 18.104.22.168 1994/10/29 16:18:08 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: Original Author: Andy Dougherty <firstname.lastname@example.org>
+?RCS: $Log: groupstype.U,v $
+?RCS: Revision 22.214.171.124 1994/10/29 16:18:08 ram
+?RCS: patch36: no longer uses Setvar to set 'groupstype' (ADO)
+?RCS: patch36: typo fix in the word 'argument' (ADO)
+?RCS: Revision 126.96.36.199 1994/06/20 07:00:18 ram
+?RCS: patch30: created by ADO
+?MAKE:groupstype: gidtype d_getgrps Myread Oldconfig Findhdr cat
+?MAKE: -pick add $@ %<
+?S: This variable defines Groups_t to be something like gid_t, int,
+?S: ushort, or whatever type is used for the second argument to
+?S: getgroups(). Usually, this is the same of gidtype, but
+?S: sometimes it isn't.
+?C: This symbol holds the type used for the second argument to
+?C: getgroups(). Usually, this is the same of gidtype, but
+?C: sometimes it isn't. It can be int, ushort, uid_t, etc...
+?C: It may be necessary to include <sys/types.h> to get any
+?C: typedef'ed information. This is only required if you have
+?H:?%<:#define Groups_t $groupstype /* Type for 2nd arg to getgroups() */
+: Find type of 2nd arg to getgroups
+echo " "
+case "$d_getgrps" in
+ case "$groupstype" in
+ '') dflt="$gidtype" ;;
+ *) dflt="$groupstype" ;;
+ $cat <<EOM
+What is the type of the second argument to getgroups()? Usually this
+is the same as group ids, $gidtype, but not always.
+ rp='What type is the second argument to getgroups()?'
+ . ./myread