Mercurial > hg > octave-kai > gnulib-hg
annotate lib/resource-ext.h @ 17160:72f4bab621be
fts: introduce FTS_VERBATIM
This gives clients the option to disable stripping of trailing slashes
from input path names during fts_open initialization.
The recent change v0.0-7611-g3a9002d that made fts_open strip trailing
slashes from input path names had a negative impact on findutils that
relies on the old fts_open behavior to implement POSIX requirement that
each path operand of the find utility shall be evaluated unaltered as it
was provided, including all trailing slash characters.
* lib/fts_.h (FTS_VERBATIM): New bit flag.
(FTS_OPTIONMASK, FTS_NAMEONLY, FTS_STOP): Adjust.
* lib/fts.c (fts_open): Honor it.
author | Dmitry V. Levin <ldv@altlinux.org> |
---|---|
date | Sun, 18 Nov 2012 04:40:18 +0400 |
parents | 8250f2777afc |
children | e542fd46ad6f |
rev | line source |
---|---|
14175 | 1 /* Extra functions for resource usage. |
16201
8250f2777afc
maint: update all copyright year number ranges
Jim Meyering <meyering@redhat.com>
parents:
14235
diff
changeset
|
2 Copyright (C) 2011-2012 Free Software Foundation, Inc. |
14175 | 3 Written by Bruno Haible <bruno@clisp.org>, 2011. |
4 | |
5 This program is free software: you can redistribute it and/or modify | |
6 it under the terms of the GNU General Public License as published by | |
7 the Free Software Foundation; either version 3 of the License, or | |
8 (at your option) any later version. | |
9 | |
10 This program is distributed in the hope that it will be useful, | |
11 but WITHOUT ANY WARRANTY; without even the implied warranty of | |
12 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | |
13 GNU General Public License for more details. | |
14 | |
15 You should have received a copy of the GNU General Public License | |
16 along with this program. If not, see <http://www.gnu.org/licenses/>. */ | |
17 | |
18 #ifndef _RESOURCE_EXT_H | |
19 #define _RESOURCE_EXT_H | |
20 | |
21 #include <stdint.h> | |
22 | |
23 #ifdef __cplusplus | |
24 extern "C" { | |
25 #endif | |
26 | |
27 | |
28 /* Returns the amount of address space currently in use by the current | |
29 process, or zero if unknown. | |
14227
8bb45aca6841
get-rusage-as: Allow for easier testing.
Bruno Haible <bruno@clisp.org>
parents:
14175
diff
changeset
|
30 This is the quantity which is limited by setrlimit(RLIMIT_AS,...). |
14235
6b8b94f919ce
vma-iter, get-rusage-as: Add OpenBSD support.
Bruno Haible <bruno@clisp.org>
parents:
14228
diff
changeset
|
31 Note: This function always returns zero on AIX. */ |
14175 | 32 extern uintptr_t get_rusage_as (void); |
33 | |
14228
381ce0fff2fb
New module 'get-rusage-data'.
Bruno Haible <bruno@clisp.org>
parents:
14227
diff
changeset
|
34 /* Returns the size of the data segment, or zero if unknown. |
381ce0fff2fb
New module 'get-rusage-data'.
Bruno Haible <bruno@clisp.org>
parents:
14227
diff
changeset
|
35 This is the quantity which is limited by setrlimit(RLIMIT_DATA,...). |
381ce0fff2fb
New module 'get-rusage-data'.
Bruno Haible <bruno@clisp.org>
parents:
14227
diff
changeset
|
36 Note: This function always returns zero on HP-UX 11.00. |
381ce0fff2fb
New module 'get-rusage-data'.
Bruno Haible <bruno@clisp.org>
parents:
14227
diff
changeset
|
37 Note: The total size of all malloc()ed memory is bounded by the size of |
381ce0fff2fb
New module 'get-rusage-data'.
Bruno Haible <bruno@clisp.org>
parents:
14227
diff
changeset
|
38 the data segment only on the following platforms: |
381ce0fff2fb
New module 'get-rusage-data'.
Bruno Haible <bruno@clisp.org>
parents:
14227
diff
changeset
|
39 FreeBSD, AIX, HP-UX 11.23 and newer, IRIX, OSF/1, Solaris, BeOS, Haiku. */ |
381ce0fff2fb
New module 'get-rusage-data'.
Bruno Haible <bruno@clisp.org>
parents:
14227
diff
changeset
|
40 extern uintptr_t get_rusage_data (void); |
381ce0fff2fb
New module 'get-rusage-data'.
Bruno Haible <bruno@clisp.org>
parents:
14227
diff
changeset
|
41 |
14175 | 42 |
43 #ifdef __cplusplus | |
44 } | |
45 #endif | |
46 | |
47 #endif /* _RESOURCE_EXT_H */ |