+2010-09-29 Bruno Haible <bruno@clisp.org>
+
+ Separate the module 'waitpid' from the module 'sys_wait'.
+ * lib/sys_wait.in.h (waitpid): Declare only if the 'waitpid' module is
+ present.
+ * m4/sys_wait_h.m4 (gl_SYS_WAIT_MODULE_INDICATOR): Invoke
+ gl_MODULE_INDICATOR_FOR_TESTS.
+ (gl_SYS_WAIT_H_DEFAULTS): Initialize GNULIB_WAITPID.
+ * modules/sys_wait (Depends-on): Remove waitpid.
+ (Makefile.am): Substitute GNULIB_WAITPID.
+ * modules/waitpid (configure.ac): Invoke gl_SYS_WAIT_MODULE_INDICATOR.
+ * tests/test-sys_wait-c++.cc (GNULIB_NAMESPACE::waitpid): Check the
+ signature only if the 'waitpid' module is present.
+ * doc/posix-functions/waitpid.texi: Mention the 'waitpid' module.
+ * NEWS: Mention the change.
+ * modules/grantpt (Depends-on): Add waitpid.
+ * modules/wait-process (Depends-on): Likewise.
+
2010-09-29 Bruno Haible <bruno@clisp.org>
More tests for module 'sys_wait'.
Date Modules Changes
+2010-09-29 sys_wait This module no longer provides the waitpid()
+ function. If you need this function, you now need
+ to request the 'waitpid' module.
+
2010-09-17 utimens The function gl_futimens is removed, and its
signature has been migrated to fdutimens. Callers
of gl_futimens should change function name, and
POSIX specification:@* @url{http://www.opengroup.org/onlinepubs/9699919799/functions/waitpid.html}
-Gnulib module: ---
+Gnulib module: waitpid
Portability problems fixed by Gnulib:
@itemize
+@item
+This function is missing on some platforms:
+mingw.
@end itemize
Portability problems not fixed by Gnulib:
@itemize
-@item
-This function is missing on some platforms:
-mingw.
@end itemize
/* Declarations of functions. */
-#if 1 /* @GNULIB_WAITPID@ */
+#if @GNULIB_WAITPID@
# if (defined _WIN32 || defined __WIN32__) && ! defined __CYGWIN__
_GL_FUNCDECL_SYS (waitpid, pid_t, (pid_t pid, int *statusp, int options));
# endif
dnl Use AC_REQUIRE here, so that the default settings are expanded once only.
AC_REQUIRE([gl_SYS_WAIT_H_DEFAULTS])
gl_MODULE_INDICATOR_SET_VARIABLE([$1])
+ dnl Define it also as a C macro, for the benefit of the unit tests.
+ gl_MODULE_INDICATOR_FOR_TESTS([$1])
])
AC_DEFUN([gl_SYS_WAIT_H_DEFAULTS],
[
+ GNULIB_WAITPID=0; AC_SUBST([GNULIB_WAITPID])
dnl Assume proper GNU behavior unless another module says otherwise.
])
stdlib
extensions
pt_chown
+waitpid
configmake
configure.ac:
c++defs
include_next
warn-on-use
-waitpid
configure.ac:
gl_SYS_WAIT_H
sed -e 's|@''INCLUDE_NEXT''@|$(INCLUDE_NEXT)|g' \
-e 's|@''PRAGMA_SYSTEM_HEADER''@|@PRAGMA_SYSTEM_HEADER@|g' \
-e 's|@''NEXT_SYS_WAIT_H''@|$(NEXT_SYS_WAIT_H)|g' \
+ -e 's|@''GNULIB_WAITPID''@|$(GNULIB_WAITPID)|g' \
-e '/definitions of _GL_FUNCDECL_RPL/r $(CXXDEFS_H)' \
-e '/definition of _GL_WARN_ON_USE/r $(WARN_ON_USE_H)' \
< $(srcdir)/sys_wait.in.h; \
sys_wait
unistd
atexit
+waitpid
configure.ac:
gl_WAIT_PROCESS
configure.ac:
gl_FUNC_WAITPID
+gl_SYS_WAIT_MODULE_INDICATOR([waitpid])
Makefile.am:
#include "signature.h"
+#if GNULIB_TEST_WAITPID
SIGNATURE_CHECK (GNULIB_NAMESPACE::waitpid, pid_t, (pid_t, int *, int));
+#endif
int