modedata.c revision da2e3ebdc1edfbc5028edf1354e7dd2fa69a7968
da2e3ebdc1edfbc5028edf1354e7dd2fa69a7968chin/***********************************************************************
da2e3ebdc1edfbc5028edf1354e7dd2fa69a7968chin* *
da2e3ebdc1edfbc5028edf1354e7dd2fa69a7968chin* This software is part of the ast package *
da2e3ebdc1edfbc5028edf1354e7dd2fa69a7968chin* Copyright (c) 1985-2007 AT&T Knowledge Ventures *
da2e3ebdc1edfbc5028edf1354e7dd2fa69a7968chin* and is licensed under the *
da2e3ebdc1edfbc5028edf1354e7dd2fa69a7968chin* Common Public License, Version 1.0 *
da2e3ebdc1edfbc5028edf1354e7dd2fa69a7968chin* by AT&T Knowledge Ventures *
da2e3ebdc1edfbc5028edf1354e7dd2fa69a7968chin* *
da2e3ebdc1edfbc5028edf1354e7dd2fa69a7968chin* A copy of the License is available at *
da2e3ebdc1edfbc5028edf1354e7dd2fa69a7968chin* http://www.opensource.org/licenses/cpl1.0.txt *
da2e3ebdc1edfbc5028edf1354e7dd2fa69a7968chin* (with md5 checksum 059e8cd6165cb4c31e351f2b69388fd9) *
da2e3ebdc1edfbc5028edf1354e7dd2fa69a7968chin* *
da2e3ebdc1edfbc5028edf1354e7dd2fa69a7968chin* Information and Software Systems Research *
da2e3ebdc1edfbc5028edf1354e7dd2fa69a7968chin* AT&T Research *
da2e3ebdc1edfbc5028edf1354e7dd2fa69a7968chin* Florham Park NJ *
da2e3ebdc1edfbc5028edf1354e7dd2fa69a7968chin* *
da2e3ebdc1edfbc5028edf1354e7dd2fa69a7968chin* Glenn Fowler <gsf@research.att.com> *
da2e3ebdc1edfbc5028edf1354e7dd2fa69a7968chin* David Korn <dgk@research.att.com> *
da2e3ebdc1edfbc5028edf1354e7dd2fa69a7968chin* Phong Vo <kpv@research.att.com> *
da2e3ebdc1edfbc5028edf1354e7dd2fa69a7968chin* *
da2e3ebdc1edfbc5028edf1354e7dd2fa69a7968chin***********************************************************************/
da2e3ebdc1edfbc5028edf1354e7dd2fa69a7968chin#pragma prototyped
da2e3ebdc1edfbc5028edf1354e7dd2fa69a7968chin/*
da2e3ebdc1edfbc5028edf1354e7dd2fa69a7968chin * Glenn Fowler
da2e3ebdc1edfbc5028edf1354e7dd2fa69a7968chin * AT&T Bell Laboratories
da2e3ebdc1edfbc5028edf1354e7dd2fa69a7968chin *
da2e3ebdc1edfbc5028edf1354e7dd2fa69a7968chin * fmtmode() and strperm() readonly data
da2e3ebdc1edfbc5028edf1354e7dd2fa69a7968chin * for external format modes
da2e3ebdc1edfbc5028edf1354e7dd2fa69a7968chin */
da2e3ebdc1edfbc5028edf1354e7dd2fa69a7968chin
da2e3ebdc1edfbc5028edf1354e7dd2fa69a7968chin#include "modelib.h"
da2e3ebdc1edfbc5028edf1354e7dd2fa69a7968chin
da2e3ebdc1edfbc5028edf1354e7dd2fa69a7968chinstruct modeop modetab[MODELEN] =
da2e3ebdc1edfbc5028edf1354e7dd2fa69a7968chin{
da2e3ebdc1edfbc5028edf1354e7dd2fa69a7968chin 0170000, 12, 0000000, 0, "-pc?d?b?-Cl?sDw?",
da2e3ebdc1edfbc5028edf1354e7dd2fa69a7968chin 0000400, 8, 0000000, 0, "-r",
da2e3ebdc1edfbc5028edf1354e7dd2fa69a7968chin 0000200, 7, 0000000, 0, "-w",
da2e3ebdc1edfbc5028edf1354e7dd2fa69a7968chin 0004000, 10, 0000100, 6, "-xSs",
da2e3ebdc1edfbc5028edf1354e7dd2fa69a7968chin 0000040, 5, 0000000, 0, "-r",
da2e3ebdc1edfbc5028edf1354e7dd2fa69a7968chin 0000020, 4, 0000000, 0, "-w",
da2e3ebdc1edfbc5028edf1354e7dd2fa69a7968chin#ifdef S_ICCTYP
da2e3ebdc1edfbc5028edf1354e7dd2fa69a7968chin 0003000, 8, 0000010, 3, "-x-xSs-x",
da2e3ebdc1edfbc5028edf1354e7dd2fa69a7968chin#else
da2e3ebdc1edfbc5028edf1354e7dd2fa69a7968chin 0002000, 9, 0000010, 3, "-xls",
da2e3ebdc1edfbc5028edf1354e7dd2fa69a7968chin#endif
da2e3ebdc1edfbc5028edf1354e7dd2fa69a7968chin 0000004, 2, 0000000, 0, "-r",
da2e3ebdc1edfbc5028edf1354e7dd2fa69a7968chin 0000002, 1, 0000000, 0, "-w",
da2e3ebdc1edfbc5028edf1354e7dd2fa69a7968chin#ifdef S_ICCTYP
da2e3ebdc1edfbc5028edf1354e7dd2fa69a7968chin 0003000, 8, 0000001, 0, "-xyY-xeE",
da2e3ebdc1edfbc5028edf1354e7dd2fa69a7968chin#else
da2e3ebdc1edfbc5028edf1354e7dd2fa69a7968chin 0001000, 8, 0000001, 0, "-xTt",
da2e3ebdc1edfbc5028edf1354e7dd2fa69a7968chin#endif
da2e3ebdc1edfbc5028edf1354e7dd2fa69a7968chin};
da2e3ebdc1edfbc5028edf1354e7dd2fa69a7968chin
da2e3ebdc1edfbc5028edf1354e7dd2fa69a7968chinint permmap[PERMLEN] =
da2e3ebdc1edfbc5028edf1354e7dd2fa69a7968chin{
da2e3ebdc1edfbc5028edf1354e7dd2fa69a7968chin S_ISUID, X_ISUID,
da2e3ebdc1edfbc5028edf1354e7dd2fa69a7968chin S_ISGID, X_ISGID,
da2e3ebdc1edfbc5028edf1354e7dd2fa69a7968chin S_ISVTX, X_ISVTX,
da2e3ebdc1edfbc5028edf1354e7dd2fa69a7968chin S_IRUSR, X_IRUSR,
da2e3ebdc1edfbc5028edf1354e7dd2fa69a7968chin S_IWUSR, X_IWUSR,
da2e3ebdc1edfbc5028edf1354e7dd2fa69a7968chin S_IXUSR, X_IXUSR,
da2e3ebdc1edfbc5028edf1354e7dd2fa69a7968chin S_IRGRP, X_IRGRP,
da2e3ebdc1edfbc5028edf1354e7dd2fa69a7968chin S_IWGRP, X_IWGRP,
da2e3ebdc1edfbc5028edf1354e7dd2fa69a7968chin S_IXGRP, X_IXGRP,
da2e3ebdc1edfbc5028edf1354e7dd2fa69a7968chin S_IROTH, X_IROTH,
da2e3ebdc1edfbc5028edf1354e7dd2fa69a7968chin S_IWOTH, X_IWOTH,
da2e3ebdc1edfbc5028edf1354e7dd2fa69a7968chin S_IXOTH, X_IXOTH
da2e3ebdc1edfbc5028edf1354e7dd2fa69a7968chin};