1 /* Portable <sys/stat.h>
2 Copyright 1995 Free Software Foundation, Inc.
4 This file is part of GDB.
6 This program is free software; you can redistribute it and/or modify
7 it under the terms of the GNU General Public License as published by
8 the Free Software Foundation; either version 2 of the License, or
9 (at your option) any later version.
11 This program is distributed in the hope that it will be useful,
12 but WITHOUT ANY WARRANTY; without even the implied warranty of
13 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
14 GNU General Public License for more details.
16 You should have received a copy of the GNU General Public License
17 along with this program; if not, write to the Free Software
18 Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. */
20 #if !defined(GDB_STAT_H)
23 #include <sys/types.h>
26 #ifdef STAT_MACROS_BROKEN
39 #if !defined(S_ISBLK) && defined(S_IFBLK)
40 #define S_ISBLK(m) (((m) & S_IFMT) == S_IFBLK)
42 #if !defined(S_ISCHR) && defined(S_IFCHR)
43 #define S_ISCHR(m) (((m) & S_IFMT) == S_IFCHR)
45 #if !defined(S_ISDIR) && defined(S_IFDIR)
46 #define S_ISDIR(m) (((m) & S_IFMT) == S_IFDIR)
48 #if !defined(S_ISREG) && defined(S_IFREG)
49 #define S_ISREG(m) (((m) & S_IFMT) == S_IFREG)
51 #if !defined(S_ISFIFO) && defined(S_IFIFO)
52 #define S_ISFIFO(m) (((m) & S_IFMT) == S_IFIFO)
54 #if !defined(S_ISLNK) && defined(S_IFLNK)
55 #define S_ISLNK(m) (((m) & S_IFMT) == S_IFLNK)
57 #if !defined(S_ISSOCK) && defined(S_IFSOCK)
58 #define S_ISSOCK(m) (((m) & S_IFMT) == S_IFSOCK)
60 #if !defined(S_ISMPB) && defined(S_IFMPB) /* V7 */
61 #define S_ISMPB(m) (((m) & S_IFMT) == S_IFMPB)
62 #define S_ISMPC(m) (((m) & S_IFMT) == S_IFMPC)
64 #if !defined(S_ISNWK) && defined(S_IFNWK) /* HP/UX */
65 #define S_ISNWK(m) (((m) & S_IFMT) == S_IFNWK)
68 #endif /* !defined(GDB_STAT_H) */
This page took 0.030892 seconds and 4 git commands to generate.