* modules/sys_resource-h: Renamed from modules/sys_resource.
* modules/sys_resource-h-tests: Renamed from modules/sys_resource-tests.
* modules/sys_resource-h-c++-tests: Renamed from
modules/sys_resource-c++-tests.
* tests/test-sys_resource-h.c: Renamed from tests/test-sys_resource.c.
* tests/test-sys_resource-h-c++.cc: Renamed from
tests/test-sys_resource-c++.cc.
* doc/posix-headers/sys_resource.texi: Update.
* modules/* (Depends-on): Update.
* modules/sys_resource: New file.
+2024-12-27 Bruno Haible <bruno@clisp.org>
+
+ Rename module sys_resource to sys_resource-h.
+ * modules/sys_resource-h: Renamed from modules/sys_resource.
+ * modules/sys_resource-h-tests: Renamed from modules/sys_resource-tests.
+ * modules/sys_resource-h-c++-tests: Renamed from
+ modules/sys_resource-c++-tests.
+ * tests/test-sys_resource-h.c: Renamed from tests/test-sys_resource.c.
+ * tests/test-sys_resource-h-c++.cc: Renamed from
+ tests/test-sys_resource-c++.cc.
+ * doc/posix-headers/sys_resource.texi: Update.
+ * modules/* (Depends-on): Update.
+ * modules/sys_resource: New file.
+
2024-12-27 Bruno Haible <bruno@clisp.org>
Rename module sys_random to sys_random-h.
POSIX specification:@* @url{https://pubs.opengroup.org/onlinepubs/9799919799/basedefs/sys_resource.h.html}
-Gnulib module: sys_resource
-@mindex sys_resource
+Gnulib module: sys_resource-h
+@mindex sys_resource-h
Portability problems fixed by Gnulib:
@itemize
m4/getrusage.m4
Depends-on:
-sys_resource
+sys_resource-h
stdint-h [test $HAVE_GETRUSAGE = 0]
configure.ac:
sys_file-h
sys_ioctl-h
sys_random-h
-sys_resource
+sys_resource-h
sys_select
sys_socket
sys_stat
Description:
A POSIX-like <sys/resource.h>.
+Status:
+deprecated
+
+Notice:
+This module is deprecated. Use the module 'sys_resource-h' instead.
+
Files:
-lib/sys_resource.in.h
-m4/sys_resource_h.m4
Depends-on:
-gen-header
-include_next
-snippet/arg-nonnull
-snippet/c++defs
-snippet/warn-on-use
-sys_time
+sys_resource-h
configure.ac:
-gl_SYS_RESOURCE_H
-gl_SYS_RESOURCE_H_REQUIRE_DEFAULTS
-AC_PROG_MKDIR_P
Makefile.am:
-BUILT_SOURCES += sys/resource.h
-
-# We need the following in order to create <sys/resource.h> when the system
-# doesn't have one.
-sys/resource.h: sys_resource.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|@''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_RESOURCE_H''@|$(NEXT_SYS_RESOURCE_H)|g' \
- -e 's|@''HAVE_SYS_RESOURCE_H''@|$(HAVE_SYS_RESOURCE_H)|g' \
- -e 's/@''GNULIB_GETRUSAGE''@/$(GNULIB_GETRUSAGE)/g' \
- -e 's/@''HAVE_GETRUSAGE''@/$(HAVE_GETRUSAGE)/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_resource.in.h > $@-t
- $(AM_V_at)mv $@-t $@
-MOSTLYCLEANFILES += sys/resource.h sys/resource.h-t
-MOSTLYCLEANDIRS += sys
Include:
<sys/resource.h>
LGPLv2+
Maintainer:
-all
+++ /dev/null
-Files:
-tests/test-sys_resource-c++.cc
-tests/signature.h
-
-Status:
-c++-test
-
-Depends-on:
-ansi-c++-opt
-
-configure.ac:
-
-Makefile.am:
-if ANSICXX
-TESTS += test-sys_resource-c++
-check_PROGRAMS += test-sys_resource-c++
-test_sys_resource_c___SOURCES = test-sys_resource-c++.cc
-endif
--- /dev/null
+Description:
+A POSIX-like <sys/resource.h>.
+
+Files:
+lib/sys_resource.in.h
+m4/sys_resource_h.m4
+
+Depends-on:
+gen-header
+include_next
+snippet/arg-nonnull
+snippet/c++defs
+snippet/warn-on-use
+sys_time
+
+configure.ac:
+gl_SYS_RESOURCE_H
+gl_SYS_RESOURCE_H_REQUIRE_DEFAULTS
+AC_PROG_MKDIR_P
+
+Makefile.am:
+BUILT_SOURCES += sys/resource.h
+
+# We need the following in order to create <sys/resource.h> when the system
+# doesn't have one.
+sys/resource.h: sys_resource.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|@''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_RESOURCE_H''@|$(NEXT_SYS_RESOURCE_H)|g' \
+ -e 's|@''HAVE_SYS_RESOURCE_H''@|$(HAVE_SYS_RESOURCE_H)|g' \
+ -e 's/@''GNULIB_GETRUSAGE''@/$(GNULIB_GETRUSAGE)/g' \
+ -e 's/@''HAVE_GETRUSAGE''@/$(HAVE_GETRUSAGE)/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_resource.in.h > $@-t
+ $(AM_V_at)mv $@-t $@
+MOSTLYCLEANFILES += sys/resource.h sys/resource.h-t
+MOSTLYCLEANDIRS += sys
+
+Include:
+<sys/resource.h>
+
+License:
+LGPLv2+
+
+Maintainer:
+all
--- /dev/null
+Files:
+tests/test-sys_resource-h-c++.cc
+tests/signature.h
+
+Status:
+c++-test
+
+Depends-on:
+ansi-c++-opt
+
+configure.ac:
+
+Makefile.am:
+if ANSICXX
+TESTS += test-sys_resource-h-c++
+check_PROGRAMS += test-sys_resource-h-c++
+test_sys_resource_h_c___SOURCES = test-sys_resource-h-c++.cc
+endif
--- /dev/null
+Files:
+tests/test-sys_resource-h.c
+
+Depends-on:
+sys_resource-h-c++-tests
+
+configure.ac:
+
+Makefile.am:
+TESTS += test-sys_resource-h
+check_PROGRAMS += test-sys_resource-h
+++ /dev/null
-Files:
-tests/test-sys_resource.c
-
-Depends-on:
-sys_resource-c++-tests
-
-configure.ac:
-
-Makefile.am:
-TESTS += test-sys_resource
-check_PROGRAMS += test-sys_resource
+++ /dev/null
-/* Test of <sys/resource.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>, 2017. */
-
-#define GNULIB_NAMESPACE gnulib
-#include <config.h>
-
-#include <sys/resource.h>
-
-#include "signature.h"
-
-
-#if GNULIB_TEST_GETRUSAGE
-SIGNATURE_CHECK (GNULIB_NAMESPACE::getrusage, int, (int, struct rusage *));
-#endif
-
-
-int
-main ()
-{
-}
--- /dev/null
+/* Test of <sys/resource.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>, 2017. */
+
+#define GNULIB_NAMESPACE gnulib
+#include <config.h>
+
+#include <sys/resource.h>
+
+#include "signature.h"
+
+
+#if GNULIB_TEST_GETRUSAGE
+SIGNATURE_CHECK (GNULIB_NAMESPACE::getrusage, int, (int, struct rusage *));
+#endif
+
+
+int
+main ()
+{
+}
--- /dev/null
+/* Test of <sys/resource.h> substitute.
+ Copyright (C) 2012-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/>. */
+
+#include <config.h>
+
+#include <sys/resource.h>
+
+/* Check that necessary types are defined. */
+#ifdef TODO /* Not implemented in gnulib yet */
+rlim_t t1;
+struct rlimit t2;
+#endif
+struct rusage t3;
+#ifdef TODO
+struct timeval t4;
+id_t t5;
+time_t t10;
+suseconds_t t11;
+fd_set t12;
+#endif
+
+/* Check that the necessary constants are defined. */
+#ifdef TODO /* Not implemented in gnulib yet */
+int prios[] =
+ {
+ PRIO_PROCESS,
+ PRIO_PGRP,
+ PRIO_USER
+ };
+int rlims[] =
+ {
+ RLIM_INFINITY,
+ RLIM_SAVED_MAX,
+ RLIM_SAVED_CUR
+ };
+#endif
+int rusages[] =
+ {
+ RUSAGE_SELF,
+ RUSAGE_CHILDREN
+ };
+#ifdef TODO
+int rlimits[] =
+ {
+ RLIMIT_CORE,
+ RLIMIT_CPU,
+ RLIMIT_DATA,
+ RLIMIT_FSIZE,
+ RLIMIT_NOFILE,
+ RLIMIT_STACK,
+ RLIMIT_AS
+ };
+#endif
+
+int
+main (void)
+{
+ return 0;
+}
+++ /dev/null
-/* Test of <sys/resource.h> substitute.
- Copyright (C) 2012-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/>. */
-
-#include <config.h>
-
-#include <sys/resource.h>
-
-/* Check that necessary types are defined. */
-#ifdef TODO /* Not implemented in gnulib yet */
-rlim_t t1;
-struct rlimit t2;
-#endif
-struct rusage t3;
-#ifdef TODO
-struct timeval t4;
-id_t t5;
-time_t t10;
-suseconds_t t11;
-fd_set t12;
-#endif
-
-/* Check that the necessary constants are defined. */
-#ifdef TODO /* Not implemented in gnulib yet */
-int prios[] =
- {
- PRIO_PROCESS,
- PRIO_PGRP,
- PRIO_USER
- };
-int rlims[] =
- {
- RLIM_INFINITY,
- RLIM_SAVED_MAX,
- RLIM_SAVED_CUR
- };
-#endif
-int rusages[] =
- {
- RUSAGE_SELF,
- RUSAGE_CHILDREN
- };
-#ifdef TODO
-int rlimits[] =
- {
- RLIMIT_CORE,
- RLIMIT_CPU,
- RLIMIT_DATA,
- RLIMIT_FSIZE,
- RLIMIT_NOFILE,
- RLIMIT_STACK,
- RLIMIT_AS
- };
-#endif
-
-int
-main (void)
-{
- return 0;
-}