diff options
author | Bruno Haible <bruno@clisp.org> | 2011-01-26 12:56:22 +0100 |
---|---|---|
committer | Bruno Haible <bruno@clisp.org> | 2011-01-26 12:56:22 +0100 |
commit | b4f285e68da56b110a01b0dce117086f6e829d29 (patch) | |
tree | 1e32b8a4fe782d31cac80e13446be8fafb0eef8e /lib/resource-ext.h | |
parent | 12a15f55d18d8f843df5d01682ead2eb0bb2c812 (diff) | |
download | gnulib-b4f285e68da56b110a01b0dce117086f6e829d29.tar.gz |
New module 'get-rusage-data'.
* lib/resource-ext.h (get_rusage_data): New declaration.
* lib/get-rusage-data.c: New file.
* modules/get-rusage-data: New file.
Diffstat (limited to 'lib/resource-ext.h')
-rw-r--r-- | lib/resource-ext.h | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/lib/resource-ext.h b/lib/resource-ext.h index e7dcc6f225..6e43e70d33 100644 --- a/lib/resource-ext.h +++ b/lib/resource-ext.h @@ -31,6 +31,14 @@ extern "C" { Note: This function always returns zero on OpenBSD and AIX. */ extern uintptr_t get_rusage_as (void); +/* Returns the size of the data segment, or zero if unknown. + This is the quantity which is limited by setrlimit(RLIMIT_DATA,...). + Note: This function always returns zero on HP-UX 11.00. + Note: The total size of all malloc()ed memory is bounded by the size of + the data segment only on the following platforms: + FreeBSD, AIX, HP-UX 11.23 and newer, IRIX, OSF/1, Solaris, BeOS, Haiku. */ +extern uintptr_t get_rusage_data (void); + #ifdef __cplusplus } |