/***********************************************************************1* *2* This software is part of the ast package *3* Copyright (c) 1985-2011 AT&T Intellectual Property *4* and is licensed under the *5* Eclipse Public License, Version 1.0 *6* by AT&T Intellectual Property *7* *8* A copy of the License is available at *9* http://www.eclipse.org/org/documents/epl-v10.html *10* (with md5 checksum b35adb5213ca9657e911e9befb180842) *11* *12* Information and Software Systems Research *13* AT&T Research *14* Florham Park NJ *15* *16* Glenn Fowler <[email protected]> *17* David Korn <[email protected]> *18* Phong Vo <[email protected]> *19* *20***********************************************************************/21#pragma prototyped22/*23* Glenn Fowler24* AT&T Research25*26* canonical mode_t representation27*/2829#ifndef _MODECANON_H30#define _MODECANON_H3132#define X_ITYPE(m) ((m)&X_IFMT)3334#define X_IFMT 017000035#define X_IFWHT 016000036#define X_IFDOOR 015000037#define X_IFSOCK 014000038#define X_IFLNK 012000039#define X_IFCTG 011000040#define X_IFREG 010000041#define X_IFBLK 006000042#define X_IFDIR 004000043#define X_IFCHR 002000044#define X_IFIFO 00100004546#define X_IPERM 000777747#define X_ISUID 000400048#define X_ISGID 000200049#define X_ISVTX 000100050#define X_IRUSR 000040051#define X_IWUSR 000020052#define X_IXUSR 000010053#define X_IRGRP 000004054#define X_IWGRP 000002055#define X_IXGRP 000001056#define X_IROTH 000000457#define X_IWOTH 000000258#define X_IXOTH 00000015960#define X_IRWXU (X_IRUSR|X_IWUSR|X_IXUSR)61#define X_IRWXG (X_IRGRP|X_IWGRP|X_IXGRP)62#define X_IRWXO (X_IROTH|X_IWOTH|X_IXOTH)6364#endif656667