* config/tc-xtensa.c (xtensa_move_labels): Remove loops_ok argument.
[deliverable/binutils-gdb.git] / gdb / gdb_stat.h
CommitLineData
c906108c 1/* Portable <sys/stat.h>
6aba47ca 2 Copyright (C) 1995, 2007 Free Software Foundation, Inc.
c906108c 3
c5aa993b 4 This file is part of GDB.
c906108c 5
c5aa993b
JM
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.
c906108c 10
c5aa993b
JM
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.
c906108c 15
c5aa993b
JM
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
197e01b6
EZ
18 Foundation, Inc., 51 Franklin Street, Fifth Floor,
19 Boston, MA 02110-1301, USA. */
c906108c
SS
20
21#if !defined(GDB_STAT_H)
22#define GDB_STAT_H
23
24#include <sys/types.h>
25#include <sys/stat.h>
26
27#ifdef STAT_MACROS_BROKEN
28#undef S_ISBLK
29#undef S_ISCHR
30#undef S_ISDIR
31#undef S_ISREG
32#undef S_ISFIFO
33#undef S_ISLNK
34#undef S_ISSOCK
35#undef S_ISMPB
36#undef S_ISMPC
37#undef S_ISNWK
38#endif
39
40#if !defined(S_ISBLK) && defined(S_IFBLK)
41#define S_ISBLK(m) (((m) & S_IFMT) == S_IFBLK)
42#endif
43#if !defined(S_ISCHR) && defined(S_IFCHR)
44#define S_ISCHR(m) (((m) & S_IFMT) == S_IFCHR)
45#endif
46#if !defined(S_ISDIR) && defined(S_IFDIR)
47#define S_ISDIR(m) (((m) & S_IFMT) == S_IFDIR)
48#endif
49#if !defined(S_ISREG) && defined(S_IFREG)
50#define S_ISREG(m) (((m) & S_IFMT) == S_IFREG)
51#endif
52#if !defined(S_ISFIFO) && defined(S_IFIFO)
53#define S_ISFIFO(m) (((m) & S_IFMT) == S_IFIFO)
54#endif
55#if !defined(S_ISLNK) && defined(S_IFLNK)
56#define S_ISLNK(m) (((m) & S_IFMT) == S_IFLNK)
57#endif
58#if !defined(S_ISSOCK) && defined(S_IFSOCK)
59#define S_ISSOCK(m) (((m) & S_IFMT) == S_IFSOCK)
60#endif
c5aa993b 61#if !defined(S_ISMPB) && defined(S_IFMPB) /* V7 */
c906108c
SS
62#define S_ISMPB(m) (((m) & S_IFMT) == S_IFMPB)
63#define S_ISMPC(m) (((m) & S_IFMT) == S_IFMPC)
64#endif
c5aa993b 65#if !defined(S_ISNWK) && defined(S_IFNWK) /* HP/UX */
c906108c
SS
66#define S_ISNWK(m) (((m) & S_IFMT) == S_IFNWK)
67#endif
68
ba79cc81
C
69/* Microsoft C's stat.h doesn't define all the POSIX file modes. */
70#ifndef S_IROTH
71#define S_IROTH S_IREAD
72#endif
73
c5aa993b 74#endif /* !defined(GDB_STAT_H) */
This page took 0.489554 seconds and 4 git commands to generate.