]> git.ipfire.org Git - thirdparty/gnulib.git/commitdiff
Rename module sys_types to sys_types-h.
authorBruno Haible <bruno@clisp.org>
Fri, 27 Dec 2024 22:41:40 +0000 (23:41 +0100)
committerBruno Haible <bruno@clisp.org>
Fri, 27 Dec 2024 22:41:40 +0000 (23:41 +0100)
* modules/sys_types-h: Renamed from modules/sys_types.
* modules/sys_types-h-tests: Renamed from modules/sys_types-tests.
* modules/sys_types-h-c++-tests: Renamed from
modules/sys_types-c++-tests.
* tests/test-sys_types-h.c: Renamed from tests/test-sys_types.c.
* tests/test-sys_types-h-c++.cc: Renamed from
tests/test-sys_types-c++.cc.
* doc/posix-headers/sys_types.texi: Update.
* modules/* (Depends-on): Update.
* modules/sys_types: New file.

26 files changed:
ChangeLog
doc/posix-headers/sys_types.texi
modules/fcntl-h
modules/fseeko
modules/ftello
modules/ftruncate
modules/get_ppid_of
modules/largefile-tests
modules/limits-h-tests
modules/lseek
modules/same-inode
modules/stdint-h
modules/stdio-h
modules/strings-h
modules/sys_stat-h
modules/sys_types
modules/sys_types-c++-tests [deleted file]
modules/sys_types-h [new file with mode: 0644]
modules/sys_types-h-c++-tests [new file with mode: 0644]
modules/sys_types-h-tests [new file with mode: 0644]
modules/sys_types-tests [deleted file]
modules/sys_uio
modules/truncate
modules/unistd
tests/test-sys_types-h-c++.cc [moved from tests/test-sys_types-c++.cc with 100% similarity]
tests/test-sys_types-h.c [moved from tests/test-sys_types.c with 100% similarity]

index de362265f02b97ff53559a2ff58adb2356e8b5c1..f586960adc35ecab51898ee65cfd13991d5fb2b3 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,17 @@
+2024-12-27  Bruno Haible  <bruno@clisp.org>
+
+       Rename module sys_types to sys_types-h.
+       * modules/sys_types-h: Renamed from modules/sys_types.
+       * modules/sys_types-h-tests: Renamed from modules/sys_types-tests.
+       * modules/sys_types-h-c++-tests: Renamed from
+       modules/sys_types-c++-tests.
+       * tests/test-sys_types-h.c: Renamed from tests/test-sys_types.c.
+       * tests/test-sys_types-h-c++.cc: Renamed from
+       tests/test-sys_types-c++.cc.
+       * doc/posix-headers/sys_types.texi: Update.
+       * modules/* (Depends-on): Update.
+       * modules/sys_types: New file.
+
 2024-12-27  Bruno Haible  <bruno@clisp.org>
 
        Rename module sys_times to sys_times-h.
index d1cf71b1f1896205d18d1b00c0032c6d3cbabdad..2684e23a58c933b2eb149ef2981dc6186cba4450 100644 (file)
@@ -3,8 +3,8 @@
 
 POSIX specification:@* @url{https://pubs.opengroup.org/onlinepubs/9799919799/basedefs/sys_types.h.html}
 
-Gnulib module: sys_types
-@mindex sys_types
+Gnulib module: sys_types-h
+@mindex sys_types-h
 
 Portability problems fixed by Gnulib:
 @itemize
index a6346a5077db1acabcec0ccdb8429c58ca6aa6a7..9ea889dfd975f5bd7eba833fadc66d9c5eab4549 100644 (file)
@@ -14,7 +14,7 @@ include_next
 snippet/arg-nonnull
 snippet/c++defs
 snippet/warn-on-use
-sys_types
+sys_types-h
 unistd
 
 configure.ac:
index 58f50d6abe6de2ee17eb529301f2a26c8688d375..3857d7befa78de4018501334f39da6d1bd99e28f 100644 (file)
@@ -11,7 +11,7 @@ extensions
 largefile
 lseek
 stdio-h
-sys_types
+sys_types-h
 # Just to guarantee consistency between fseek() and fseeko().
 fseek
 
index 24f765d9a2dd4d439d039322ce978a324d0d0701..60d5f86771764cc147b5deeff2c4e3da81bf28ee 100644 (file)
@@ -12,7 +12,7 @@ Depends-on:
 stdio-h
 extensions
 largefile
-sys_types
+sys_types-h
 lseek           [test $HAVE_FTELLO = 0 || test $REPLACE_FTELLO = 1]
 stdckdint-h     [test $HAVE_FTELLO = 0 || test $REPLACE_FTELLO = 1]
 # Just to guarantee consistency between ftell() and ftello().
index c8e58ca940a6e9389b7e4c823acfc3386d1aaa44..be79ee513e6d97eac7eb039ee3ed7fc9c39aa519 100644 (file)
@@ -7,7 +7,7 @@ m4/ftruncate.m4
 
 Depends-on:
 unistd
-sys_types
+sys_types-h
 largefile
 msvc-nothrow    [test $HAVE_FTRUNCATE = 0 || test $REPLACE_FTRUNCATE = 1]
 msvc-inval      [test $HAVE_FTRUNCATE = 0 || test $REPLACE_FTRUNCATE = 1]
index 84e3d793b3a99704cf83fd63e8bb9b0af35e4c68..bc38b8c2141e5a790808348f8429abc7266ad83a 100644 (file)
@@ -7,7 +7,7 @@ lib/get_ppid_of.c
 
 Depends-on:
 extensions
-sys_types
+sys_types-h
 unistd
 open
 
index b94f02c4c5a433d3b53f1fe2642bdbeea8f60807..4dcb5c243e714a22c93dab1b43ceee6165766159 100644 (file)
@@ -3,7 +3,7 @@ tests/test-largefile.c
 
 Depends-on:
 intprops
-sys_types
+sys_types-h
 sys_stat-h
 
 configure.ac:
index 51919ad1a17d6e70fe027849577041458a3ac070..0856f4726e11f126d7d567d28e08a60d7fc7c478 100644 (file)
@@ -4,7 +4,7 @@ tests/test-limits-h.c
 Depends-on:
 assert-h
 extensions
-sys_types
+sys_types-h
 limits-h-c++-tests
 
 configure.ac:
index 711afeb2faa1761b17cb622218f343217b2fa97c..a00d9beeb931bc1c0b1e54dd48254efb90567e78 100644 (file)
@@ -7,7 +7,7 @@ m4/lseek.m4
 
 Depends-on:
 unistd
-sys_types
+sys_types-h
 largefile
 msvc-nothrow    [test $REPLACE_LSEEK = 1]
 fstat           [test "$gl_cv_func_lseek_pipe" = no]
index 57e5d282a6afed1a32988422a902f55fbc0fa9f7..2c92ab7985cb7cc4075987f6c91b0f310c112925 100644 (file)
@@ -8,7 +8,7 @@ lib/same-inode.h
 Depends-on:
 extern-inline
 stdbool-h
-sys_types
+sys_types-h
 
 configure.ac:
 
index 3c37c0846bc6bb817acd5109f463785438ceac2e..d90cce2be930e65c0617cd7a96db527c3e710674 100644 (file)
@@ -17,7 +17,7 @@ gen-header
 include_next
 limits-h
 multiarch
-sys_types
+sys_types-h
 
 configure.ac:
 gl_STDINT_H
index dfae001260a847dd68d2d77f1219564b2f344f1d..6190bb95aae65f248a714ac13dcdb722829dadab 100644 (file)
@@ -17,7 +17,7 @@ snippet/c++defs
 snippet/warn-on-use
 ssize_t
 stddef-h
-sys_types
+sys_types-h
 
 configure.ac-early:
 gl_STDIO_H_EARLY
index 6e8ef4868419583938b0241fdd07552a6a3d52e7..ad05ba3314d320e4d6e14ccc832111c52b094861 100644 (file)
@@ -11,7 +11,7 @@ include_next
 snippet/arg-nonnull
 snippet/c++defs
 snippet/warn-on-use
-sys_types
+sys_types-h
 
 configure.ac:
 gl_STRINGS_H
index 233224e835d143c4864558ffe88a6083c00226fb..5552db8e0071ea3ba7cb0e49c582aeb00ed23423 100644 (file)
@@ -13,7 +13,7 @@ include_next
 snippet/arg-nonnull
 snippet/c++defs
 snippet/warn-on-use
-sys_types
+sys_types-h
 time-h
 
 configure.ac:
index b878a03e1b04c4833192c45447bb7aa7e7d723de..01a5c0424885920b166138b39d14616ff6a49701 100644 (file)
@@ -1,46 +1,20 @@
 Description:
 A <sys/types.h> that conforms better to POSIX.
 
+Status:
+deprecated
+
+Notice:
+This module is deprecated. Use the module 'sys_types-h' instead.
+
 Files:
-lib/sys_types.in.h
-m4/sys_types_h.m4
-m4/off_t.m4
-m4/off64_t.m4
-m4/pid_t.m4
 
 Depends-on:
-gen-header
-include_next
-ssize_t
-
-configure.ac-early:
-AC_REQUIRE([AC_USE_SYSTEM_EXTENSIONS])
+sys_types-h
 
 configure.ac:
-gl_SYS_TYPES_H
-gl_SYS_TYPES_H_REQUIRE_DEFAULTS
-AC_PROG_MKDIR_P
 
 Makefile.am:
-BUILT_SOURCES += sys/types.h
-
-# We need the following in order to create <sys/types.h> when the system
-# doesn't have one that works with the given compiler.
-sys/types.h: sys_types.in.h $(top_builddir)/config.status
-       $(AM_V_GEN)$(MKDIR_P) '%reldir%/sys'
-       $(AM_V_at)$(SED_HEADER_STDOUT) \
-             -e 's|@''GUARD_PREFIX''@|${gl_include_guard_prefix}|g' \
-             -e 's|@''INCLUDE_NEXT''@|$(INCLUDE_NEXT)|g' \
-             -e 's|@''PRAGMA_SYSTEM_HEADER''@|@PRAGMA_SYSTEM_HEADER@|g' \
-             -e 's|@''PRAGMA_COLUMNS''@|@PRAGMA_COLUMNS@|g' \
-             -e 's|@''NEXT_SYS_TYPES_H''@|$(NEXT_SYS_TYPES_H)|g' \
-             -e 's|@''WINDOWS_64_BIT_OFF_T''@|$(WINDOWS_64_BIT_OFF_T)|g' \
-             -e 's|@''HAVE_OFF64_T''@|$(HAVE_OFF64_T)|g' \
-             -e 's|@''WINDOWS_STAT_INODES''@|$(WINDOWS_STAT_INODES)|g' \
-             $(srcdir)/sys_types.in.h > $@-t
-       $(AM_V_at)mv $@-t $@
-MOSTLYCLEANFILES += sys/types.h sys/types.h-t
-MOSTLYCLEANDIRS += sys
 
 Include:
 <sys/types.h>
@@ -49,4 +23,3 @@ License:
 LGPLv2+
 
 Maintainer:
-all
diff --git a/modules/sys_types-c++-tests b/modules/sys_types-c++-tests
deleted file mode 100644 (file)
index 68e21ae..0000000
+++ /dev/null
@@ -1,17 +0,0 @@
-Files:
-tests/test-sys_types-c++.cc
-
-Status:
-c++-test
-
-Depends-on:
-ansi-c++-opt
-
-configure.ac:
-
-Makefile.am:
-if ANSICXX
-TESTS += test-sys_types-c++
-check_PROGRAMS += test-sys_types-c++
-test_sys_types_c___SOURCES = test-sys_types-c++.cc
-endif
diff --git a/modules/sys_types-h b/modules/sys_types-h
new file mode 100644 (file)
index 0000000..b878a03
--- /dev/null
@@ -0,0 +1,52 @@
+Description:
+A <sys/types.h> that conforms better to POSIX.
+
+Files:
+lib/sys_types.in.h
+m4/sys_types_h.m4
+m4/off_t.m4
+m4/off64_t.m4
+m4/pid_t.m4
+
+Depends-on:
+gen-header
+include_next
+ssize_t
+
+configure.ac-early:
+AC_REQUIRE([AC_USE_SYSTEM_EXTENSIONS])
+
+configure.ac:
+gl_SYS_TYPES_H
+gl_SYS_TYPES_H_REQUIRE_DEFAULTS
+AC_PROG_MKDIR_P
+
+Makefile.am:
+BUILT_SOURCES += sys/types.h
+
+# We need the following in order to create <sys/types.h> when the system
+# doesn't have one that works with the given compiler.
+sys/types.h: sys_types.in.h $(top_builddir)/config.status
+       $(AM_V_GEN)$(MKDIR_P) '%reldir%/sys'
+       $(AM_V_at)$(SED_HEADER_STDOUT) \
+             -e 's|@''GUARD_PREFIX''@|${gl_include_guard_prefix}|g' \
+             -e 's|@''INCLUDE_NEXT''@|$(INCLUDE_NEXT)|g' \
+             -e 's|@''PRAGMA_SYSTEM_HEADER''@|@PRAGMA_SYSTEM_HEADER@|g' \
+             -e 's|@''PRAGMA_COLUMNS''@|@PRAGMA_COLUMNS@|g' \
+             -e 's|@''NEXT_SYS_TYPES_H''@|$(NEXT_SYS_TYPES_H)|g' \
+             -e 's|@''WINDOWS_64_BIT_OFF_T''@|$(WINDOWS_64_BIT_OFF_T)|g' \
+             -e 's|@''HAVE_OFF64_T''@|$(HAVE_OFF64_T)|g' \
+             -e 's|@''WINDOWS_STAT_INODES''@|$(WINDOWS_STAT_INODES)|g' \
+             $(srcdir)/sys_types.in.h > $@-t
+       $(AM_V_at)mv $@-t $@
+MOSTLYCLEANFILES += sys/types.h sys/types.h-t
+MOSTLYCLEANDIRS += sys
+
+Include:
+<sys/types.h>
+
+License:
+LGPLv2+
+
+Maintainer:
+all
diff --git a/modules/sys_types-h-c++-tests b/modules/sys_types-h-c++-tests
new file mode 100644 (file)
index 0000000..f3a3827
--- /dev/null
@@ -0,0 +1,17 @@
+Files:
+tests/test-sys_types-h-c++.cc
+
+Status:
+c++-test
+
+Depends-on:
+ansi-c++-opt
+
+configure.ac:
+
+Makefile.am:
+if ANSICXX
+TESTS += test-sys_types-h-c++
+check_PROGRAMS += test-sys_types-h-c++
+test_sys_types_h_c___SOURCES = test-sys_types-h-c++.cc
+endif
diff --git a/modules/sys_types-h-tests b/modules/sys_types-h-tests
new file mode 100644 (file)
index 0000000..4b42da3
--- /dev/null
@@ -0,0 +1,11 @@
+Files:
+tests/test-sys_types-h.c
+
+Depends-on:
+sys_types-h-c++-tests
+
+configure.ac:
+
+Makefile.am:
+TESTS += test-sys_types-h
+check_PROGRAMS += test-sys_types-h
diff --git a/modules/sys_types-tests b/modules/sys_types-tests
deleted file mode 100644 (file)
index cd1a83f..0000000
+++ /dev/null
@@ -1,11 +0,0 @@
-Files:
-tests/test-sys_types.c
-
-Depends-on:
-sys_types-c++-tests
-
-configure.ac:
-
-Makefile.am:
-TESTS += test-sys_types
-check_PROGRAMS += test-sys_types
index d7234ee355b9ad8a5a5176c293161af0054b1cf6..391e23270278c4baaa69c08b4fcae21c1d1911e1 100644 (file)
@@ -9,7 +9,7 @@ Depends-on:
 gen-header
 include_next
 ssize_t
-sys_types
+sys_types-h
 
 configure.ac:
 gl_SYS_UIO_H
index 7aa986cf35cb6a6c908d447e7500ee6b42c03810..1baee02cdaab06f172601f649798f08f7d0bcd97 100644 (file)
@@ -7,7 +7,7 @@ m4/truncate.m4
 
 Depends-on:
 unistd
-sys_types
+sys_types-h
 largefile
 sys_stat-h
 stat            [test $REPLACE_TRUNCATE = 1]
index b9cfa25072328d0b49c9c16541a13d28e1255eff..af7fda5944c7a2bb268f6223c02685bf6c8785a8 100644 (file)
@@ -17,7 +17,7 @@ snippet/c++defs
 snippet/warn-on-use
 ssize_t
 stddef-h
-sys_types
+sys_types-h
 
 configure.ac:
 gl_UNISTD_H