24 @PRAGMA_SYSTEM_HEADER@
28 #if defined __need_system_sys_stat_h 31 #@INCLUDE_NEXT@ @NEXT_SYS_STAT_H@ 36 #ifndef _@GUARD_PREFIX@_SYS_STAT_H 46 #@INCLUDE_NEXT@ @NEXT_SYS_STAT_H@ 48 #ifndef _@GUARD_PREFIX@_SYS_STAT_H 49 #define _@GUARD_PREFIX@_SYS_STAT_H 60 #if (defined _WIN32 || defined __WIN32__) && ! defined __CYGWIN__ 66 #if 0 && ((defined _WIN32 || defined __WIN32__) && ! defined __CYGWIN__) 71 #if @WINDOWS_64_BIT_ST_SIZE@ 72 # define stat _stati64 76 #if @GNULIB_OVERRIDES_STRUCT_STAT@ 80 # define stat rpl_stat 84 # define stat stat_used_without_requesting_gnulib_module_stat 87 # if !GNULIB_defined_struct_stat 107 blksize_t st_blksize;
111 # if @WINDOWS_STAT_TIMESPEC@ 121 # if @WINDOWS_STAT_TIMESPEC@ 122 # define st_atime st_atim.tv_sec 123 # define st_mtime st_mtim.tv_sec 124 # define st_ctime st_ctim.tv_sec 126 # define _GL_WINDOWS_STAT_TIMESPEC 1 128 # define GNULIB_defined_struct_stat 1 133 # define _S_IFBLK 0x6000 136 # define _S_IFLNK 0xA000 139 # define _S_IFSOCK 0xC000 146 # define S_IFIFO _S_IFIFO 151 # define S_IFMT 0170000 154 #if STAT_MACROS_BROKEN 170 # define S_ISBLK(m) (((m) & S_IFMT) == S_IFBLK) 172 # define S_ISBLK(m) 0 178 # define S_ISCHR(m) (((m) & S_IFMT) == S_IFCHR) 180 # define S_ISCHR(m) 0 186 # define S_ISDIR(m) (((m) & S_IFMT) == S_IFDIR) 188 # define S_ISDIR(m) 0 193 # define S_ISDOOR(m) 0 198 # define S_ISFIFO(m) (((m) & S_IFMT) == S_IFIFO) 200 # define S_ISFIFO(m) 0 206 # define S_ISLNK(m) (((m) & S_IFMT) == S_IFLNK) 208 # define S_ISLNK(m) 0 214 # define S_ISMPB(m) (((m) & S_IFMT) == S_IFMPB) 215 # define S_ISMPC(m) (((m) & S_IFMT) == S_IFMPC) 217 # define S_ISMPB(m) 0 218 # define S_ISMPC(m) 0 223 # define S_ISMPX(m) 0 228 # define S_ISNAM(m) (((m) & S_IFMT) == S_IFNAM) 230 # define S_ISNAM(m) 0 236 # define S_ISNWK(m) (((m) & S_IFMT) == S_IFNWK) 238 # define S_ISNWK(m) 0 243 # define S_ISPORT(m) 0 248 # define S_ISREG(m) (((m) & S_IFMT) == S_IFREG) 250 # define S_ISREG(m) 0 256 # define S_ISSOCK(m) (((m) & S_IFMT) == S_IFSOCK) 258 # define S_ISSOCK(m) 0 264 # define S_TYPEISMQ(p) 0 268 # define S_TYPEISTMO(p) 0 274 # define S_TYPEISSEM(p) (S_ISNAM ((p)->st_mode) && (p)->st_rdev == S_INSEM) 276 # define S_TYPEISSEM(p) 0 282 # define S_TYPEISSHM(p) (S_ISNAM ((p)->st_mode) && (p)->st_rdev == S_INSHD) 284 # define S_TYPEISSHM(p) 0 290 # define S_ISCTG(p) 0 295 # define S_ISOFD(p) 0 300 # define S_ISOFL(p) 0 305 # define S_ISWHT(m) 0 311 # define S_ISUID 04000 314 # define S_ISGID 02000 319 # define S_ISVTX 01000 322 #if !S_IRUSR && S_IREAD 323 # define S_IRUSR S_IREAD 326 # define S_IRUSR 00400 329 # define S_IRGRP (S_IRUSR >> 3) 332 # define S_IROTH (S_IRUSR >> 6) 335 #if !S_IWUSR && S_IWRITE 336 # define S_IWUSR S_IWRITE 339 # define S_IWUSR 00200 342 # define S_IWGRP (S_IWUSR >> 3) 345 # define S_IWOTH (S_IWUSR >> 6) 348 #if !S_IXUSR && S_IEXEC 349 # define S_IXUSR S_IEXEC 352 # define S_IXUSR 00100 355 # define S_IXGRP (S_IXUSR >> 3) 358 # define S_IXOTH (S_IXUSR >> 6) 362 # define S_IRWXU (S_IRUSR | S_IWUSR | S_IXUSR) 365 # define S_IRWXG (S_IRGRP | S_IWGRP | S_IXGRP) 368 # define S_IRWXO (S_IROTH | S_IWOTH | S_IXOTH) 373 # define S_IXUGO (S_IXUSR | S_IXGRP | S_IXOTH) 377 # define S_IRWXUGO (S_IRWXU | S_IRWXG | S_IRWXO) 382 # define UTIME_NOW (-1) 383 # define UTIME_OMIT (-2) 387 #if @GNULIB_FCHMODAT@ 388 # if !@HAVE_FCHMODAT@ 390 (
int fd,
char const *file, mode_t mode,
int flag)
394 (
int fd,
char const *file, mode_t mode,
int flag));
396 #elif defined GNULIB_POSIXCHECK 398 # if HAVE_RAW_DECL_FCHMODAT 400 "use gnulib module openat for portability");
407 # if !(defined __cplusplus && defined GNULIB_NAMESPACE) 409 # define fstat rpl_fstat 417 #elif @GNULIB_OVERRIDES_STRUCT_STAT@ 419 # define fstat fstat_used_without_requesting_gnulib_module_fstat 420 #elif @WINDOWS_64_BIT_ST_SIZE@ 422 # define fstat _fstati64 423 #elif defined GNULIB_POSIXCHECK 425 # if HAVE_RAW_DECL_FSTAT 427 "use gnulib module fstat for portability");
433 # if @REPLACE_FSTATAT@ 434 # if !(defined __cplusplus && defined GNULIB_NAMESPACE) 436 # define fstatat rpl_fstatat 439 (
int fd,
char const *name,
struct stat *st,
int flags)
442 (
int fd,
char const *name,
struct stat *st,
int flags));
446 (
int fd,
char const *name,
struct stat *st,
int flags)
450 (
int fd,
char const *name,
struct stat *st,
int flags));
453 #elif @GNULIB_OVERRIDES_STRUCT_STAT@ 455 # define fstatat fstatat_used_without_requesting_gnulib_module_fstatat 456 #elif defined GNULIB_POSIXCHECK 458 # if HAVE_RAW_DECL_FSTATAT 460 "use gnulib module openat for portability");
465 #if @GNULIB_FUTIMENS@ 470 # if @REPLACE_FUTIMENS@ || (!@HAVE_FUTIMENS@ && defined __sun) 471 # if !(defined __cplusplus && defined GNULIB_NAMESPACE) 473 # define futimens rpl_futimens 478 # if !@HAVE_FUTIMENS@ 486 #elif defined GNULIB_POSIXCHECK 488 # if HAVE_RAW_DECL_FUTIMENS 490 "use gnulib module futimens for portability");
506 # if !(defined __cplusplus && defined GNULIB_NAMESPACE) 507 # define lchmod chmod 512 (
const char *filename, mode_t mode));
523 #elif defined GNULIB_POSIXCHECK 525 # if HAVE_RAW_DECL_LCHMOD 527 "use gnulib module lchmod for portability");
536 # if !(defined __cplusplus && defined GNULIB_NAMESPACE) 540 # elif @REPLACE_LSTAT@ 541 # if !(defined __cplusplus && defined GNULIB_NAMESPACE) 543 # define lstat rpl_lstat 554 #elif @GNULIB_OVERRIDES_STRUCT_STAT@ 556 # define lstat lstat_used_without_requesting_gnulib_module_lstat 557 #elif defined GNULIB_POSIXCHECK 559 # if HAVE_RAW_DECL_LSTAT 561 "use gnulib module lstat for portability");
567 # if !(defined __cplusplus && defined GNULIB_NAMESPACE) 569 # define mkdir rpl_mkdir 579 # if (defined _WIN32 || defined __WIN32__) && ! defined __CYGWIN__ 581 # if !GNULIB_defined_rpl_mkdir 583 rpl_mkdir (
char const *name, mode_t mode)
585 return _mkdir (name);
587 # define GNULIB_defined_rpl_mkdir 1 590 # if !(defined __cplusplus && defined GNULIB_NAMESPACE) 591 # define mkdir rpl_mkdir 608 #elif defined GNULIB_POSIXCHECK 610 # if HAVE_RAW_DECL_MKDIRAT 612 "use gnulib module openat for portability");
618 # if @REPLACE_MKFIFO@ 619 # if !(defined __cplusplus && defined GNULIB_NAMESPACE) 621 # define mkfifo rpl_mkfifo 634 #elif defined GNULIB_POSIXCHECK 636 # if HAVE_RAW_DECL_MKFIFO 638 "use gnulib module mkfifo for portability");
643 #if @GNULIB_MKFIFOAT@ 644 # if !@HAVE_MKFIFOAT@ 650 #elif defined GNULIB_POSIXCHECK 652 # if HAVE_RAW_DECL_MKFIFOAT 654 "use gnulib module mkfifoat for portability");
661 # if !(defined __cplusplus && defined GNULIB_NAMESPACE) 663 # define mknod rpl_mknod 677 #elif defined GNULIB_POSIXCHECK 679 # if HAVE_RAW_DECL_MKNOD 681 "use gnulib module mknod for portability");
689 (
int fd,
char const *file, mode_t mode, dev_t dev)
693 (
int fd,
char const *file, mode_t mode, dev_t dev));
695 #elif defined GNULIB_POSIXCHECK 697 # if HAVE_RAW_DECL_MKNODAT 699 "use gnulib module mkfifoat for portability");
706 # if !@GNULIB_OVERRIDES_STRUCT_STAT@ 710 # if defined _AIX && defined stat && defined _LARGE_FILES 714 # define stat64(name, st) rpl_stat (name, st) 715 # elif @WINDOWS_64_BIT_ST_SIZE@ 717 # if defined __MINGW32__ && defined _stati64 718 # ifndef _USE_32BIT_TIME_T 721 # define _stat64(name, st) rpl_stat (name, st) 723 # elif defined _MSC_VER && defined _stati64 724 # ifdef _USE_32BIT_TIME_T 727 # define _stat32i64(name, st) rpl_stat (name, st) 731 # define _stat64(name, st) rpl_stat (name, st) 735 # define _stati64(name, st) rpl_stat (name, st) 737 # elif defined __MINGW32__ && defined stat 738 # ifdef _USE_32BIT_TIME_T 741 # define _stat32i64(name, st) rpl_stat (name, st) 745 # define _stat64(name, st) rpl_stat (name, st) 747 # elif defined _MSC_VER && defined stat 748 # ifdef _USE_32BIT_TIME_T 751 # define _stat32(name, st) rpl_stat (name, st) 755 # define _stat64i32(name, st) rpl_stat (name, st) 759 # define stat(name, st) rpl_stat (name, st) 762 _GL_EXTERN_C int stat (
const char *name,
struct stat *buf)
765 #elif @GNULIB_OVERRIDES_STRUCT_STAT@ 769 #elif defined GNULIB_POSIXCHECK 771 # if HAVE_RAW_DECL_STAT 773 "use gnulib module stat for portability");
778 #if @GNULIB_UTIMENSAT@ 783 # if @REPLACE_UTIMENSAT@ || (!@HAVE_UTIMENSAT@ && defined __sun) 784 # if !(defined __cplusplus && defined GNULIB_NAMESPACE) 786 # define utimensat rpl_utimensat 789 struct timespec const times[2],
int flag)
792 struct timespec const times[2],
int flag));
794 # if !@HAVE_UTIMENSAT@ 796 struct timespec const times[2],
int flag)
800 struct timespec const times[2],
int flag));
802 # if @HAVE_UTIMENSAT@ 805 #elif defined GNULIB_POSIXCHECK 807 # if HAVE_RAW_DECL_UTIMENSAT 809 "use gnulib module utimensat for portability");
#define _GL_CXXALIAS_SYS_CAST(func, rettype, parameters)
Definition: inet.h:278
#define _GL_FUNCDECL_SYS(func, rettype, parameters_and_attributes)
Definition: inet.h:168
#define _GL_CXXALIAS_RPL_CAST_1(func, rpl_func, rettype, parameters)
Definition: inet.h:223
#define _GL_CXXALIAS_RPL(func, rettype, parameters)
Definition: inet.h:180
#define _GL_EXTERN_C
Definition: inet.h:146
_GL_CXXALIAS_SYS(mkdir, int,(char const *name, mode_t mode))
#define _GL_FUNCDECL_RPL(func, rettype, parameters_and_attributes)
Definition: inet.h:156
#define _GL_WARN_ON_USE(function, message)
Definition: inet.h:474
#define _GL_CXXALIAS_RPL_1(func, rpl_func, rettype, parameters)
Definition: inet.h:198