Commit | Line | Data |
2304df62 |
1 | ?X: These units are based on the ones supplied with dist-3.0 |
2 | ?X: patchlevel 22. They have been changed or enhanced to work with |
3 | ?X: perl5alpha. I would appreciate hearing about any changes, |
4 | ?X: corrections, or enhancements. |
5 | ?X: Andy Dougherty doughera@lafcol.lafayette.edu |
6 | ?X: Dept. of Physics |
7 | ?X: Lafayette College |
8 | ?X: Easton, PA 18042-1782 |
9 | ?X: Sat Apr 2 15:45:17 EST 1994 |
10 | ?RCS: $Id: groupstype.U,v$ |
11 | ?RCS: |
12 | ?RCS: You may redistribute only under the terms of the Artistic Licence, |
13 | ?RCS: as specified in the README file that comes with the distribution. |
14 | ?RCS: You may reuse parts of this distribution only within the terms of |
15 | ?RCS: that same Artistic Licence; a copy of which may be found at the root |
16 | ?RCS: of the source tree for dist 3.0. |
17 | ?RCS: |
18 | ?RCS: $Log: groupstype.U,v $ |
19 | ?RCS: |
20 | ?MAKE:groupstype: gidtype d_getgrps Myread Oldconfig contains Findhdr |
21 | ?MAKE: -pick add $@ %< |
22 | ?INIT:groupstype='' |
23 | ?S:groupstype: |
24 | ?S: This variable defines GROUPSTYPE to be something like gid_t, int, |
25 | ?S: ushort, or whatever type is used for the second argument to |
26 | ?S: getgroups(). Usually, this is the same of gidtype, but |
27 | ?S: sometimes it isn't. |
28 | ?S:. |
29 | ?C:GROUPSTYPE: |
30 | ?C: This symbol holds the type used for the second argument to |
31 | ?C: getgroups(). Usually, this is the same of gidtype, but |
32 | ?C: sometimes it isn't. It can be int, ushort, uid_t, etc... |
33 | ?C: It may be necessary to include <sys/types.h> to get any |
34 | ?C: typedef'ed information. This is only required if you have |
35 | ?C: getgroups(). |
36 | ?C:. |
37 | ?H:?%<:#ifdef HAS_GETGROUPS |
38 | ?H:?%<:#define GROUPSTYPE $groupstype /* Type for 2nd arg to getgroups() */ |
39 | ?H:?%<:#endif |
40 | ?H:. |
41 | ?W:%<:getgroups HAS_GETGROUPS |
42 | case "$d_getgrps" in |
43 | 'define') |
44 | case "$groupstype" in |
45 | '') dflt="$gidtype" ;; |
46 | *) dflt="$groupstype" ;; |
47 | esac |
48 | echo " " |
49 | $cat <<EOM |
50 | What is the type of the second argument to getgroups()? Usually this |
51 | is the same as group ids, "$gidtype", but not always. |
52 | EOM |
53 | rp="What type is the second arguement to getgroups()?" |
54 | . ./myread |
55 | groupstype="$ans" |
56 | ;; |
57 | *) groupstype="$gidtype";; |
58 | esac |