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