1
0
mirror of https://https.git.savannah.gnu.org/git/gnulib.git synced 2026-04-28 06:33:36 +00:00

Rename module sys_time to sys_time-h.

* modules/sys_time-h: Renamed from modules/sys_time.
* modules/sys_time-h-tests: Renamed from modules/sys_time-tests.
* modules/sys_time-h-c++-tests: Renamed from modules/sys_time-c++-tests.
* tests/test-sys_time-h.c: Renamed from tests/test-sys_time.c.
* tests/test-sys_time-h-c++.cc: Renamed from tests/test-sys_time-c++.cc.
* doc/posix-headers/sys_time.texi: Update.
* modules/* (Depends-on): Update.
* modules/sys_time: New file.
This commit is contained in:
Bruno Haible
2024-12-27 23:41:36 +01:00
parent 984cbda2ae
commit 074fcd0ab1
24 changed files with 121 additions and 84 deletions

View File

@@ -1,3 +1,15 @@
2024-12-27 Bruno Haible <bruno@clisp.org>
Rename module sys_time to sys_time-h.
* modules/sys_time-h: Renamed from modules/sys_time.
* modules/sys_time-h-tests: Renamed from modules/sys_time-tests.
* modules/sys_time-h-c++-tests: Renamed from modules/sys_time-c++-tests.
* tests/test-sys_time-h.c: Renamed from tests/test-sys_time.c.
* tests/test-sys_time-h-c++.cc: Renamed from tests/test-sys_time-c++.cc.
* doc/posix-headers/sys_time.texi: Update.
* modules/* (Depends-on): Update.
* modules/sys_time: New file.
2024-12-27 Bruno Haible <bruno@clisp.org>
Rename module sys_stat to sys_stat-h.

View File

@@ -3,8 +3,8 @@
POSIX specification:@* @url{https://pubs.opengroup.org/onlinepubs/9799919799/basedefs/sys_time.h.html}
Gnulib module: sys_time
@mindex sys_time
Gnulib module: sys_time-h
@mindex sys_time-h
Portability problems fixed by Gnulib:
@itemize

View File

@@ -13,7 +13,7 @@ clock-time
extensions
extern-inline
gettime
sys_time
sys_time-h
configure.ac:
gl_GETHRXTIME

View File

@@ -9,7 +9,7 @@ Depends-on:
extensions
sys_socket-h
socketlib
sys_time [test "$ac_cv_header_winsock2_h" = yes]
sys_time-h [test "$ac_cv_header_winsock2_h" = yes]
errno-h [test "$ac_cv_header_winsock2_h" = yes]
msvc-nothrow [test "$ac_cv_header_winsock2_h" = yes]

View File

@@ -8,7 +8,7 @@ m4/gettime.m4
Depends-on:
clock-time
gettimeofday
sys_time
sys_time-h
timespec
extensions

View File

@@ -6,7 +6,7 @@ lib/gettimeofday.c
m4/gettimeofday.m4
Depends-on:
sys_time
sys_time-h
configure.ac:
gl_FUNC_GETTIMEOFDAY

View File

@@ -13,7 +13,7 @@ select [test $HAVE_POLL = 0 || test $REPLACE_POLL = 1]
sockets [test $HAVE_POLL = 0 || test $REPLACE_POLL = 1]
sys_select-h [test $HAVE_POLL = 0 || test $REPLACE_POLL = 1]
sys_socket-h [test $HAVE_POLL = 0 || test $REPLACE_POLL = 1]
sys_time [test $HAVE_POLL = 0 || test $REPLACE_POLL = 1]
sys_time-h [test $HAVE_POLL = 0 || test $REPLACE_POLL = 1]
errno-h [test $HAVE_POLL = 0 || test $REPLACE_POLL = 1]
msvc-nothrow [test $HAVE_POLL = 0 || test $REPLACE_POLL = 1]

View File

@@ -39,7 +39,7 @@ sys_resource-h
sys_select-h
sys_socket-h
sys_stat-h
sys_time
sys_time-h
sys_times
sys_utsname
sys_wait

View File

@@ -10,7 +10,7 @@ sys_select-h
alloca [test $REPLACE_SELECT = 1]
dup2 [test $REPLACE_SELECT = 1]
sockets [test $REPLACE_SELECT = 1]
sys_time [test $REPLACE_SELECT = 1]
sys_time-h [test $REPLACE_SELECT = 1]
msvc-nothrow [test $REPLACE_SELECT = 1]
configure.ac:

View File

@@ -8,7 +8,7 @@ lib/w32sock.h
Depends-on:
sys_socket-h
socketlib
sys_time [test "$ac_cv_header_winsock2_h" = yes]
sys_time-h [test "$ac_cv_header_winsock2_h" = yes]
errno-h [test "$ac_cv_header_winsock2_h" = yes]
msvc-nothrow [test "$ac_cv_header_winsock2_h" = yes]

View File

@@ -9,7 +9,7 @@ Depends-on:
clock-time
errno-h
extensions
sys_time
sys_time-h
timespec
configure.ac:

View File

@@ -9,7 +9,7 @@ m4/tm_gmtoff.m4
Depends-on:
time-h
extensions
sys_time [test $HAVE_STRPTIME = 0]
sys_time-h [test $HAVE_STRPTIME = 0]
string-h [test $HAVE_STRPTIME = 0]
strcase [test $HAVE_STRPTIME = 0]
stdbool-h [test $HAVE_STRPTIME = 0]

View File

@@ -11,7 +11,7 @@ include_next
snippet/arg-nonnull
snippet/c++defs
snippet/warn-on-use
sys_time
sys_time-h
configure.ac:
gl_SYS_RESOURCE_H

View File

@@ -12,7 +12,7 @@ include_next
signal-h
snippet/c++defs
snippet/warn-on-use
sys_time
sys_time-h
configure.ac:
gl_SYS_SELECT_H

View File

@@ -1,50 +1,20 @@
Description:
A <sys/time.h> that conforms better to POSIX.
Status:
deprecated
Notice:
This module is deprecated. Use the module 'sys_time-h' instead.
Files:
lib/sys_time.in.h
m4/sys_time_h.m4
m4/sys_socket_h.m4
Depends-on:
gen-header
include_next
snippet/arg-nonnull
snippet/c++defs
snippet/warn-on-use
sys_time-h
configure.ac:
gl_SYS_TIME_H
gl_SYS_TIME_H_REQUIRE_DEFAULTS
AC_PROG_MKDIR_P
Makefile.am:
BUILT_SOURCES += sys/time.h
# We need the following in order to create <sys/time.h> when the system
# doesn't have one that works with the given compiler.
sys/time.h: sys_time.in.h $(top_builddir)/config.status $(CXXDEFS_H) $(ARG_NONNULL_H) $(WARN_ON_USE_H)
$(AM_V_GEN)$(MKDIR_P) '%reldir%/sys'
$(AM_V_at)$(SED_HEADER_STDOUT) \
-e 's|@''GUARD_PREFIX''@|${gl_include_guard_prefix}|g' \
-e 's/@''HAVE_SYS_TIME_H''@/$(HAVE_SYS_TIME_H)/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_TIME_H''@|$(NEXT_SYS_TIME_H)|g' \
-e 's/@''GNULIB_GETTIMEOFDAY''@/$(GNULIB_GETTIMEOFDAY)/g' \
-e 's|@''HAVE_WINSOCK2_H''@|$(HAVE_WINSOCK2_H)|g' \
-e 's/@''HAVE_GETTIMEOFDAY''@/$(HAVE_GETTIMEOFDAY)/g' \
-e 's/@''HAVE_STRUCT_TIMEVAL''@/$(HAVE_STRUCT_TIMEVAL)/g' \
-e 's/@''REPLACE_GETTIMEOFDAY''@/$(REPLACE_GETTIMEOFDAY)/g' \
-e 's/@''REPLACE_STRUCT_TIMEVAL''@/$(REPLACE_STRUCT_TIMEVAL)/g' \
-e '/definitions of _GL_FUNCDECL_RPL/r $(CXXDEFS_H)' \
-e '/definition of _GL_ARG_NONNULL/r $(ARG_NONNULL_H)' \
-e '/definition of _GL_WARN_ON_USE/r $(WARN_ON_USE_H)' \
$(srcdir)/sys_time.in.h > $@-t
$(AM_V_at)mv $@-t $@
MOSTLYCLEANFILES += sys/time.h sys/time.h-t
MOSTLYCLEANDIRS += sys
Include:
<sys/time.h>
@@ -53,4 +23,3 @@ License:
LGPLv2+
Maintainer:
all

View File

@@ -1,19 +0,0 @@
Files:
tests/test-sys_time-c++.cc
tests/signature.h
Status:
c++-test
Depends-on:
ansi-c++-opt
configure.ac:
Makefile.am:
if ANSICXX
TESTS += test-sys_time-c++
check_PROGRAMS += test-sys_time-c++
test_sys_time_c___SOURCES = test-sys_time-c++.cc
test_sys_time_c___LDADD = $(LDADD) $(LIBINTL) $(NANOSLEEP_LIB)
endif

56
modules/sys_time-h Normal file
View File

@@ -0,0 +1,56 @@
Description:
A <sys/time.h> that conforms better to POSIX.
Files:
lib/sys_time.in.h
m4/sys_time_h.m4
m4/sys_socket_h.m4
Depends-on:
gen-header
include_next
snippet/arg-nonnull
snippet/c++defs
snippet/warn-on-use
configure.ac:
gl_SYS_TIME_H
gl_SYS_TIME_H_REQUIRE_DEFAULTS
AC_PROG_MKDIR_P
Makefile.am:
BUILT_SOURCES += sys/time.h
# We need the following in order to create <sys/time.h> when the system
# doesn't have one that works with the given compiler.
sys/time.h: sys_time.in.h $(top_builddir)/config.status $(CXXDEFS_H) $(ARG_NONNULL_H) $(WARN_ON_USE_H)
$(AM_V_GEN)$(MKDIR_P) '%reldir%/sys'
$(AM_V_at)$(SED_HEADER_STDOUT) \
-e 's|@''GUARD_PREFIX''@|${gl_include_guard_prefix}|g' \
-e 's/@''HAVE_SYS_TIME_H''@/$(HAVE_SYS_TIME_H)/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_TIME_H''@|$(NEXT_SYS_TIME_H)|g' \
-e 's/@''GNULIB_GETTIMEOFDAY''@/$(GNULIB_GETTIMEOFDAY)/g' \
-e 's|@''HAVE_WINSOCK2_H''@|$(HAVE_WINSOCK2_H)|g' \
-e 's/@''HAVE_GETTIMEOFDAY''@/$(HAVE_GETTIMEOFDAY)/g' \
-e 's/@''HAVE_STRUCT_TIMEVAL''@/$(HAVE_STRUCT_TIMEVAL)/g' \
-e 's/@''REPLACE_GETTIMEOFDAY''@/$(REPLACE_GETTIMEOFDAY)/g' \
-e 's/@''REPLACE_STRUCT_TIMEVAL''@/$(REPLACE_STRUCT_TIMEVAL)/g' \
-e '/definitions of _GL_FUNCDECL_RPL/r $(CXXDEFS_H)' \
-e '/definition of _GL_ARG_NONNULL/r $(ARG_NONNULL_H)' \
-e '/definition of _GL_WARN_ON_USE/r $(WARN_ON_USE_H)' \
$(srcdir)/sys_time.in.h > $@-t
$(AM_V_at)mv $@-t $@
MOSTLYCLEANFILES += sys/time.h sys/time.h-t
MOSTLYCLEANDIRS += sys
Include:
<sys/time.h>
License:
LGPLv2+
Maintainer:
all

View File

@@ -0,0 +1,19 @@
Files:
tests/test-sys_time-h-c++.cc
tests/signature.h
Status:
c++-test
Depends-on:
ansi-c++-opt
configure.ac:
Makefile.am:
if ANSICXX
TESTS += test-sys_time-h-c++
check_PROGRAMS += test-sys_time-h-c++
test_sys_time_h_c___SOURCES = test-sys_time-h-c++.cc
test_sys_time_h_c___LDADD = $(LDADD) $(LIBINTL) $(NANOSLEEP_LIB)
endif

11
modules/sys_time-h-tests Normal file
View File

@@ -0,0 +1,11 @@
Files:
tests/test-sys_time-h.c
Depends-on:
sys_time-h-c++-tests
configure.ac:
Makefile.am:
TESTS += test-sys_time-h
check_PROGRAMS += test-sys_time-h

View File

@@ -1,11 +0,0 @@
Files:
tests/test-sys_time.c
Depends-on:
sys_time-c++-tests
configure.ac:
Makefile.am:
TESTS += test-sys_time
check_PROGRAMS += test-sys_time

View File

@@ -16,7 +16,7 @@ getrusage
gettext-h
gnulib-i18n
stdlib-h
sys_time
sys_time-h
sys_times
xalloc

View File

@@ -19,7 +19,7 @@ stat
stat-time
stdbool-h
sys_stat-h
sys_time
sys_time-h
time-h
utime
utime-h