1 2 /* : : generated by proto : : */ 3 /*********************************************************************** 4 * * 5 * This software is part of the ast package * 6 * Copyright (c) 1985-2007 AT&T Knowledge Ventures * 7 * and is licensed under the * 8 * Common Public License, Version 1.0 * 9 * by AT&T Knowledge Ventures * 10 * * 11 * A copy of the License is available at * 12 * http://www.opensource.org/licenses/cpl1.0.txt * 13 * (with md5 checksum 059e8cd6165cb4c31e351f2b69388fd9) * 14 * * 15 * Information and Software Systems Research * 16 * AT&T Research * 17 * Florham Park NJ * 18 * * 19 * Glenn Fowler <gsf@research.att.com> * 20 * David Korn <dgk@research.att.com> * 21 * Phong Vo <kpv@research.att.com> * 22 * * 23 ***********************************************************************/ 24 25 /* 26 * AT&T Research 27 * 28 * external mode_t representation support 29 */ 30 31 #ifndef _MODEX_H 32 #if !defined(__PROTO__) 33 #include <prototyped.h> 34 #endif 35 #if !defined(__LINKAGE__) 36 #define __LINKAGE__ /* 2004-08-11 transition */ 37 #endif 38 39 #define _MODEX_H 40 41 #include <ast_fs.h> 42 #include <modecanon.h> 43 44 #if _BLD_ast && defined(__EXPORT__) 45 #undef __MANGLE__ 46 #define __MANGLE__ __LINKAGE__ __EXPORT__ 47 #endif 48 49 extern __MANGLE__ int modei __PROTO__((int)); 50 extern __MANGLE__ int modex __PROTO__((int)); 51 52 #undef __MANGLE__ 53 #define __MANGLE__ __LINKAGE__ 54 55 #if _S_IDPERM 56 #define modei(m) ((m)&X_IPERM) 57 #if _S_IDTYPE 58 #define modex(m) (m) 59 #endif 60 #endif 61 62 #endif 63