]> git.ipfire.org Git - thirdparty/gnulib.git/commitdiff
fchmodat, fstat, fstatat, lstat, stat: Remove support for OSF/1.
authorBruno Haible <bruno@clisp.org>
Tue, 9 Sep 2025 10:38:28 +0000 (12:38 +0200)
committerBruno Haible <bruno@clisp.org>
Tue, 9 Sep 2025 10:38:28 +0000 (12:38 +0200)
* lib/fchmodat.c: Simplify include of <sys/stat.h>.
* lib/fstat.c: Likewise.
* lib/fstatat.c: Likewise.
* lib/lstat.c: Likewise.
* lib/stat.c: Likewise.

ChangeLog
lib/fchmodat.c
lib/fstat.c
lib/fstatat.c
lib/lstat.c
lib/stat.c

index 373509bba113ee67d60d7aa2f200b903ad82596a..9a20593f700c7192d1df58d77328e9d51d08f5d0 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,5 +1,12 @@
 2025-09-09  Bruno Haible  <bruno@clisp.org>
 
+       fchmodat, fstat, fstatat, lstat, stat: Remove support for OSF/1.
+       * lib/fchmodat.c: Simplify include of <sys/stat.h>.
+       * lib/fstat.c: Likewise.
+       * lib/fstatat.c: Likewise.
+       * lib/lstat.c: Likewise.
+       * lib/stat.c: Likewise.
+
        fopen, freopen: Remove support for OSF/1.
        * lib/fopen.c: Simplify include of <stdio.h>.
        * lib/freopen.c: Likewise.
index 06a20cc345fc04cfc7bee5e17c95ff594ae88603..9151778b8e331b989a24aaa2ca0d94d81465c0b3 100644 (file)
@@ -22,7 +22,7 @@
 #define __need_system_sys_stat_h
 #include <config.h>
 
-/* Specification.  */
+/* Get the original definition of fchmodat.  */
 #include <sys/stat.h>
 #undef __need_system_sys_stat_h
 
@@ -41,14 +41,8 @@ orig_fchmodat (int dir, char const *file, mode_t mode, int flags)
 #include <string.h>
 #include <unistd.h>
 
-#ifdef __osf__
-/* Write "sys/stat.h" here, not <sys/stat.h>, otherwise OSF/1 5.1 DTK cc
-   eliminates this include because of the preliminary #include <sys/stat.h>
-   above.  */
-# include "sys/stat.h"
-#else
-# include <sys/stat.h>
-#endif
+/* Specification.  */
+#include <sys/stat.h>
 
 #include <intprops.h>
 
index 200e672ec2a185b976a9ba9da24e4184a73f235f..e219cf9916b2d2d670bc900ec6c3e9d56a12955f 100644 (file)
@@ -40,14 +40,7 @@ orig_fstat (int fd, struct stat *buf)
 #endif
 
 /* Specification.  */
-#ifdef __osf__
-/* Write "sys/stat.h" here, not <sys/stat.h>, otherwise OSF/1 5.1 DTK cc
-   eliminates this include because of the preliminary #include <sys/stat.h>
-   above.  */
-# include "sys/stat.h"
-#else
-# include <sys/stat.h>
-#endif
+#include <sys/stat.h>
 
 #include "stat-time.h"
 
index 36dd5e9a20023bd4daad17bb27b9e0fa514d5957..6029de78842691ddcd4ed7f6d552864cb6de640d 100644 (file)
@@ -36,14 +36,8 @@ orig_fstatat (int fd, char const *filename, struct stat *buf, int flags)
 }
 #endif
 
-#ifdef __osf__
-/* Write "sys/stat.h" here, not <sys/stat.h>, otherwise OSF/1 5.1 DTK cc
-   eliminates this include because of the preliminary #include <sys/stat.h>
-   above.  */
-# include "sys/stat.h"
-#else
-# include <sys/stat.h>
-#endif
+/* Specification.  */
+#include <sys/stat.h>
 
 #include "stat-time.h"
 
index bb4a59f1749247c4ffd4ed6a7810e3e5ccfc3c6a..f5fda4af771dca0b2efcc98ddafa101d459af8ad 100644 (file)
@@ -42,14 +42,7 @@ orig_lstat (const char *filename, struct stat *buf)
 }
 
 /* Specification.  */
-# ifdef __osf__
-/* Write "sys/stat.h" here, not <sys/stat.h>, otherwise OSF/1 5.1 DTK cc
-   eliminates this include because of the preliminary #include <sys/stat.h>
-   above.  */
-#  include "sys/stat.h"
-# else
-#  include <sys/stat.h>
-# endif
+# include <sys/stat.h>
 
 # include "stat-time.h"
 
index 6663783703f59b61a3844fdd7e1d8d7bc8c7bd67..9c44ba43b4ee165d1f95bd7fad887e5bb264e4ad 100644 (file)
@@ -42,14 +42,7 @@ orig_stat (const char *filename, struct stat *buf)
 #endif
 
 /* Specification.  */
-#ifdef __osf__
-/* Write "sys/stat.h" here, not <sys/stat.h>, otherwise OSF/1 5.1 DTK cc
-   eliminates this include because of the preliminary #include <sys/stat.h>
-   above.  */
-# include "sys/stat.h"
-#else
-# include <sys/stat.h>
-#endif
+#include <sys/stat.h>
 
 #include "stat-time.h"