* lib/faccessat.c: Simplify include of <unistd.h>.
* lib/truncate.c: Likewise.
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.
#define _GL_INCLUDING_UNISTD_H
#include <config.h>
-/* Specification. */
+/* Get the original definition of faccessat. */
#include <unistd.h>
#include <errno.h>
}
#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
#define _GL_INCLUDING_UNISTD_H
#include <config.h>
-/* Specification. */
+/* Get the original definition of truncate. */
#include <unistd.h>
#include <errno.h>
}
#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)