This is a live mirror of the Perl 5 development currently hosted at https://github.com/perl/perl5
Populate metaconfig branch.
[metaconfig.git] / U / typedefs / modetype.U
1 ?RCS: $Id: modetype.U,v 3.0.1.1 1994/10/29 16:25:07 ram Exp $
2 ?RCS:
3 ?RCS: Copyright (c) 1991-1993, Raphael Manfredi
4 ?RCS: 
5 ?RCS: You may redistribute only under the terms of the Artistic Licence,
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
8 ?RCS: that same Artistic Licence; a copy of which may be found at the root
9 ?RCS: of the source tree for dist 3.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:
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 
22 ?S:     modes for system calls.
23 ?S:.
24 ?C:Mode_t:
25 ?C:     This symbol holds the type used to declare file modes 
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 ?LINT:set modetype
33 : see what type is used for mode_t
34 rp="What is the type used for file modes for system calls (e.g. fchmod())?"
35 set mode_t modetype int stdio.h sys/types.h
36 eval $typedef_ask
37