autoupdate
[gnulib.git] / lib / resource-ext.h
index e7dcc6f..7062c3d 100644 (file)
@@ -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 <bruno@clisp.org>, 2011.
 
    This program is free software: you can redistribute it and/or modify
@@ -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
 }