Commit | Line | Data |
---|---|---|
c6667804 | 1 | ?RCS: $Id$ |
d8875586 MBT |
2 | ?RCS: |
3 | ?RCS: Copyright (c) 1991-1997, 2004-2006, Raphael Manfredi | |
cf39bd7e | 4 | ?RCS: |
c6667804 | 5 | ?RCS: You may redistribute only under the terms of the Artistic License, |
d8875586 MBT |
6 | ?RCS: as specified in the README file that comes with the distribution. |
7 | ?RCS: You may reuse parts of this distribution only within the terms of | |
c6667804 | 8 | ?RCS: that same Artistic License; a copy of which may be found at the root |
d8875586 MBT |
9 | ?RCS: of the source tree for dist 4.0. |
10 | ?RCS: | |
11 | ?RCS: Original Author: Andy Dougherty <doughera@lafcol.lafayette.edu> | |
12 | ?RCS: | |
13 | ?RCS: $Log: modetype.U,v $ | |
14 | ?RCS: Revision 3.0.1.1 1994/10/29 16:25:07 ram | |
15 | ?RCS: patch36: created by ADO | |
16 | ?RCS: | |
17 | ?MAKE:modetype: Myread Typedef | |
18 | ?MAKE: -pick add $@ %< | |
19 | ?S:modetype: | |
cf39bd7e MBT |
20 | ?S: This variable defines modetype to be something like mode_t, |
21 | ?S: int, unsigned short, or whatever type is used to declare file | |
d8875586 MBT |
22 | ?S: modes for system calls. |
23 | ?S:. | |
24 | ?C:Mode_t: | |
cf39bd7e | 25 | ?C: This symbol holds the type used to declare file modes |
d8875586 MBT |
26 | ?C: for systems calls. It is usually mode_t, but may be |
27 | ?C: int or unsigned short. It may be necessary to include <sys/types.h> | |
28 | ?C: to get any typedef'ed information. | |
29 | ?C:. | |
30 | ?H:#define Mode_t $modetype /* file mode parameter for system calls */ | |
31 | ?H:. | |
32 | : see what type is used for mode_t | |
33 | set mode_t modetype int stdio.h sys/types.h | |
34 | eval $typedef | |
35 | dflt="$modetype" | |
36 | echo " " | |
37 | rp="What type is used for file modes?" | |
38 | . ./myread | |
39 | modetype="$ans" | |
40 |