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

13 files changed:
ChangeLog
doc/posix-headers/termios.texi
modules/posixcheck
modules/pty-h
modules/tcgetsid
modules/termios
modules/termios-c++-tests [deleted file]
modules/termios-h [new file with mode: 0644]
modules/termios-h-c++-tests [new file with mode: 0644]
modules/termios-h-tests [new file with mode: 0644]
modules/termios-tests [deleted file]
tests/test-termios-h-c++.cc [moved from tests/test-termios-c++.cc with 100% similarity]
tests/test-termios-h.c [moved from tests/test-termios.c with 100% similarity]

index ff8b6ca13908e77768229d177d9f8406581ce7b8..23e8e7126d7c6eadc5afb935283580bfd103242b 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,15 @@
+2024-12-27  Bruno Haible  <bruno@clisp.org>
+
+       Rename module termios to termios-h.
+       * modules/termios-h: Renamed from modules/termios.
+       * modules/termios-h-tests: Renamed from modules/termios-tests.
+       * modules/termios-h-c++-tests: Renamed from modules/termios-c++-tests.
+       * tests/test-termios-h.c: Renamed from tests/test-termios.c.
+       * tests/test-termios-h-c++.cc: Renamed from tests/test-termios-c++.cc.
+       * doc/posix-headers/termios.texi: Update.
+       * modules/* (Depends-on): Update.
+       * modules/termios: New file.
+
 2024-12-27  Bruno Haible  <bruno@clisp.org>
 
        Rename module sys_wait to sys_wait-h.
index e0603f9fd8e495a6449a5ab2d969865516c4acba..a238790ac875232c279f545248a855da2d80d7e5 100644 (file)
@@ -3,8 +3,8 @@
 
 POSIX specification:@* @url{https://pubs.opengroup.org/onlinepubs/9799919799/basedefs/termios.h.html}
 
-Gnulib module: termios
-@mindex termios
+Gnulib module: termios-h
+@mindex termios-h
 
 Portability problems fixed by Gnulib:
 @itemize
index 053160f60d6d15f32098e07b5fe52a8a28d4d332..e069fc6dc1c363e2fca4bb2fc9f667169dd9c376 100644 (file)
@@ -43,7 +43,7 @@ sys_time-h
 sys_times-h
 sys_utsname-h
 sys_wait-h
-termios
+termios-h
 threads-h
 time-h
 uchar
index 7a1a2e3894ba73bf16a29f8c5e1b17bfc34f7ee3..3c7775556f833329c4f4cc78a75c177f0aa1d77d 100644 (file)
@@ -10,7 +10,7 @@ gen-header
 include_next
 snippet/c++defs
 snippet/warn-on-use
-termios
+termios-h
 
 configure.ac:
 gl_PTY_H
index f5300c8d42b2d974d19decaa7cff0309922fcec5..f0547c2323ed6d1c91b08cdf25d4b4e59af833e4 100644 (file)
@@ -7,7 +7,7 @@ lib/tcgetsid.c
 m4/tcgetsid.m4
 
 Depends-on:
-termios
+termios-h
 extensions
 sys_ioctl-h     [test $HAVE_TCGETSID = 0]
 
index 3af20592b92e15b8736e0c7f5af062526e9bd7cb..cd66a3b0fb90b83cb916e13cd953951f14fa0877 100644 (file)
@@ -1,45 +1,20 @@
 Description:
 A <termios.h> that works around platform issues.
 
+Status:
+deprecated
+
+Notice:
+This module is deprecated. Use the module 'termios-h' instead.
+
 Files:
-lib/termios.in.h
-m4/termios_h.m4
-m4/pid_t.m4
 
 Depends-on:
-gen-header
-include_next
-snippet/c++defs
-snippet/warn-on-use
+termios-h
 
 configure.ac:
-gl_TERMIOS_H
-gl_TERMIOS_H_REQUIRE_DEFAULTS
-AC_PROG_MKDIR_P
 
 Makefile.am:
-BUILT_SOURCES += termios.h
-
-# We need the following in order to create <termios.h> when the system
-# version does not have all declarations.
-termios.h: termios.in.h $(top_builddir)/config.status $(CXXDEFS_H) $(WARN_ON_USE_H)
-@NMD@  $(AM_V_GEN)$(MKDIR_P) '%reldir%'
-       $(gl_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_TERMIOS_H''@|$(NEXT_TERMIOS_H)|g' \
-             -e 's/@''GNULIB_TCGETSID''@/$(GNULIB_TCGETSID)/g' \
-             -e 's|@''HAVE_DECL_TCGETSID''@|$(HAVE_DECL_TCGETSID)|g' \
-             -e 's|@''HAVE_TERMIOS_H''@|$(HAVE_TERMIOS_H)|g' \
-             -e 's|@''TERMIOS_H_DEFINES_STRUCT_WINSIZE''@|$(TERMIOS_H_DEFINES_STRUCT_WINSIZE)|g' \
-             -e 's|@''SYS_IOCTL_H_DEFINES_STRUCT_WINSIZE''@|$(SYS_IOCTL_H_DEFINES_STRUCT_WINSIZE)|g' \
-             -e '/definitions of _GL_FUNCDECL_RPL/r $(CXXDEFS_H)' \
-             -e '/definition of _GL_WARN_ON_USE/r $(WARN_ON_USE_H)' \
-             $(srcdir)/termios.in.h > $@-t
-       $(AM_V_at)mv $@-t $@
-MOSTLYCLEANFILES += termios.h termios.h-t
 
 Include:
 <termios.h>
@@ -48,4 +23,3 @@ License:
 LGPLv2+
 
 Maintainer:
-all
diff --git a/modules/termios-c++-tests b/modules/termios-c++-tests
deleted file mode 100644 (file)
index a197581..0000000
+++ /dev/null
@@ -1,18 +0,0 @@
-Files:
-tests/test-termios-c++.cc
-tests/signature.h
-
-Status:
-c++-test
-
-Depends-on:
-ansi-c++-opt
-
-configure.ac:
-
-Makefile.am:
-if ANSICXX
-TESTS += test-termios-c++
-check_PROGRAMS += test-termios-c++
-test_termios_c___SOURCES = test-termios-c++.cc
-endif
diff --git a/modules/termios-h b/modules/termios-h
new file mode 100644 (file)
index 0000000..3af2059
--- /dev/null
@@ -0,0 +1,51 @@
+Description:
+A <termios.h> that works around platform issues.
+
+Files:
+lib/termios.in.h
+m4/termios_h.m4
+m4/pid_t.m4
+
+Depends-on:
+gen-header
+include_next
+snippet/c++defs
+snippet/warn-on-use
+
+configure.ac:
+gl_TERMIOS_H
+gl_TERMIOS_H_REQUIRE_DEFAULTS
+AC_PROG_MKDIR_P
+
+Makefile.am:
+BUILT_SOURCES += termios.h
+
+# We need the following in order to create <termios.h> when the system
+# version does not have all declarations.
+termios.h: termios.in.h $(top_builddir)/config.status $(CXXDEFS_H) $(WARN_ON_USE_H)
+@NMD@  $(AM_V_GEN)$(MKDIR_P) '%reldir%'
+       $(gl_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_TERMIOS_H''@|$(NEXT_TERMIOS_H)|g' \
+             -e 's/@''GNULIB_TCGETSID''@/$(GNULIB_TCGETSID)/g' \
+             -e 's|@''HAVE_DECL_TCGETSID''@|$(HAVE_DECL_TCGETSID)|g' \
+             -e 's|@''HAVE_TERMIOS_H''@|$(HAVE_TERMIOS_H)|g' \
+             -e 's|@''TERMIOS_H_DEFINES_STRUCT_WINSIZE''@|$(TERMIOS_H_DEFINES_STRUCT_WINSIZE)|g' \
+             -e 's|@''SYS_IOCTL_H_DEFINES_STRUCT_WINSIZE''@|$(SYS_IOCTL_H_DEFINES_STRUCT_WINSIZE)|g' \
+             -e '/definitions of _GL_FUNCDECL_RPL/r $(CXXDEFS_H)' \
+             -e '/definition of _GL_WARN_ON_USE/r $(WARN_ON_USE_H)' \
+             $(srcdir)/termios.in.h > $@-t
+       $(AM_V_at)mv $@-t $@
+MOSTLYCLEANFILES += termios.h termios.h-t
+
+Include:
+<termios.h>
+
+License:
+LGPLv2+
+
+Maintainer:
+all
diff --git a/modules/termios-h-c++-tests b/modules/termios-h-c++-tests
new file mode 100644 (file)
index 0000000..5eb47cf
--- /dev/null
@@ -0,0 +1,18 @@
+Files:
+tests/test-termios-h-c++.cc
+tests/signature.h
+
+Status:
+c++-test
+
+Depends-on:
+ansi-c++-opt
+
+configure.ac:
+
+Makefile.am:
+if ANSICXX
+TESTS += test-termios-h-c++
+check_PROGRAMS += test-termios-h-c++
+test_termios_h_c___SOURCES = test-termios-h-c++.cc
+endif
diff --git a/modules/termios-h-tests b/modules/termios-h-tests
new file mode 100644 (file)
index 0000000..3b64db4
--- /dev/null
@@ -0,0 +1,11 @@
+Files:
+tests/test-termios-h.c
+
+Depends-on:
+termios-h-c++-tests
+
+configure.ac:
+
+Makefile.am:
+TESTS += test-termios-h
+check_PROGRAMS += test-termios-h
diff --git a/modules/termios-tests b/modules/termios-tests
deleted file mode 100644 (file)
index df7eac1..0000000
+++ /dev/null
@@ -1,11 +0,0 @@
-Files:
-tests/test-termios.c
-
-Depends-on:
-termios-c++-tests
-
-configure.ac:
-
-Makefile.am:
-TESTS += test-termios
-check_PROGRAMS += test-termios
similarity index 100%
rename from tests/test-termios.c
rename to tests/test-termios-h.c