X-Git-Url: http://erislabs.net/gitweb/?a=blobdiff_plain;f=lib%2Fresource-ext.h;h=7062c3d829e03d01ebbb924da36d37c0b9278d28;hb=4779b635ef35c7b0bc4044fcb5bc746d06f158c4;hp=95e1f7dfd8cd0124b61c642d152d236b2d15de1d;hpb=6bd94e92ae44fbb68d228ec023a1c17c2a26fe63;p=gnulib.git diff --git a/lib/resource-ext.h b/lib/resource-ext.h index 95e1f7dfd..7062c3d82 100644 --- a/lib/resource-ext.h +++ b/lib/resource-ext.h @@ -1,5 +1,5 @@ /* Extra functions for resource usage. - Copyright (C) 2011 Free Software Foundation, Inc. + Copyright (C) 2011-2013 Free Software Foundation, Inc. Written by Bruno Haible , 2011. This program is free software: you can redistribute it and/or modify @@ -27,9 +27,18 @@ 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,...). */ + This is the quantity which is limited by setrlimit(RLIMIT_AS,...). + 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 }