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

ChangeLog
doc/posix-headers/net_if.texi
modules/net_if
modules/net_if-c++-tests [deleted file]
modules/net_if-h [new file with mode: 0644]
modules/net_if-h-c++-tests [new file with mode: 0644]
modules/net_if-h-tests [moved from modules/net_if-tests with 73% similarity]
tests/test-net_if-h-c++.cc [moved from tests/test-net_if-c++.cc with 100% similarity]
tests/test-net_if-h.c [moved from tests/test-net_if.c with 100% similarity]

index 12ae4c74bc2b73d51058b6315345700a4ad76502..a47950f80e29b3fb5dc3139bd5ef9a1b3d355063 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,14 @@
+2024-12-27  Bruno Haible  <bruno@clisp.org>
+
+       Rename module net_if to net_if-h.
+       * modules/net_if-h: Renamed from modules/net_if.
+       * modules/net_if-h-tests: Renamed from modules/net_if-tests.
+       * modules/net_if-h-c++-tests: Renamed from modules/net_if-c++-tests.
+       * tests/test-net_if-h.c: Renamed from tests/test-net_if.c.
+       * tests/test-net_if-h-c++.cc: Renamed from tests/test-net_if-c++.cc.
+       * doc/posix-headers/net_if.texi: Update.
+       * modules/net_if: New file.
+
 2024-12-27  Bruno Haible  <bruno@clisp.org>
 
        Rename module netdb to netdb-h.
