OpenAFS
OpenAFS distributed network file system
|
00001 /* 00002 * Copyright 1991 by Vicent Archer. All rights reserved. 00003 * 00004 * Permission is hereby granted, free of charge, to any person obtaining a 00005 * copy of this software and associated documentation files (the "Software"), 00006 * to deal in the Software without restriction, including without limitation 00007 * the rights to use, copy, modify, merge, publish, distribute, sublicense, 00008 * and/or sell copies of the Software, and to permit persons to whom the 00009 * Software is furnished to do so, subject to the following conditions: 00010 * 00011 * The above copyright notice and this permission notice shall be included 00012 * in all copies or substantial portions of the Software. 00013 * 00014 * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS 00015 * OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, 00016 * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE 00017 * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER 00018 * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING 00019 * FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER 00020 * DEALINGS IN THE SOFTWARE. 00021 */ 00022 00023 #ifndef OPENAFS_WINNT_AFSD_PARSEMODE_H 00024 #define OPENAFS_WINNT_AFSD_PARSEMODE_H 00025 extern afs_uint32 parsemode(char *symbolic, afs_uint32 oldmode); 00026 00027 #define USR_MODES (S_ISUID|S_IRWXU) 00028 #define GRP_MODES (S_ISGID|S_IRWXG) 00029 #define EXE_MODES (S_IXUSR|S_IXGRP|S_IXOTH) 00030 #ifdef S_ISVTX 00031 #define ALL_MODES (USR_MODES|GRP_MODES|S_IRWXO|S_ISVTX) 00032 #else 00033 #define ALL_MODES (USR_MODES|GRP_MODES|S_IRWXO) 00034 #endif 00035 00036 #endif /* OPENAFS_WINNT_AFSD_PARSEMODE_H */