view modules/getrusage @ 16777:30ef6011648b

New module 'getrusage'. * 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.
author Bruno Haible <bruno@clisp.org>
date Fri, 13 Apr 2012 00:48:57 +0200
parents
children
line wrap: on
line source

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