* 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_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.
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
extensions
extern-inline
gettime
-sys_time
+sys_time-h
configure.ac:
gl_GETHRXTIME
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]
Depends-on:
clock-time
gettimeofday
-sys_time
+sys_time-h
timespec
extensions
m4/gettimeofday.m4
Depends-on:
-sys_time
+sys_time-h
configure.ac:
gl_FUNC_GETTIMEOFDAY
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]
sys_select-h
sys_socket-h
sys_stat-h
-sys_time
+sys_time-h
sys_times
sys_utsname
sys_wait
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:
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]
clock-time
errno-h
extensions
-sys_time
+sys_time-h
timespec
configure.ac:
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]
snippet/arg-nonnull
snippet/c++defs
snippet/warn-on-use
-sys_time
+sys_time-h
configure.ac:
gl_SYS_RESOURCE_H
signal-h
snippet/c++defs
snippet/warn-on-use
-sys_time
+sys_time-h
configure.ac:
gl_SYS_SELECT_H
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>
LGPLv2+
Maintainer:
-all
+++ /dev/null
-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
--- /dev/null
+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
--- /dev/null
+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
--- /dev/null
+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
+++ /dev/null
-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
gettext-h
gnulib-i18n
stdlib-h
-sys_time
+sys_time-h
sys_times
xalloc
stat-time
stdbool-h
sys_stat-h
-sys_time
+sys_time-h
time-h
utime
utime-h
+++ /dev/null
-/* Test of <sys/time.h> substitute in C++ mode.
- Copyright (C) 2010-2024 Free Software Foundation, Inc.
-
- This program is free software: you can redistribute it and/or modify
- it under the terms of the GNU General Public License as published by
- the Free Software Foundation, either version 3 of the License, or
- (at your option) any later version.
-
- This program is distributed in the hope that it will be useful,
- but WITHOUT ANY WARRANTY; without even the implied warranty of
- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
- GNU General Public License for more details.
-
- You should have received a copy of the GNU General Public License
- along with this program. If not, see <https://www.gnu.org/licenses/>. */
-
-/* Written by Bruno Haible <bruno@clisp.org>, 2010. */
-
-#define GNULIB_NAMESPACE gnulib
-#include <config.h>
-
-#include <sys/time.h>
-
-#include "signature.h"
-
-
-#if GNULIB_TEST_GETTIMEOFDAY
-SIGNATURE_CHECK (GNULIB_NAMESPACE::gettimeofday, int,
- (struct timeval *, void *));
-#endif
-
-
-int
-main ()
-{
-}
--- /dev/null
+/* Test of <sys/time.h> substitute in C++ mode.
+ Copyright (C) 2010-2024 Free Software Foundation, Inc.
+
+ This program is free software: you can redistribute it and/or modify
+ it under the terms of the GNU General Public License as published by
+ the Free Software Foundation, either version 3 of the License, or
+ (at your option) any later version.
+
+ This program is distributed in the hope that it will be useful,
+ but WITHOUT ANY WARRANTY; without even the implied warranty of
+ MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+ GNU General Public License for more details.
+
+ You should have received a copy of the GNU General Public License
+ along with this program. If not, see <https://www.gnu.org/licenses/>. */
+
+/* Written by Bruno Haible <bruno@clisp.org>, 2010. */
+
+#define GNULIB_NAMESPACE gnulib
+#include <config.h>
+
+#include <sys/time.h>
+
+#include "signature.h"
+
+
+#if GNULIB_TEST_GETTIMEOFDAY
+SIGNATURE_CHECK (GNULIB_NAMESPACE::gettimeofday, int,
+ (struct timeval *, void *));
+#endif
+
+
+int
+main ()
+{
+}
--- /dev/null
+/* Test of <sys/time.h> substitute.
+ Copyright (C) 2007, 2009-2024 Free Software Foundation, Inc.
+
+ This program is free software: you can redistribute it and/or modify
+ it under the terms of the GNU General Public License as published by
+ the Free Software Foundation, either version 3 of the License, or
+ (at your option) any later version.
+
+ This program is distributed in the hope that it will be useful,
+ but WITHOUT ANY WARRANTY; without even the implied warranty of
+ MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+ GNU General Public License for more details.
+
+ You should have received a copy of the GNU General Public License
+ along with this program. If not, see <https://www.gnu.org/licenses/>. */
+
+/* Written by Bruno Haible <bruno@clisp.org>, 2007. */
+
+#include <config.h>
+
+#include <sys/time.h>
+
+/* Check that the 'struct timeval' type is defined. */
+struct timeval a;
+
+/* Check that a.tv_sec is wide enough to hold a time_t, ignoring
+ signedness issues. */
+typedef int verify_tv_sec_type[sizeof (time_t) <= sizeof (a.tv_sec) ? 1 : -1];
+
+int
+main (void)
+{
+ return 0;
+}
+++ /dev/null
-/* Test of <sys/time.h> substitute.
- Copyright (C) 2007, 2009-2024 Free Software Foundation, Inc.
-
- This program is free software: you can redistribute it and/or modify
- it under the terms of the GNU General Public License as published by
- the Free Software Foundation, either version 3 of the License, or
- (at your option) any later version.
-
- This program is distributed in the hope that it will be useful,
- but WITHOUT ANY WARRANTY; without even the implied warranty of
- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
- GNU General Public License for more details.
-
- You should have received a copy of the GNU General Public License
- along with this program. If not, see <https://www.gnu.org/licenses/>. */
-
-/* Written by Bruno Haible <bruno@clisp.org>, 2007. */
-
-#include <config.h>
-
-#include <sys/time.h>
-
-/* Check that the 'struct timeval' type is defined. */
-struct timeval a;
-
-/* Check that a.tv_sec is wide enough to hold a time_t, ignoring
- signedness issues. */
-typedef int verify_tv_sec_type[sizeof (time_t) <= sizeof (a.tv_sec) ? 1 : -1];
-
-int
-main (void)
-{
- return 0;
-}