annotate lib/sys_types.in.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 6a9ea5d7b466
children e542fd46ad6f
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
15601
cca80f706483 sys_types: Fix typo.
Bruno Haible <bruno@clisp.org>
parents: 15596
diff changeset
1 /* Provide a more complete sys/types.h.
15596
37c7cad1b0d9 New module 'sys_types'.
Bruno Haible <bruno@clisp.org>
parents:
diff changeset
2
16201
8250f2777afc maint: update all copyright year number ranges
Jim Meyering <meyering@redhat.com>
parents: 15601
diff changeset
3 Copyright (C) 2011-2012 Free Software Foundation, Inc.
15596
37c7cad1b0d9 New module 'sys_types'.
Bruno Haible <bruno@clisp.org>
parents:
diff changeset
4
37c7cad1b0d9 New module 'sys_types'.
Bruno Haible <bruno@clisp.org>
parents:
diff changeset
5 This program is free software; you can redistribute it and/or modify
37c7cad1b0d9 New module 'sys_types'.
Bruno Haible <bruno@clisp.org>
parents:
diff changeset
6 it under the terms of the GNU General Public License as published by
37c7cad1b0d9 New module 'sys_types'.
Bruno Haible <bruno@clisp.org>
parents:
diff changeset
7 the Free Software Foundation; either version 2, or (at your option)
37c7cad1b0d9 New module 'sys_types'.
Bruno Haible <bruno@clisp.org>
parents:
diff changeset
8 any later version.
37c7cad1b0d9 New module 'sys_types'.
Bruno Haible <bruno@clisp.org>
parents:
diff changeset
9
37c7cad1b0d9 New module 'sys_types'.
Bruno Haible <bruno@clisp.org>
parents:
diff changeset
10 This program is distributed in the hope that it will be useful,
37c7cad1b0d9 New module 'sys_types'.
Bruno Haible <bruno@clisp.org>
parents:
diff changeset
11 but WITHOUT ANY WARRANTY; without even the implied warranty of
37c7cad1b0d9 New module 'sys_types'.
Bruno Haible <bruno@clisp.org>
parents:
diff changeset
12 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
37c7cad1b0d9 New module 'sys_types'.
Bruno Haible <bruno@clisp.org>
parents:
diff changeset
13 GNU General Public License for more details.
37c7cad1b0d9 New module 'sys_types'.
Bruno Haible <bruno@clisp.org>
parents:
diff changeset
14
37c7cad1b0d9 New module 'sys_types'.
Bruno Haible <bruno@clisp.org>
parents:
diff changeset
15 You should have received a copy of the GNU General Public License
16366
bb182ee4a09d maint: replace FSF snail-mail addresses with URLs
Paul Eggert <eggert@cs.ucla.edu>
parents: 16201
diff changeset
16 along with this program; if not, see <http://www.gnu.org/licenses/>. */
15596
37c7cad1b0d9 New module 'sys_types'.
Bruno Haible <bruno@clisp.org>
parents:
diff changeset
17
37c7cad1b0d9 New module 'sys_types'.
Bruno Haible <bruno@clisp.org>
parents:
diff changeset
18 #if __GNUC__ >= 3
37c7cad1b0d9 New module 'sys_types'.
Bruno Haible <bruno@clisp.org>
parents:
diff changeset
19 @PRAGMA_SYSTEM_HEADER@
37c7cad1b0d9 New module 'sys_types'.
Bruno Haible <bruno@clisp.org>
parents:
diff changeset
20 #endif
37c7cad1b0d9 New module 'sys_types'.
Bruno Haible <bruno@clisp.org>
parents:
diff changeset
21 @PRAGMA_COLUMNS@
37c7cad1b0d9 New module 'sys_types'.
Bruno Haible <bruno@clisp.org>
parents:
diff changeset
22
37c7cad1b0d9 New module 'sys_types'.
Bruno Haible <bruno@clisp.org>
parents:
diff changeset
23 #ifndef _@GUARD_PREFIX@_SYS_TYPES_H
37c7cad1b0d9 New module 'sys_types'.
Bruno Haible <bruno@clisp.org>
parents:
diff changeset
24
37c7cad1b0d9 New module 'sys_types'.
Bruno Haible <bruno@clisp.org>
parents:
diff changeset
25 /* The include_next requires a split double-inclusion guard. */
37c7cad1b0d9 New module 'sys_types'.
Bruno Haible <bruno@clisp.org>
parents:
diff changeset
26 #@INCLUDE_NEXT@ @NEXT_SYS_TYPES_H@
37c7cad1b0d9 New module 'sys_types'.
Bruno Haible <bruno@clisp.org>
parents:
diff changeset
27
37c7cad1b0d9 New module 'sys_types'.
Bruno Haible <bruno@clisp.org>
parents:
diff changeset
28 #ifndef _@GUARD_PREFIX@_SYS_TYPES_H
37c7cad1b0d9 New module 'sys_types'.
Bruno Haible <bruno@clisp.org>
parents:
diff changeset
29 #define _@GUARD_PREFIX@_SYS_TYPES_H
37c7cad1b0d9 New module 'sys_types'.
Bruno Haible <bruno@clisp.org>
parents:
diff changeset
30
16795
6a9ea5d7b466 Large File Support for native Windows platforms.
Bruno Haible <bruno@clisp.org>
parents: 16366
diff changeset
31 /* Override off_t if Large File Support is requested on native Windows. */
6a9ea5d7b466 Large File Support for native Windows platforms.
Bruno Haible <bruno@clisp.org>
parents: 16366
diff changeset
32 #if @WINDOWS_64_BIT_OFF_T@
6a9ea5d7b466 Large File Support for native Windows platforms.
Bruno Haible <bruno@clisp.org>
parents: 16366
diff changeset
33 /* Same as int64_t in <stdint.h>. */
6a9ea5d7b466 Large File Support for native Windows platforms.
Bruno Haible <bruno@clisp.org>
parents: 16366
diff changeset
34 # if defined _MSC_VER
6a9ea5d7b466 Large File Support for native Windows platforms.
Bruno Haible <bruno@clisp.org>
parents: 16366
diff changeset
35 # define off_t __int64
6a9ea5d7b466 Large File Support for native Windows platforms.
Bruno Haible <bruno@clisp.org>
parents: 16366
diff changeset
36 # else
6a9ea5d7b466 Large File Support for native Windows platforms.
Bruno Haible <bruno@clisp.org>
parents: 16366
diff changeset
37 # define off_t long long int
6a9ea5d7b466 Large File Support for native Windows platforms.
Bruno Haible <bruno@clisp.org>
parents: 16366
diff changeset
38 # endif
6a9ea5d7b466 Large File Support for native Windows platforms.
Bruno Haible <bruno@clisp.org>
parents: 16366
diff changeset
39 /* Indicator, for gnulib internal purposes. */
6a9ea5d7b466 Large File Support for native Windows platforms.
Bruno Haible <bruno@clisp.org>
parents: 16366
diff changeset
40 # define _GL_WINDOWS_64_BIT_OFF_T 1
6a9ea5d7b466 Large File Support for native Windows platforms.
Bruno Haible <bruno@clisp.org>
parents: 16366
diff changeset
41 #endif
6a9ea5d7b466 Large File Support for native Windows platforms.
Bruno Haible <bruno@clisp.org>
parents: 16366
diff changeset
42
15596
37c7cad1b0d9 New module 'sys_types'.
Bruno Haible <bruno@clisp.org>
parents:
diff changeset
43 /* MSVC 9 defines size_t in <stddef.h>, not in <sys/types.h>. */
37c7cad1b0d9 New module 'sys_types'.
Bruno Haible <bruno@clisp.org>
parents:
diff changeset
44 /* But avoid namespace pollution on glibc systems. */
37c7cad1b0d9 New module 'sys_types'.
Bruno Haible <bruno@clisp.org>
parents:
diff changeset
45 #if ((defined _WIN32 || defined __WIN32__) && ! defined __CYGWIN__) \
37c7cad1b0d9 New module 'sys_types'.
Bruno Haible <bruno@clisp.org>
parents:
diff changeset
46 && ! defined __GLIBC__
37c7cad1b0d9 New module 'sys_types'.
Bruno Haible <bruno@clisp.org>
parents:
diff changeset
47 # include <stddef.h>
37c7cad1b0d9 New module 'sys_types'.
Bruno Haible <bruno@clisp.org>
parents:
diff changeset
48 #endif
37c7cad1b0d9 New module 'sys_types'.
Bruno Haible <bruno@clisp.org>
parents:
diff changeset
49
37c7cad1b0d9 New module 'sys_types'.
Bruno Haible <bruno@clisp.org>
parents:
diff changeset
50 #endif /* _@GUARD_PREFIX@_SYS_TYPES_H */
37c7cad1b0d9 New module 'sys_types'.
Bruno Haible <bruno@clisp.org>
parents:
diff changeset
51 #endif /* _@GUARD_PREFIX@_SYS_TYPES_H */