00001 /* 00002 * stat.h 00003 * file attributes 00004 * 00005 * $Id: stat.h,v 1.13 2011/02/13 14:19:33 simple Exp $ 00006 */ 00007 /* 00008 * Copyright (C) 1999 - 2011 Eggheads Development Team 00009 * 00010 * This program is free software; you can redistribute it and/or 00011 * modify it under the terms of the GNU General Public License 00012 * as published by the Free Software Foundation; either version 2 00013 * of the License, or (at your option) any later version. 00014 * 00015 * This program is distributed in the hope that it will be useful, 00016 * but WITHOUT ANY WARRANTY; without even the implied warranty of 00017 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 00018 * GNU General Public License for more details. 00019 * 00020 * You should have received a copy of the GNU General Public License 00021 * along with this program; if not, write to the Free Software 00022 * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. 00023 */ 00024 00025 #ifndef _EGG_STAT_H 00026 #define _EGG_STAT_H 00027 00028 #ifndef S_ISDIR 00029 # ifndef S_IFMT 00030 # define S_IFMT 0170000 /* Bitmask for the file type bitfields */ 00031 # endif 00032 # ifndef S_IFDIR 00033 # define S_IFDIR 0040000 /* Directory */ 00034 # endif 00035 # define S_ISDIR(m) (((m)&(S_IFMT)) == (S_IFDIR)) 00036 #endif 00037 #ifndef S_IFREG 00038 # define S_IFREG 0100000 /* Regular file */ 00039 #endif 00040 #ifndef S_IFLNK 00041 # define S_IFLNK 0120000 /* Symbolic link */ 00042 #endif 00043 00044 #endif /* _EGG_STAT_H */