Mercurial > hg > octave-kai > gnulib-hg
comparison lib/vma-iter.h @ 14235:6b8b94f919ce
vma-iter, get-rusage-as: Add OpenBSD support.
* modules/vma-iter (configure.ac): Test for mquery.
* lib/vma-iter.h (VMA_ITERATE_SUPPORTED): Define also on OpenBSD.
* lib/vma-iter.c: Include <sys/mman.h>.
(vma_iterate): Add an implementation based on mquery().
* lib/resource-ext.h (get_rusage_as): Update comments.
* lib/get-rusage-as.c: Likewise.
* lib/get-rusage-data.c: Likewise.
author | Bruno Haible <bruno@clisp.org> |
---|---|
date | Thu, 27 Jan 2011 11:42:45 +0100 |
parents | 7e521272b3c6 |
children | 8250f2777afc |
comparison
equal
deleted
inserted
replaced
14234:3a91ae6c2f46 | 14235:6b8b94f919ce |
---|---|
49 | 49 |
50 /* The macro VMA_ITERATE_SUPPORTED indicates that vma_iterate is supported on | 50 /* The macro VMA_ITERATE_SUPPORTED indicates that vma_iterate is supported on |
51 this platform. | 51 this platform. |
52 Note that even when this macro is defined, vma_iterate() may still fail to | 52 Note that even when this macro is defined, vma_iterate() may still fail to |
53 find any virtual memory area, for example if /proc is not mounted. */ | 53 find any virtual memory area, for example if /proc is not mounted. */ |
54 #if defined __linux__ || defined __FreeBSD__ || defined __NetBSD__ || defined __sgi || defined __osf__ || (defined __APPLE__ && defined __MACH__) || (defined _WIN32 || defined __WIN32__) || defined __CYGWIN__ || defined __BEOS__ || defined __HAIKU__ | 54 #if defined __linux__ || defined __FreeBSD__ || defined __NetBSD__ || defined __sgi || defined __osf__ || (defined __APPLE__ && defined __MACH__) || (defined _WIN32 || defined __WIN32__) || defined __CYGWIN__ || defined __BEOS__ || defined __HAIKU__ || HAVE_MQUERY |
55 # define VMA_ITERATE_SUPPORTED 1 | 55 # define VMA_ITERATE_SUPPORTED 1 |
56 #endif | 56 #endif |
57 | 57 |
58 | 58 |
59 #ifdef __cplusplus | 59 #ifdef __cplusplus |