This is a live mirror of the Perl 5 development currently hosted at https://github.com/perl/perl5
[UTIL] Perl system does not default to $_
[metaconfig.git] / dist / U / modetype.U
1 ?RCS: $Id$
2 ?RCS:
3 ?RCS: Copyright (c) 1991-1997, 2004-2006, Raphael Manfredi
4 ?RCS: 
5 ?RCS: You may redistribute only under the terms of the Artistic License,
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 License; a copy of which may be found at the root
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:
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 : 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