diff options
| author | cgd <cgd@NetBSD.org> | 1993-07-14 09:13:01 +0000 |
|---|---|---|
| committer | cgd <cgd@NetBSD.org> | 1993-07-14 09:13:01 +0000 |
| commit | 2eaee1cf37fff587d6abe9899233613d4c190f14 (patch) | |
| tree | eeca7bd645ada05027d24a2ec9401c38fc205cf6 /gnu/lib/libg++/g++-include/sys/stat.h | |
| parent | 16e57b6b9e8123204a51943d6f3b680b83364955 (diff) | |
upgrade to libg++ 2.3.90. g++ includes don't install right yet, but will fix
Diffstat (limited to 'gnu/lib/libg++/g++-include/sys/stat.h')
| -rw-r--r-- | gnu/lib/libg++/g++-include/sys/stat.h | 47 |
1 files changed, 47 insertions, 0 deletions
diff --git a/gnu/lib/libg++/g++-include/sys/stat.h b/gnu/lib/libg++/g++-include/sys/stat.h new file mode 100644 index 00000000000..cffe2a5e1d3 --- /dev/null +++ b/gnu/lib/libg++/g++-include/sys/stat.h @@ -0,0 +1,47 @@ +#ifndef __libgxx_sys_stat_h + +extern "C" +{ +#ifdef __sys_stat_h_recursive +#include_next <sys/stat.h> +#else +#define __sys_stat_h_recursive +#include <_G_config.h> +#define chmod __hide_chmod +#ifdef VMS +#include "GNU_CC_INCLUDE:[sys]stat.h" +#else +#include_next <sys/stat.h> +#endif +#undef chmod + +#define __libgxx_sys_stat_h 1 + +extern int chmod _G_ARGS((const char*, _G_mode_t)); +extern int stat _G_ARGS((const char *path, struct stat *buf)); +extern int lstat _G_ARGS((const char *path, struct stat *buf)); +extern int fstat _G_ARGS((int fd, struct stat *buf)); + +#ifndef S_ISDIR +#define S_ISDIR(mode) (((mode) & S_IFMT) == S_IFDIR) +#endif +#ifndef S_ISBLK +#define S_ISBLK(mode) (((mode) & S_IFMT) == S_IFBLK) +#endif +#ifndef S_ISCHR +#define S_ISCHR(mode) (((mode) & S_IFMT) == S_IFCHR) +#endif +#ifndef S_ISFIFO +#define S_ISFIFO(mode) (((mode) & S_IFMT) == S_IFFIFO) +#endif +#ifndef S_ISREG +#define S_ISREG(mode) (((mode) & S_IFMT) == S_IFREG) +#endif +#if !defined(S_ISLNK) && defined(S_IFLNK) +#define S_ISLNK(mode) (((mode) & S_IFMT) == S_IFLNK) +#endif + +#endif +} + +#endif |
