1 /* $XConsortium: modelib.h /main/3 1995/11/01 18:47:23 rswiston $ */
2 /***************************************************************
6 * THIS IS PROPRIETARY SOURCE CODE LICENSED BY *
9 * Copyright (c) 1995 AT&T Corp. *
10 * All Rights Reserved *
12 * This software is licensed by AT&T Corp. *
13 * under the terms and conditions of the license in *
14 * http://www.research.att.com/orgs/ssr/book/reuse *
16 * This software was created by the *
17 * Software Engineering Research Department *
18 * AT&T Bell Laboratories *
20 * For further information contact *
21 * gsf@research.att.com *
23 ***************************************************************/
25 /* : : generated by proto : : */
29 * AT&T Bell Laboratories
31 * mode_t common definitions
35 #if !defined(__PROTO__)
36 #if defined(__STDC__) || defined(__cplusplus) || defined(_proto) || defined(c_plusplus)
37 #if defined(__cplusplus)
38 #define __MANGLE__ "C"
43 #define __PROTO__(x) x
45 #define __PARAM__(n,o) n
46 #if !defined(__STDC__) && !defined(__cplusplus)
47 #if !defined(c_plusplus)
58 #define __PROTO__(x) ()
59 #define __OTORP__(x) x
60 #define __PARAM__(n,o) o
68 #if defined(__cplusplus) || defined(c_plusplus)
69 #define __VARARG__ ...
73 #if defined(__STDARG__)
74 #define __VA_START__(p,a) va_start(p,a)
76 #define __VA_START__(p,a) va_start(p)
89 #define modetab _mode_table_ /* data hiding */
90 #define permmap _mode_permmap_ /* data hiding */
92 struct modeop /* ops for each char in mode string */
94 int mask1; /* first mask */
95 int shift1; /* first shift count */
96 int mask2; /* second mask */
97 int shift2; /* second shift count */
98 char* name; /* mode char using mask/shift as index */
101 extern __MANGLE__ struct modeop modetab[];
102 extern __MANGLE__ int permmap[];