Mercurial > hg > octave-shane > gnulib-hg
annotate lib/fnmatch.in.h @ 17249:e542fd46ad6f
maint: update all copyright year number ranges
Run "make update-copyright". Compare to commit 1602f0a from last year.
Signed-off-by: Eric Blake <eblake@redhat.com>
author | Eric Blake <eblake@redhat.com> |
---|---|
date | Tue, 01 Jan 2013 00:50:58 +0000 |
parents | bb182ee4a09d |
children | 344018b6e5d7 |
rev | line source |
---|---|
17249
e542fd46ad6f
maint: update all copyright year number ranges
Eric Blake <eblake@redhat.com>
parents:
16366
diff
changeset
|
1 /* Copyright (C) 1991-1993, 1996-1999, 2001-2003, 2005, 2007, 2009-2013 Free |
14079
97fc9a21a8fb
maint: update almost all copyright ranges to include 2011
Jim Meyering <meyering@redhat.com>
parents:
12559
diff
changeset
|
2 Software Foundation, Inc. |
9249
49a9df6cebc4
Rename fnmatch_.h to fnmatch.in.h.
Bruno Haible <bruno@clisp.org>
parents:
diff
changeset
|
3 |
49a9df6cebc4
Rename fnmatch_.h to fnmatch.in.h.
Bruno Haible <bruno@clisp.org>
parents:
diff
changeset
|
4 This file is part of the GNU C Library. |
49a9df6cebc4
Rename fnmatch_.h to fnmatch.in.h.
Bruno Haible <bruno@clisp.org>
parents:
diff
changeset
|
5 |
49a9df6cebc4
Rename fnmatch_.h to fnmatch.in.h.
Bruno Haible <bruno@clisp.org>
parents:
diff
changeset
|
6 This program is free software; you can redistribute it and/or modify |
49a9df6cebc4
Rename fnmatch_.h to fnmatch.in.h.
Bruno Haible <bruno@clisp.org>
parents:
diff
changeset
|
7 it under the terms of the GNU General Public License as published by |
49a9df6cebc4
Rename fnmatch_.h to fnmatch.in.h.
Bruno Haible <bruno@clisp.org>
parents:
diff
changeset
|
8 the Free Software Foundation; either version 2, or (at your option) |
49a9df6cebc4
Rename fnmatch_.h to fnmatch.in.h.
Bruno Haible <bruno@clisp.org>
parents:
diff
changeset
|
9 any later version. |
49a9df6cebc4
Rename fnmatch_.h to fnmatch.in.h.
Bruno Haible <bruno@clisp.org>
parents:
diff
changeset
|
10 |
49a9df6cebc4
Rename fnmatch_.h to fnmatch.in.h.
Bruno Haible <bruno@clisp.org>
parents:
diff
changeset
|
11 This program is distributed in the hope that it will be useful, |
49a9df6cebc4
Rename fnmatch_.h to fnmatch.in.h.
Bruno Haible <bruno@clisp.org>
parents:
diff
changeset
|
12 but WITHOUT ANY WARRANTY; without even the implied warranty of |
49a9df6cebc4
Rename fnmatch_.h to fnmatch.in.h.
Bruno Haible <bruno@clisp.org>
parents:
diff
changeset
|
13 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
49a9df6cebc4
Rename fnmatch_.h to fnmatch.in.h.
Bruno Haible <bruno@clisp.org>
parents:
diff
changeset
|
14 GNU General Public License for more details. |
49a9df6cebc4
Rename fnmatch_.h to fnmatch.in.h.
Bruno Haible <bruno@clisp.org>
parents:
diff
changeset
|
15 |
49a9df6cebc4
Rename fnmatch_.h to fnmatch.in.h.
Bruno Haible <bruno@clisp.org>
parents:
diff
changeset
|
16 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:
16235
diff
changeset
|
17 along with this program; if not, see <http://www.gnu.org/licenses/>. */ |
9249
49a9df6cebc4
Rename fnmatch_.h to fnmatch.in.h.
Bruno Haible <bruno@clisp.org>
parents:
diff
changeset
|
18 |
12421
e8d2c6fc33ad
Use spaces for indentation, not tabs.
Bruno Haible <bruno@clisp.org>
parents:
9249
diff
changeset
|
19 #ifndef _FNMATCH_H |
e8d2c6fc33ad
Use spaces for indentation, not tabs.
Bruno Haible <bruno@clisp.org>
parents:
9249
diff
changeset
|
20 #define _FNMATCH_H 1 |
9249
49a9df6cebc4
Rename fnmatch_.h to fnmatch.in.h.
Bruno Haible <bruno@clisp.org>
parents:
diff
changeset
|
21 |
12422
f7842310a565
New module 'arg-nonnull'. Declare which arguments expect non-NULL values.
Bruno Haible <bruno@clisp.org>
parents:
12421
diff
changeset
|
22 /* The definition of _GL_ARG_NONNULL is copied here. */ |
f7842310a565
New module 'arg-nonnull'. Declare which arguments expect non-NULL values.
Bruno Haible <bruno@clisp.org>
parents:
12421
diff
changeset
|
23 |
9249
49a9df6cebc4
Rename fnmatch_.h to fnmatch.in.h.
Bruno Haible <bruno@clisp.org>
parents:
diff
changeset
|
24 #ifdef __cplusplus |
49a9df6cebc4
Rename fnmatch_.h to fnmatch.in.h.
Bruno Haible <bruno@clisp.org>
parents:
diff
changeset
|
25 extern "C" { |
49a9df6cebc4
Rename fnmatch_.h to fnmatch.in.h.
Bruno Haible <bruno@clisp.org>
parents:
diff
changeset
|
26 #endif |
49a9df6cebc4
Rename fnmatch_.h to fnmatch.in.h.
Bruno Haible <bruno@clisp.org>
parents:
diff
changeset
|
27 |
49a9df6cebc4
Rename fnmatch_.h to fnmatch.in.h.
Bruno Haible <bruno@clisp.org>
parents:
diff
changeset
|
28 /* We #undef these before defining them because some losing systems |
49a9df6cebc4
Rename fnmatch_.h to fnmatch.in.h.
Bruno Haible <bruno@clisp.org>
parents:
diff
changeset
|
29 (HP-UX A.08.07 for example) define these in <unistd.h>. */ |
12421
e8d2c6fc33ad
Use spaces for indentation, not tabs.
Bruno Haible <bruno@clisp.org>
parents:
9249
diff
changeset
|
30 #undef FNM_PATHNAME |
e8d2c6fc33ad
Use spaces for indentation, not tabs.
Bruno Haible <bruno@clisp.org>
parents:
9249
diff
changeset
|
31 #undef FNM_NOESCAPE |
e8d2c6fc33ad
Use spaces for indentation, not tabs.
Bruno Haible <bruno@clisp.org>
parents:
9249
diff
changeset
|
32 #undef FNM_PERIOD |
9249
49a9df6cebc4
Rename fnmatch_.h to fnmatch.in.h.
Bruno Haible <bruno@clisp.org>
parents:
diff
changeset
|
33 |
16235
18a38c9615f0
In commentary, do not use ` to quote.
Paul Eggert <eggert@cs.ucla.edu>
parents:
16201
diff
changeset
|
34 /* Bits set in the FLAGS argument to 'fnmatch'. */ |
18a38c9615f0
In commentary, do not use ` to quote.
Paul Eggert <eggert@cs.ucla.edu>
parents:
16201
diff
changeset
|
35 #define FNM_PATHNAME (1 << 0) /* No wildcard can ever match '/'. */ |
12421
e8d2c6fc33ad
Use spaces for indentation, not tabs.
Bruno Haible <bruno@clisp.org>
parents:
9249
diff
changeset
|
36 #define FNM_NOESCAPE (1 << 1) /* Backslashes don't quote special chars. */ |
16235
18a38c9615f0
In commentary, do not use ` to quote.
Paul Eggert <eggert@cs.ucla.edu>
parents:
16201
diff
changeset
|
37 #define FNM_PERIOD (1 << 2) /* Leading '.' is matched only explicitly. */ |
9249
49a9df6cebc4
Rename fnmatch_.h to fnmatch.in.h.
Bruno Haible <bruno@clisp.org>
parents:
diff
changeset
|
38 |
49a9df6cebc4
Rename fnmatch_.h to fnmatch.in.h.
Bruno Haible <bruno@clisp.org>
parents:
diff
changeset
|
39 #if !defined _POSIX_C_SOURCE || _POSIX_C_SOURCE < 2 || defined _GNU_SOURCE |
12421
e8d2c6fc33ad
Use spaces for indentation, not tabs.
Bruno Haible <bruno@clisp.org>
parents:
9249
diff
changeset
|
40 # define FNM_FILE_NAME FNM_PATHNAME /* Preferred GNU name. */ |
16235
18a38c9615f0
In commentary, do not use ` to quote.
Paul Eggert <eggert@cs.ucla.edu>
parents:
16201
diff
changeset
|
41 # define FNM_LEADING_DIR (1 << 3) /* Ignore '/...' after a match. */ |
12421
e8d2c6fc33ad
Use spaces for indentation, not tabs.
Bruno Haible <bruno@clisp.org>
parents:
9249
diff
changeset
|
42 # define FNM_CASEFOLD (1 << 4) /* Compare without regard to case. */ |
e8d2c6fc33ad
Use spaces for indentation, not tabs.
Bruno Haible <bruno@clisp.org>
parents:
9249
diff
changeset
|
43 # define FNM_EXTMATCH (1 << 5) /* Use ksh-like extended matching. */ |
9249
49a9df6cebc4
Rename fnmatch_.h to fnmatch.in.h.
Bruno Haible <bruno@clisp.org>
parents:
diff
changeset
|
44 #endif |
49a9df6cebc4
Rename fnmatch_.h to fnmatch.in.h.
Bruno Haible <bruno@clisp.org>
parents:
diff
changeset
|
45 |
16235
18a38c9615f0
In commentary, do not use ` to quote.
Paul Eggert <eggert@cs.ucla.edu>
parents:
16201
diff
changeset
|
46 /* Value returned by 'fnmatch' if STRING does not match PATTERN. */ |
12421
e8d2c6fc33ad
Use spaces for indentation, not tabs.
Bruno Haible <bruno@clisp.org>
parents:
9249
diff
changeset
|
47 #define FNM_NOMATCH 1 |
9249
49a9df6cebc4
Rename fnmatch_.h to fnmatch.in.h.
Bruno Haible <bruno@clisp.org>
parents:
diff
changeset
|
48 |
49a9df6cebc4
Rename fnmatch_.h to fnmatch.in.h.
Bruno Haible <bruno@clisp.org>
parents:
diff
changeset
|
49 /* This value is returned if the implementation does not support |
16235
18a38c9615f0
In commentary, do not use ` to quote.
Paul Eggert <eggert@cs.ucla.edu>
parents:
16201
diff
changeset
|
50 'fnmatch'. Since this is not the case here it will never be |
9249
49a9df6cebc4
Rename fnmatch_.h to fnmatch.in.h.
Bruno Haible <bruno@clisp.org>
parents:
diff
changeset
|
51 returned but the conformance test suites still require the symbol |
49a9df6cebc4
Rename fnmatch_.h to fnmatch.in.h.
Bruno Haible <bruno@clisp.org>
parents:
diff
changeset
|
52 to be defined. */ |
49a9df6cebc4
Rename fnmatch_.h to fnmatch.in.h.
Bruno Haible <bruno@clisp.org>
parents:
diff
changeset
|
53 #ifdef _XOPEN_SOURCE |
12421
e8d2c6fc33ad
Use spaces for indentation, not tabs.
Bruno Haible <bruno@clisp.org>
parents:
9249
diff
changeset
|
54 # define FNM_NOSYS (-1) |
9249
49a9df6cebc4
Rename fnmatch_.h to fnmatch.in.h.
Bruno Haible <bruno@clisp.org>
parents:
diff
changeset
|
55 #endif |
49a9df6cebc4
Rename fnmatch_.h to fnmatch.in.h.
Bruno Haible <bruno@clisp.org>
parents:
diff
changeset
|
56 |
49a9df6cebc4
Rename fnmatch_.h to fnmatch.in.h.
Bruno Haible <bruno@clisp.org>
parents:
diff
changeset
|
57 /* Match NAME against the file name pattern PATTERN, |
49a9df6cebc4
Rename fnmatch_.h to fnmatch.in.h.
Bruno Haible <bruno@clisp.org>
parents:
diff
changeset
|
58 returning zero if it matches, FNM_NOMATCH if not. */ |
49a9df6cebc4
Rename fnmatch_.h to fnmatch.in.h.
Bruno Haible <bruno@clisp.org>
parents:
diff
changeset
|
59 extern int fnmatch (const char *__pattern, const char *__name, |
12422
f7842310a565
New module 'arg-nonnull'. Declare which arguments expect non-NULL values.
Bruno Haible <bruno@clisp.org>
parents:
12421
diff
changeset
|
60 int __flags) |
f7842310a565
New module 'arg-nonnull'. Declare which arguments expect non-NULL values.
Bruno Haible <bruno@clisp.org>
parents:
12421
diff
changeset
|
61 _GL_ARG_NONNULL ((1, 2)); |
9249
49a9df6cebc4
Rename fnmatch_.h to fnmatch.in.h.
Bruno Haible <bruno@clisp.org>
parents:
diff
changeset
|
62 |
49a9df6cebc4
Rename fnmatch_.h to fnmatch.in.h.
Bruno Haible <bruno@clisp.org>
parents:
diff
changeset
|
63 #ifdef __cplusplus |
49a9df6cebc4
Rename fnmatch_.h to fnmatch.in.h.
Bruno Haible <bruno@clisp.org>
parents:
diff
changeset
|
64 } |
49a9df6cebc4
Rename fnmatch_.h to fnmatch.in.h.
Bruno Haible <bruno@clisp.org>
parents:
diff
changeset
|
65 #endif |
49a9df6cebc4
Rename fnmatch_.h to fnmatch.in.h.
Bruno Haible <bruno@clisp.org>
parents:
diff
changeset
|
66 |
49a9df6cebc4
Rename fnmatch_.h to fnmatch.in.h.
Bruno Haible <bruno@clisp.org>
parents:
diff
changeset
|
67 #endif /* fnmatch.h */ |