index 644b06abd565eeb5c1ecc01398d27b3d473aab50..f38c7f7394b68751c497645bcaaf41517e755e07 100644 (file)
@@ -3,8 +3,8 @@
 
 POSIX specification:@* @url{https://pubs.opengroup.org/onlinepubs/9799919799/basedefs/net_if.h.html}
 
-Gnulib module: net_if
-@mindex net_if
+Gnulib module: net_if-h
+@mindex net_if-h
 
 Portability problems fixed by Gnulib:
 @itemize
index d1b4865bdbcfd4fb412c4b8dd511e6f3eb14297d..efecbdfab8c8d1ee522b28663872e3356b505e6a 100644 (file)
@@ -1,43 +1,20 @@
 Description:
 A <net/if.h> for systems lacking it.
 
+Status:
+deprecated
+
+Notice:
+This module is deprecated. Use the module 'net_if-h' instead.
+
 Files:
-lib/net_if.in.h
-m4/net_if_h.m4
 
 Depends-on:
-gen-header
-include_next
-sys_socket
+net_if-h
 
 configure.ac:
-gl_HEADER_NET_IF
-gl_CONDITIONAL_HEADER([net/if.h])
-AC_PROG_MKDIR_P
 
 Makefile.am:
-BUILT_SOURCES += $(NET_IF_H)
-
-# We need the following in order to create <net/if.h> when the system
-# doesn't have one.
-if GL_GENERATE_NET_IF_H
-net/if.h: net_if.in.h $(top_builddir)/config.status
-       $(AM_V_GEN)$(MKDIR_P) '%reldir%/net'
-       $(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_NET_IF_H''@|$(NEXT_NET_IF_H)|g' \
-             -e 's|@''HAVE_NET_IF_H''@|$(HAVE_NET_IF_H)|g' \
-             $(srcdir)/net_if.in.h > $@-t
-       $(AM_V_at)mv $@-t $@
-else
-net/if.h: $(top_builddir)/config.status
-       rm -f $@
-endif
-MOSTLYCLEANFILES += net/if.h net/if.h-t
-MOSTLYCLEANDIRS += net
 
 Include:
 <net/if.h>
@@ -46,4 +23,3 @@ License:
 LGPLv2+
 
 Maintainer:
-Eric Blake
diff --git a/modules/net_if-c++-tests b/modules/net_if-c++-tests
deleted file mode 100644 (file)
index 2111696..0000000
+++ /dev/null
@@ -1,19 +0,0 @@
-Files:
-tests/test-net_if-c++.cc
-
-Status:
-c++-test
-
-Depends-on:
-ansi-c++-opt
-net_if-tests
-
-configure.ac:
-
-Makefile.am:
-if ANSICXX
-TESTS += test-net_if-c++
-check_PROGRAMS += test-net_if-c++
-test_net_if_c___SOURCES = test-net_if-c++.cc
-test_net_if_c___LDADD = $(LDADD) @NET_IF_LIB@
-endif
diff --git a/modules/net_if-h b/modules/net_if-h
new file mode 100644 (file)
index 0000000..d1b4865
--- /dev/null
@@ -0,0 +1,49 @@
+Description:
+A <net/if.h> for systems lacking it.
+
+Files:
+lib/net_if.in.h
+m4/net_if_h.m4
+
+Depends-on:
+gen-header
+include_next
+sys_socket
+
+configure.ac:
+gl_HEADER_NET_IF
+gl_CONDITIONAL_HEADER([net/if.h])
+AC_PROG_MKDIR_P
+
+Makefile.am:
+BUILT_SOURCES += $(NET_IF_H)
+
+# We need the following in order to create <net/if.h> when the system
+# doesn't have one.
+if GL_GENERATE_NET_IF_H
+net/if.h: net_if.in.h $(top_builddir)/config.status
+       $(AM_V_GEN)$(MKDIR_P) '%reldir%/net'
+       $(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_NET_IF_H''@|$(NEXT_NET_IF_H)|g' \
+             -e 's|@''HAVE_NET_IF_H''@|$(HAVE_NET_IF_H)|g' \
+             $(srcdir)/net_if.in.h > $@-t
+       $(AM_V_at)mv $@-t $@
+else
+net/if.h: $(top_builddir)/config.status
+       rm -f $@
+endif
+MOSTLYCLEANFILES += net/if.h net/if.h-t
+MOSTLYCLEANDIRS += net
+
+Include:
+<net/if.h>
+
+License:
+LGPLv2+
+
+Maintainer:
+Eric Blake
diff --git a/modules/net_if-h-c++-tests b/modules/net_if-h-c++-tests
new file mode 100644 (file)
index 0000000..8a86ea4
--- /dev/null
@@ -0,0 +1,19 @@
+Files:
+tests/test-net_if-h-c++.cc
+
+Status:
+c++-test
+
+Depends-on:
+ansi-c++-opt
+net_if-h-tests
+
+configure.ac:
+
+Makefile.am:
+if ANSICXX
+TESTS += test-net_if-h-c++
+check_PROGRAMS += test-net_if-h-c++
+test_net_if_h_c___SOURCES = test-net_if-h-c++.cc
+test_net_if_h_c___LDADD = $(LDADD) @NET_IF_LIB@
+endif
similarity index 73%
rename from modules/net_if-tests
rename to modules/net_if-h-tests
index 116bf62ea6a73d71bda2c574eca7175473597fdb..be2709c707e5a74a8a9c8d263ffe73e2856eb58d 100644 (file)
@@ -1,9 +1,9 @@
 Files:
-tests/test-net_if.c
+tests/test-net_if-h.c
 tests/signature.h
 
 Depends-on:
-net_if-c++-tests
+net_if-h-c++-tests
 
 configure.ac:
 NET_IF_LIB=
@@ -17,6 +17,6 @@ LIBS="$gl_saved_libs"
 AC_SUBST([NET_IF_LIB])
 
 Makefile.am:
-TESTS += test-net_if
-check_PROGRAMS += test-net_if
-test_net_if_LDADD = $(LDADD) @NET_IF_LIB@
+TESTS += test-net_if-h
+check_PROGRAMS += test-net_if-h
+test_net_if_h_LDADD = $(LDADD) @NET_IF_LIB@
similarity index 100%
rename from tests/test-net_if.c
rename to tests/test-net_if-h.c