mirror of
https://git.savannah.gnu.org/git/gnulib.git
synced 2025-09-11 11:50:52 +03:00
* lib/sys_resource.in.h: Include arg-nonnull.h, c++defs.h, warn-on-use.h. (getrusage): New declaration. * lib/getrusage.c: New file. * m4/getrusage.m4: New file. * m4/sys_resource_h.m4 (gl_HEADER_SYS_RESOURCE): Test whether getrusage is declared. (gl_SYS_RESOURCE_H_DEFAULTS): Initialize GNULIB_GETRUSAGE, HAVE_GETRUSAGE. * modules/sys_resource (Depends-on): Add snippet/arg-nonnull, snippet/c++defs, snippet/warn-on-use. (Makefile.am): Update generation of sys/resource.h. Substitute GNULIB_GETRUSAGE, HAVE_GETRUSAGE. * modules/getrusage: New file. * doc/posix-functions/getrusage.texi: Mention the new module.
29 lines
406 B
Plaintext
29 lines
406 B
Plaintext
Description:
|
|
getrusage() function: Get resource usage of current process.
|
|
|
|
Files:
|
|
lib/getrusage.c
|
|
m4/getrusage.m4
|
|
|
|
Depends-on:
|
|
sys_resource
|
|
stdint [test $HAVE_GETRUSAGE = 0]
|
|
|
|
configure.ac:
|
|
gl_FUNC_GETRUSAGE
|
|
if test $HAVE_GETRUSAGE = 0; then
|
|
AC_LIBOBJ([getrusage])
|
|
fi
|
|
gl_SYS_RESOURCE_MODULE_INDICATOR([getrusage])
|
|
|
|
Makefile.am:
|
|
|
|
Include:
|
|
<sys/resource.h>
|
|
|
|
License:
|
|
LGPL
|
|
|
|
Maintainer:
|
|
Bruno Haible
|