00001 /* 00002 Copyright (c) 2000-2008, Dirk Krause 00003 All rights reserved. 00004 00005 Redistribution and use in source and binary forms, 00006 with or without modification, are permitted provided 00007 that the following conditions are met: 00008 00009 * Redistributions of source code must retain the above 00010 copyright notice, this list of conditions and the 00011 following disclaimer. 00012 * Redistributions in binary form must reproduce the above 00013 opyright notice, this list of conditions and the following 00014 disclaimer in the documentation and/or other materials 00015 provided with the distribution. 00016 * Neither the name of the Dirk Krause nor the names of 00017 contributors may be used to endorse or promote 00018 products derived from this software without specific 00019 prior written permission. 00020 00021 THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND 00022 CONTRIBUTORS "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, 00023 INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF 00024 MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE 00025 DISCLAIMED. 00026 IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE 00027 LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, 00028 EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT 00029 LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; 00030 LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) 00031 HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN 00032 CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE 00033 OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS 00034 SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH 00035 DAMAGE. 00036 */ 00037 00042 #ifndef DK_SFC_INC 00043 00045 #define DK_SFC_INC 1 00046 00048 #define DK_FT_REG 1 00049 00051 #define DK_FT_DIR 2 00052 00054 #define DK_FT_FIFO 3 00055 00057 #define DK_FT_CHR 4 00058 00060 #define DK_FT_BLK 5 00061 00063 #define DK_FT_SOCKET 6 00064 00066 #define DK_FT_OTHER 7 00067 00069 #define DK_FT_SYMLINK 16 00070 00072 #define DK_PERM_SUID 04000 00073 00075 #define DK_PERM_SGID 02000 00076 00078 #define DK_PERM_VTX 01000 00079 00081 #define DK_PERM_U_READ 00400 00082 00084 #define DK_PERM_U_WRITE 00200 00085 00087 #define DK_PERM_U_EXECUTE 00100 00088 00090 #define DK_PERM_G_READ 00040 00091 00093 #define DK_PERM_G_WRITE 00020 00094 00096 #define DK_PERM_G_EXECUTE 00010 00097 00099 #define DK_PERM_O_READ 00004 00100 00102 #define DK_PERM_O_WRITE 00002 00103 00105 #define DK_PERM_O_EXECUTE 00001 00106 00108 #define DK_PERM_CREATE_PROTECTED 0700 00109 00111 #define DK_PERM_CREATE_DIR 00755 00112 00114 #define DK_PERM_CREATE_FILE 00700 00115 00116 #endif 00117