This is a live mirror of the Perl 5 development currently hosted at https://github.com/perl/perl5
Add the files from dist/meta to perl's repo
[metaconfig.git] / dist / U / modetype.U
CommitLineData
d8875586
MBT
1?RCS: $Id: modetype.U 1 2006-08-24 12:32:52Z rmanfredi $
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 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 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
33set mode_t modetype int stdio.h sys/types.h
34eval $typedef
35dflt="$modetype"
36echo " "
37rp="What type is used for file modes?"
38. ./myread
39modetype="$ans"
40