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

ChangeLog
lib/faccessat.c
lib/truncate.c

index 9a20593f700c7192d1df58d77328e9d51d08f5d0..a7203f3c9b2ca1e6eb80f12340eeb133bd1bdd7e 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,5 +1,9 @@
 2025-09-09  Bruno Haible  <bruno@clisp.org>
 
+       faccessat, truncate: Remove support for OSF/1.
+       * lib/faccessat.c: Simplify include of <unistd.h>.
+       * lib/truncate.c: Likewise.
+
        fchmodat, fstat, fstatat, lstat, stat: Remove support for OSF/1.
        * lib/fchmodat.c: Simplify include of <sys/stat.h>.
        * lib/fstat.c: Likewise.
index abb912090a9ff2b2f06521ea31e21482e2a83bd8..743f37288717cadf10d125026192e010dde70dc7 100644 (file)
@@ -22,7 +22,7 @@
 #define _GL_INCLUDING_UNISTD_H
 #include <config.h>
 
-/* Specification.  */
+/* Get the original definition of faccessat.  */
 #include <unistd.h>
 
 #include <errno.h>
@@ -40,14 +40,8 @@ orig_faccessat (int fd, char const *name, int mode, int flag)
 }
 #endif
 
-#ifdef __osf__
-/* Write "unistd.h" here, not <unistd.h>, otherwise OSF/1 5.1 DTK cc
-   eliminates this include because of the preliminary #include <unistd.h>
-   above.  */
-# include "unistd.h"
-#else
-# include <unistd.h>
-#endif
+/* Specification.  */
+#include <unistd.h>
 
 #ifndef HAVE_ACCESS
 /* Mingw lacks access, but it also lacks real vs. effective ids, so
index ca5f2cd5ea806d532f812c31914802c199ed47c4..e86129ae1a66254da73c778cf257bb324810dbcc 100644 (file)
@@ -20,7 +20,7 @@
 #define _GL_INCLUDING_UNISTD_H
 #include <config.h>
 
-/* Specification.  */
+/* Get the original definition of truncate.  */
 #include <unistd.h>
 
 #include <errno.h>
@@ -37,14 +37,8 @@ orig_truncate (const char *filename, off_t length)
 }
 #endif
 
-#ifdef __osf__
-/* Write "unistd.h" here, not <unistd.h>, otherwise OSF/1 5.1 DTK cc
-   eliminates this include because of the preliminary #include <unistd.h>
-   above.  */
-# include "unistd.h"
-#else
-# include <unistd.h>
-#endif
+/* Specification.  */
+#include <unistd.h>
 
 int
 truncate (const char *filename, off_t length)