X-Git-Url: http://erislabs.net/gitweb/?a=blobdiff_plain;f=lib%2Fresource-ext.h;h=145ce252c97ba3999e7a06bfa1dcd66ddd502390;hb=395f9e6a19b504609aa8b0bd7f8cc55d4547d8dd;hp=e7dcc6f22563e133952059fdfb50955d3a256ae0;hpb=12a15f55d18d8f843df5d01682ead2eb0bb2c812;p=gnulib.git diff --git a/lib/resource-ext.h b/lib/resource-ext.h index e7dcc6f22..145ce252c 100644 --- a/lib/resource-ext.h +++ b/lib/resource-ext.h @@ -28,9 +28,17 @@ extern "C" { /* Returns the amount of address space currently in use by the current process, or zero if unknown. This is the quantity which is limited by setrlimit(RLIMIT_AS,...). - Note: This function always returns zero on OpenBSD and AIX. */ + Note: This function always returns zero on 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 }