| [3228] | 1 | /* posixstat.h -- Posix stat(2) definitions for systems that
|
|---|
| 2 | don't have them. */
|
|---|
| 3 |
|
|---|
| 4 | /* Copyright (C) 1987,1991 Free Software Foundation, Inc.
|
|---|
| 5 |
|
|---|
| 6 | This file is part of GNU Bash, the Bourne Again SHell.
|
|---|
| 7 |
|
|---|
| 8 | Bash is free software; you can redistribute it and/or modify it
|
|---|
| 9 | under the terms of the GNU General Public License as published by
|
|---|
| 10 | the Free Software Foundation; either version 2, or (at your option)
|
|---|
| 11 | any later version.
|
|---|
| 12 |
|
|---|
| 13 | Bash is distributed in the hope that it will be useful, but WITHOUT
|
|---|
| 14 | ANY WARRANTY; without even the implied warranty of MERCHANTABILITY
|
|---|
| 15 | or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public
|
|---|
| 16 | License for more details.
|
|---|
| 17 |
|
|---|
| 18 | You should have received a copy of the GNU General Public License
|
|---|
| 19 | along with Bash; see the file COPYING. If not, write to the Free
|
|---|
| 20 | Software Foundation, 59 Temple Place, Suite 330, Boston, MA 02111 USA. */
|
|---|
| 21 |
|
|---|
| 22 | /* This file should be included instead of <sys/stat.h>.
|
|---|
| 23 | It relies on the local sys/stat.h to work though. */
|
|---|
| 24 | #if !defined (_POSIXSTAT_H_)
|
|---|
| 25 | #define _POSIXSTAT_H_
|
|---|
| 26 |
|
|---|
| 27 | #include <sys/stat.h>
|
|---|
| 28 |
|
|---|
| 29 | #if defined (STAT_MACROS_BROKEN)
|
|---|
| 30 | # undef S_ISBLK
|
|---|
| 31 | # undef S_ISCHR
|
|---|
| 32 | # undef S_ISDIR
|
|---|
| 33 | # undef S_ISFIFO
|
|---|
| 34 | # undef S_ISREG
|
|---|
| 35 | # undef S_ISLNK
|
|---|
| 36 | #endif /* STAT_MACROS_BROKEN */
|
|---|
| 37 |
|
|---|
| 38 | /* These are guaranteed to work only on isc386 */
|
|---|
| 39 | #if !defined (S_IFDIR) && !defined (S_ISDIR)
|
|---|
| 40 | # define S_IFDIR 0040000
|
|---|
| 41 | #endif /* !S_IFDIR && !S_ISDIR */
|
|---|
| 42 | #if !defined (S_IFMT)
|
|---|
| 43 | # define S_IFMT 0170000
|
|---|
| |
|---|