diff options
Diffstat (limited to 'gl/sys_stat.in.h')
| -rw-r--r-- | gl/sys_stat.in.h | 21 |
1 files changed, 2 insertions, 19 deletions
diff --git a/gl/sys_stat.in.h b/gl/sys_stat.in.h index c3c38fd6..deed21cd 100644 --- a/gl/sys_stat.in.h +++ b/gl/sys_stat.in.h | |||
| @@ -1,5 +1,5 @@ | |||
| 1 | /* Provide a more complete sys/stat.h header file. | 1 | /* Provide a more complete sys/stat.h header file. |
| 2 | Copyright (C) 2005-2025 Free Software Foundation, Inc. | 2 | Copyright (C) 2005-2026 Free Software Foundation, Inc. |
| 3 | 3 | ||
| 4 | This file is free software: you can redistribute it and/or modify | 4 | This file is free software: you can redistribute it and/or modify |
| 5 | it under the terms of the GNU Lesser General Public License as | 5 | it under the terms of the GNU Lesser General Public License as |
| @@ -451,7 +451,6 @@ _GL_CXXALIAS_SYS (chmod, int, (const char *filename, mode_t mode)); | |||
| 451 | # endif | 451 | # endif |
| 452 | _GL_CXXALIASWARN (chmod); | 452 | _GL_CXXALIASWARN (chmod); |
| 453 | #elif defined GNULIB_POSIXCHECK | 453 | #elif defined GNULIB_POSIXCHECK |
| 454 | # undef chmod | ||
| 455 | # if HAVE_RAW_DECL_CHMOD | 454 | # if HAVE_RAW_DECL_CHMOD |
| 456 | _GL_WARN_ON_USE (chmod, "chmod has portability problems - " | 455 | _GL_WARN_ON_USE (chmod, "chmod has portability problems - " |
| 457 | "use gnulib module chmod for portability"); | 456 | "use gnulib module chmod for portability"); |
| @@ -496,7 +495,6 @@ _GL_CXXALIAS_SYS (fchmodat, int, | |||
| 496 | # endif | 495 | # endif |
| 497 | _GL_CXXALIASWARN (fchmodat); | 496 | _GL_CXXALIASWARN (fchmodat); |
| 498 | #elif defined GNULIB_POSIXCHECK | 497 | #elif defined GNULIB_POSIXCHECK |
| 499 | # undef fchmodat | ||
| 500 | # if HAVE_RAW_DECL_FCHMODAT | 498 | # if HAVE_RAW_DECL_FCHMODAT |
| 501 | _GL_WARN_ON_USE (fchmodat, "fchmodat is not portable - " | 499 | _GL_WARN_ON_USE (fchmodat, "fchmodat is not portable - " |
| 502 | "use gnulib module openat for portability"); | 500 | "use gnulib module openat for portability"); |
| @@ -528,7 +526,6 @@ _GL_CXXALIASWARN (fstat); | |||
| 528 | /* Above, we define stat to _stati64. */ | 526 | /* Above, we define stat to _stati64. */ |
| 529 | # define fstat _fstati64 | 527 | # define fstat _fstati64 |
| 530 | #elif defined GNULIB_POSIXCHECK | 528 | #elif defined GNULIB_POSIXCHECK |
| 531 | # undef fstat | ||
| 532 | # if HAVE_RAW_DECL_FSTAT | 529 | # if HAVE_RAW_DECL_FSTAT |
| 533 | _GL_WARN_ON_USE (fstat, "fstat has portability problems - " | 530 | _GL_WARN_ON_USE (fstat, "fstat has portability problems - " |
| 534 | "use gnulib module fstat for portability"); | 531 | "use gnulib module fstat for portability"); |
| @@ -567,7 +564,6 @@ _GL_CXXALIASWARN (fstatat); | |||
| 567 | # define fstatat fstatat_used_without_requesting_gnulib_module_fstatat | 564 | # define fstatat fstatat_used_without_requesting_gnulib_module_fstatat |
| 568 | # endif | 565 | # endif |
| 569 | #elif defined GNULIB_POSIXCHECK | 566 | #elif defined GNULIB_POSIXCHECK |
| 570 | # undef fstatat | ||
| 571 | # if HAVE_RAW_DECL_FSTATAT | 567 | # if HAVE_RAW_DECL_FSTATAT |
| 572 | _GL_WARN_ON_USE (fstatat, "fstatat is not portable - " | 568 | _GL_WARN_ON_USE (fstatat, "fstatat is not portable - " |
| 573 | "use gnulib module openat for portability"); | 569 | "use gnulib module openat for portability"); |
| @@ -597,7 +593,6 @@ _GL_CXXALIAS_SYS (futimens, int, (int fd, struct timespec const times[2])); | |||
| 597 | _GL_CXXALIASWARN (futimens); | 593 | _GL_CXXALIASWARN (futimens); |
| 598 | # endif | 594 | # endif |
| 599 | #elif defined GNULIB_POSIXCHECK | 595 | #elif defined GNULIB_POSIXCHECK |
| 600 | # undef futimens | ||
| 601 | # if HAVE_RAW_DECL_FUTIMENS | 596 | # if HAVE_RAW_DECL_FUTIMENS |
| 602 | _GL_WARN_ON_USE (futimens, "futimens is not portable - " | 597 | _GL_WARN_ON_USE (futimens, "futimens is not portable - " |
| 603 | "use gnulib module futimens for portability"); | 598 | "use gnulib module futimens for portability"); |
| @@ -618,7 +613,6 @@ _GL_CXXALIAS_SYS (getumask, mode_t, (void)); | |||
| 618 | _GL_CXXALIASWARN (getumask); | 613 | _GL_CXXALIASWARN (getumask); |
| 619 | # endif | 614 | # endif |
| 620 | #elif defined GNULIB_POSIXCHECK | 615 | #elif defined GNULIB_POSIXCHECK |
| 621 | # undef getumask | ||
| 622 | # if HAVE_RAW_DECL_GETUMASK | 616 | # if HAVE_RAW_DECL_GETUMASK |
| 623 | _GL_WARN_ON_USE (getumask, "getumask is not portable - " | 617 | _GL_WARN_ON_USE (getumask, "getumask is not portable - " |
| 624 | "use gnulib module getumask for portability"); | 618 | "use gnulib module getumask for portability"); |
| @@ -636,7 +630,6 @@ _GL_FUNCDECL_SYS (lchmod, int, (const char *filename, mode_t mode), | |||
| 636 | _GL_CXXALIAS_SYS (lchmod, int, (const char *filename, mode_t mode)); | 630 | _GL_CXXALIAS_SYS (lchmod, int, (const char *filename, mode_t mode)); |
| 637 | _GL_CXXALIASWARN (lchmod); | 631 | _GL_CXXALIASWARN (lchmod); |
| 638 | #elif defined GNULIB_POSIXCHECK | 632 | #elif defined GNULIB_POSIXCHECK |
| 639 | # undef lchmod | ||
| 640 | # if HAVE_RAW_DECL_LCHMOD | 633 | # if HAVE_RAW_DECL_LCHMOD |
| 641 | _GL_WARN_ON_USE (lchmod, "lchmod is unportable - " | 634 | _GL_WARN_ON_USE (lchmod, "lchmod is unportable - " |
| 642 | "use gnulib module lchmod for portability"); | 635 | "use gnulib module lchmod for portability"); |
| @@ -698,7 +691,6 @@ _GL_CXXALIAS_SYS (mkdir, int, (char const *name, mode_t mode)); | |||
| 698 | # endif | 691 | # endif |
| 699 | _GL_CXXALIASWARN (mkdir); | 692 | _GL_CXXALIASWARN (mkdir); |
| 700 | #elif defined GNULIB_POSIXCHECK | 693 | #elif defined GNULIB_POSIXCHECK |
| 701 | # undef mkdir | ||
| 702 | # if HAVE_RAW_DECL_MKDIR | 694 | # if HAVE_RAW_DECL_MKDIR |
| 703 | _GL_WARN_ON_USE (mkdir, "mkdir does not always support two parameters - " | 695 | _GL_WARN_ON_USE (mkdir, "mkdir does not always support two parameters - " |
| 704 | "use gnulib module mkdir for portability"); | 696 | "use gnulib module mkdir for portability"); |
| @@ -714,7 +706,6 @@ _GL_FUNCDECL_SYS (mkdirat, int, (int fd, char const *file, mode_t mode), | |||
| 714 | _GL_CXXALIAS_SYS (mkdirat, int, (int fd, char const *file, mode_t mode)); | 706 | _GL_CXXALIAS_SYS (mkdirat, int, (int fd, char const *file, mode_t mode)); |
| 715 | _GL_CXXALIASWARN (mkdirat); | 707 | _GL_CXXALIASWARN (mkdirat); |
| 716 | #elif defined GNULIB_POSIXCHECK | 708 | #elif defined GNULIB_POSIXCHECK |
| 717 | # undef mkdirat | ||
| 718 | # if HAVE_RAW_DECL_MKDIRAT | 709 | # if HAVE_RAW_DECL_MKDIRAT |
| 719 | _GL_WARN_ON_USE (mkdirat, "mkdirat is not portable - " | 710 | _GL_WARN_ON_USE (mkdirat, "mkdirat is not portable - " |
| 720 | "use gnulib module openat for portability"); | 711 | "use gnulib module openat for portability"); |
| @@ -740,7 +731,6 @@ _GL_CXXALIAS_SYS (mkfifo, int, (char const *file, mode_t mode)); | |||
| 740 | # endif | 731 | # endif |
| 741 | _GL_CXXALIASWARN (mkfifo); | 732 | _GL_CXXALIASWARN (mkfifo); |
| 742 | #elif defined GNULIB_POSIXCHECK | 733 | #elif defined GNULIB_POSIXCHECK |
| 743 | # undef mkfifo | ||
| 744 | # if HAVE_RAW_DECL_MKFIFO | 734 | # if HAVE_RAW_DECL_MKFIFO |
| 745 | _GL_WARN_ON_USE (mkfifo, "mkfifo is not portable - " | 735 | _GL_WARN_ON_USE (mkfifo, "mkfifo is not portable - " |
| 746 | "use gnulib module mkfifo for portability"); | 736 | "use gnulib module mkfifo for portability"); |
| @@ -768,7 +758,6 @@ _GL_CXXALIAS_SYS (mkfifoat, int, (int fd, char const *file, mode_t mode)); | |||
| 768 | _GL_CXXALIASWARN (mkfifoat); | 758 | _GL_CXXALIASWARN (mkfifoat); |
| 769 | # endif | 759 | # endif |
| 770 | #elif defined GNULIB_POSIXCHECK | 760 | #elif defined GNULIB_POSIXCHECK |
| 771 | # undef mkfifoat | ||
| 772 | # if HAVE_RAW_DECL_MKFIFOAT | 761 | # if HAVE_RAW_DECL_MKFIFOAT |
| 773 | _GL_WARN_ON_USE (mkfifoat, "mkfifoat is not portable - " | 762 | _GL_WARN_ON_USE (mkfifoat, "mkfifoat is not portable - " |
| 774 | "use gnulib module mkfifoat for portability"); | 763 | "use gnulib module mkfifoat for portability"); |
| @@ -790,12 +779,10 @@ _GL_CXXALIAS_RPL (mknod, int, (char const *file, mode_t mode, dev_t dev)); | |||
| 790 | _GL_FUNCDECL_SYS (mknod, int, (char const *file, mode_t mode, dev_t dev), | 779 | _GL_FUNCDECL_SYS (mknod, int, (char const *file, mode_t mode, dev_t dev), |
| 791 | _GL_ARG_NONNULL ((1))); | 780 | _GL_ARG_NONNULL ((1))); |
| 792 | # endif | 781 | # endif |
| 793 | /* Need to cast, because on OSF/1 5.1, the third parameter is '...'. */ | 782 | _GL_CXXALIAS_SYS (mknod, int, (char const *file, mode_t mode, dev_t dev)); |
| 794 | _GL_CXXALIAS_SYS_CAST (mknod, int, (char const *file, mode_t mode, dev_t dev)); | ||
| 795 | # endif | 783 | # endif |
| 796 | _GL_CXXALIASWARN (mknod); | 784 | _GL_CXXALIASWARN (mknod); |
| 797 | #elif defined GNULIB_POSIXCHECK | 785 | #elif defined GNULIB_POSIXCHECK |
| 798 | # undef mknod | ||
| 799 | # if HAVE_RAW_DECL_MKNOD | 786 | # if HAVE_RAW_DECL_MKNOD |
| 800 | _GL_WARN_ON_USE (mknod, "mknod is not portable - " | 787 | _GL_WARN_ON_USE (mknod, "mknod is not portable - " |
| 801 | "use gnulib module mknod for portability"); | 788 | "use gnulib module mknod for portability"); |
| @@ -827,7 +814,6 @@ _GL_CXXALIAS_SYS (mknodat, int, | |||
| 827 | _GL_CXXALIASWARN (mknodat); | 814 | _GL_CXXALIASWARN (mknodat); |
| 828 | # endif | 815 | # endif |
| 829 | #elif defined GNULIB_POSIXCHECK | 816 | #elif defined GNULIB_POSIXCHECK |
| 830 | # undef mknodat | ||
| 831 | # if HAVE_RAW_DECL_MKNODAT | 817 | # if HAVE_RAW_DECL_MKNODAT |
| 832 | _GL_WARN_ON_USE (mknodat, "mknodat is not portable - " | 818 | _GL_WARN_ON_USE (mknodat, "mknodat is not portable - " |
| 833 | "use gnulib module mkfifoat for portability"); | 819 | "use gnulib module mkfifoat for portability"); |
| @@ -905,7 +891,6 @@ _GL_EXTERN_C int stat (const char *restrict name, struct stat *restrict buf) | |||
| 905 | #define stat stat_used_without_requesting_gnulib_module_stat | 891 | #define stat stat_used_without_requesting_gnulib_module_stat |
| 906 | */ | 892 | */ |
| 907 | #elif defined GNULIB_POSIXCHECK | 893 | #elif defined GNULIB_POSIXCHECK |
| 908 | # undef stat | ||
| 909 | # if HAVE_RAW_DECL_STAT | 894 | # if HAVE_RAW_DECL_STAT |
| 910 | _GL_WARN_ON_USE (stat, "stat is unportable - " | 895 | _GL_WARN_ON_USE (stat, "stat is unportable - " |
| 911 | "use gnulib module stat for portability"); | 896 | "use gnulib module stat for portability"); |
| @@ -945,7 +930,6 @@ _GL_CXXALIASWARN (lstat); | |||
| 945 | # define lstat lstat_used_without_requesting_gnulib_module_lstat | 930 | # define lstat lstat_used_without_requesting_gnulib_module_lstat |
| 946 | # endif | 931 | # endif |
| 947 | #elif defined GNULIB_POSIXCHECK | 932 | #elif defined GNULIB_POSIXCHECK |
| 948 | # undef lstat | ||
| 949 | # if HAVE_RAW_DECL_LSTAT | 933 | # if HAVE_RAW_DECL_LSTAT |
| 950 | _GL_WARN_ON_USE (lstat, "lstat is unportable - " | 934 | _GL_WARN_ON_USE (lstat, "lstat is unportable - " |
| 951 | "use gnulib module lstat for portability"); | 935 | "use gnulib module lstat for portability"); |
| @@ -999,7 +983,6 @@ _GL_CXXALIAS_SYS (utimensat, int, (int fd, char const *name, | |||
| 999 | _GL_CXXALIASWARN (utimensat); | 983 | _GL_CXXALIASWARN (utimensat); |
| 1000 | # endif | 984 | # endif |
| 1001 | #elif defined GNULIB_POSIXCHECK | 985 | #elif defined GNULIB_POSIXCHECK |
| 1002 | # undef utimensat | ||
| 1003 | # if HAVE_RAW_DECL_UTIMENSAT | 986 | # if HAVE_RAW_DECL_UTIMENSAT |
| 1004 | _GL_WARN_ON_USE (utimensat, "utimensat is not portable - " | 987 | _GL_WARN_ON_USE (utimensat, "utimensat is not portable - " |
| 1005 | "use gnulib module utimensat for portability"); | 988 | "use gnulib module utimensat for portability"); |
