* 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.
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.
#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
#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>
#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"
}
#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"
}
/* 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"
#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"