1 /*********************************************************************** 2 * * 3 * This software is part of the ast package * 4 * Copyright (c) 1985-2007 AT&T Knowledge Ventures * 5 * and is licensed under the * 6 * Common Public License, Version 1.0 * 7 * by AT&T Knowledge Ventures * 8 * * 9 * A copy of the License is available at * 10 * http://www.opensource.org/licenses/cpl1.0.txt * 11 * (with md5 checksum 059e8cd6165cb4c31e351f2b69388fd9) * 12 * * 13 * Information and Software Systems Research * 14 * AT&T Research * 15 * Florham Park NJ * 16 * * 17 * Glenn Fowler <gsf@research.att.com> * 18 * David Korn <dgk@research.att.com> * 19 * Phong Vo <kpv@research.att.com> * 20 * * 21 ***********************************************************************/ 22 #pragma prototyped 23 /* 24 * Glenn Fowler 25 * AT&T Bell Laboratories 26 * 27 * fmtmode() and strperm() readonly data 28 * for external format modes 29 */ 30 31 #include "modelib.h" 32 33 struct modeop modetab[MODELEN] = 34 { 35 0170000, 12, 0000000, 0, "-pc?d?b?-Cl?sDw?", 36 0000400, 8, 0000000, 0, "-r", 37 0000200, 7, 0000000, 0, "-w", 38 0004000, 10, 0000100, 6, "-xSs", 39 0000040, 5, 0000000, 0, "-r", 40 0000020, 4, 0000000, 0, "-w", 41 #ifdef S_ICCTYP 42 0003000, 8, 0000010, 3, "-x-xSs-x", 43 #else 44 0002000, 9, 0000010, 3, "-xls", 45 #endif 46 0000004, 2, 0000000, 0, "-r", 47 0000002, 1, 0000000, 0, "-w", 48 #ifdef S_ICCTYP 49 0003000, 8, 0000001, 0, "-xyY-xeE", 50 #else 51 0001000, 8, 0000001, 0, "-xTt", 52 #endif 53 }; 54 55 int permmap[PERMLEN] = 56 { 57 S_ISUID, X_ISUID, 58 S_ISGID, X_ISGID, 59 S_ISVTX, X_ISVTX, 60 S_IRUSR, X_IRUSR, 61 S_IWUSR, X_IWUSR, 62 S_IXUSR, X_IXUSR, 63 S_IRGRP, X_IRGRP, 64 S_IWGRP, X_IWGRP, 65 S_IXGRP, X_IXGRP, 66 S_IROTH, X_IROTH, 67 S_IWOTH, X_IWOTH, 68 S_IXOTH, X_IXOTH 69 }; 70