diff options
| author | Bruno Haible <bruno@clisp.org> | 2017-03-19 15:45:26 +0100 |
|---|---|---|
| committer | Bruno Haible <bruno@clisp.org> | 2017-03-19 16:35:12 +0100 |
| commit | fef4a135e413afbe21d8522e4d6a80a55cb8eec0 (patch) | |
| tree | d11c879b091e84c8b3490e23d10459d346a42ec9 /lib/get-rusage-data.c | |
| parent | bfd9640a37b36b6b4dd3712c6cf6dc76560126da (diff) | |
| download | gnulib-fef4a135e413afbe21d8522e4d6a80a55cb8eec0.tar.gz | |
vma-iter: Add support for Solaris.
* lib/vma-iter.c (vma_iterate): On Solaris, use the /proc filesystem
approach.
* lib/vma-iter.h (VMA_ITERATE_SUPPORTED): Define also on Solaris.
* lib/get-rusage-as.c: Update comment about Solaris.
* lib/get-rusage-data.c: Likewise.
Diffstat (limited to 'lib/get-rusage-data.c')
| -rw-r--r-- | lib/get-rusage-data.c | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/lib/get-rusage-data.c b/lib/get-rusage-data.c index 4745ad6e8f..62293ad139 100644 --- a/lib/get-rusage-data.c +++ b/lib/get-rusage-data.c @@ -101,7 +101,10 @@ Solaris: a) setrlimit with RLIMIT_DATA works. - b) No VMA iteration API exists. + b) The /proc/$pid file supports ioctls PIOCNMAP and PIOCMAP, and the + /proc/self/maps file contains a list of the virtual memory areas. + get_rusage_data_via_setrlimit() ignores the data segment of the executable, + whereas get_rusage_data_via_iterator() includes it. Cygwin: a) setrlimit with RLIMIT_DATA always fails. |
