]> git.ipfire.org Git - thirdparty/gnulib.git/commitdiff
unistd-h: Remove support for OSF/1.
authorBruno Haible <bruno@clisp.org>
Tue, 9 Sep 2025 10:49:11 +0000 (12:49 +0200)
committerBruno Haible <bruno@clisp.org>
Tue, 9 Sep 2025 10:49:11 +0000 (12:49 +0200)
* lib/unistd.in.h: Remove code for OSF/1.

ChangeLog
lib/unistd.in.h

index 14993154838a2ed48732b429e85b591df1293232..04dc9a07d5efae115dc62d2afae4439fa7089d34 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,5 +1,8 @@
 2025-09-09  Bruno Haible  <bruno@clisp.org>
 
+       unistd-h: Remove support for OSF/1.
+       * lib/unistd.in.h: Remove code for OSF/1.
+
        ttyname_r: Remove support for OSF/1.
        * m4/ttyname_r.m4 (gl_FUNC_TTYNAME_R): Remove cross-compilation guess
        for OSF/1.
index ea221481f878a6aa8aadc81f27215b2b56308e5b..2784924e1143b08f19e0396220abc51074cdef81 100644 (file)
 /* mingw, MSVC, BeOS, Haiku declare environ in <stdlib.h>, not in
    <unistd.h>.  */
 /* Solaris declares getcwd not only in <unistd.h> but also in <stdlib.h>.  */
-/* OSF Tru64 Unix cannot see gnulib rpl_strtod when system <stdlib.h> is
-   included here.  */
 /* But avoid namespace pollution on glibc systems.  */
-#if !defined __GLIBC__ && !defined __osf__
+#if !defined __GLIBC__
 # define __need_system_stdlib_h
 # include <stdlib.h>
 # undef __need_system_stdlib_h
 # include <process.h>
 #endif
 
-/* AIX and OSF/1 5.1 declare getdomainname in <netdb.h>, not in <unistd.h>.
+/* AIX declares getdomainname in <netdb.h>, not in <unistd.h>.
    NonStop Kernel declares gethostname in <netdb.h>, not in <unistd.h>.  */
 /* But avoid namespace pollution on glibc systems.  */
-#if ((@GNULIB_GETDOMAINNAME@ && (defined _AIX || defined __osf__)) \
+#if ((@GNULIB_GETDOMAINNAME@ && defined _AIX) \
      || (@GNULIB_GETHOSTNAME@ && defined __TANDEM)) \
     && !defined __GLIBC__
 # include <netdb.h>
@@ -1333,8 +1331,7 @@ _GL_CXXALIAS_RPL (gethostname, int, (char *name, size_t len));
 _GL_FUNCDECL_SYS (gethostname, int, (char *name, size_t len),
                                     _GL_ARG_NONNULL ((1)));
 #  endif
-/* Need to cast, because on Solaris 10 and OSF/1 5.1 systems, the second
-   parameter is
+/* Need to cast, because on Solaris 10 systems, the second parameter is
                                                       int len.  */
 _GL_CXXALIAS_SYS_CAST (gethostname, int, (char *name, size_t len));
 # endif