annotate lib/fnmatch.in.h @ 9268:a553c18c572d

Rename sys_time_.h to sys_time.in.h.
author Bruno Haible <bruno@clisp.org>
date Tue, 02 Oct 2007 00:37:40 +0200
parents 49a9df6cebc4
children e8d2c6fc33ad
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
9249
49a9df6cebc4 Rename fnmatch_.h to fnmatch.in.h.
Bruno Haible <bruno@clisp.org>
parents:
diff changeset
1 /* Copyright (C) 1991, 1992, 1993, 1996, 1997, 1998, 1999, 2001, 2002, 2003,
49a9df6cebc4 Rename fnmatch_.h to fnmatch.in.h.
Bruno Haible <bruno@clisp.org>
parents:
diff changeset
2 2005, 2007 Free Software Foundation, Inc.
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
49a9df6cebc4 Rename fnmatch_.h to fnmatch.in.h.
Bruno Haible <bruno@clisp.org>
parents:
diff changeset
17 along with this program; if not, write to the Free Software Foundation,
49a9df6cebc4 Rename fnmatch_.h to fnmatch.in.h.
Bruno Haible <bruno@clisp.org>
parents:
diff changeset
18 Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. */
49a9df6cebc4 Rename fnmatch_.h to fnmatch.in.h.
Bruno Haible <bruno@clisp.org>
parents:
diff changeset
19
49a9df6cebc4 Rename fnmatch_.h to fnmatch.in.h.
Bruno Haible <bruno@clisp.org>
parents:
diff changeset
20 #ifndef _FNMATCH_H
49a9df6cebc4 Rename fnmatch_.h to fnmatch.in.h.
Bruno Haible <bruno@clisp.org>
parents:
diff changeset
21 #define _FNMATCH_H 1
49a9df6cebc4 Rename fnmatch_.h to fnmatch.in.h.
Bruno Haible <bruno@clisp.org>
parents:
diff changeset
22
49a9df6cebc4 Rename fnmatch_.h to fnmatch.in.h.
Bruno Haible <bruno@clisp.org>
parents:
diff changeset
23 #ifdef __cplusplus
49a9df6cebc4 Rename fnmatch_.h to fnmatch.in.h.
Bruno Haible <bruno@clisp.org>
parents:
diff changeset
24 extern "C" {
49a9df6cebc4 Rename fnmatch_.h to fnmatch.in.h.
Bruno Haible <bruno@clisp.org>
parents:
diff changeset
25 #endif
49a9df6cebc4 Rename fnmatch_.h to fnmatch.in.h.
Bruno Haible <bruno@clisp.org>
parents:
diff changeset
26
49a9df6cebc4 Rename fnmatch_.h to fnmatch.in.h.
Bruno Haible <bruno@clisp.org>
parents:
diff changeset
27 /* 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
28 (HP-UX A.08.07 for example) define these in <unistd.h>. */
49a9df6cebc4 Rename fnmatch_.h to fnmatch.in.h.
Bruno Haible <bruno@clisp.org>
parents:
diff changeset
29 #undef FNM_PATHNAME
49a9df6cebc4 Rename fnmatch_.h to fnmatch.in.h.
Bruno Haible <bruno@clisp.org>
parents:
diff changeset
30 #undef FNM_NOESCAPE
49a9df6cebc4 Rename fnmatch_.h to fnmatch.in.h.
Bruno Haible <bruno@clisp.org>
parents:
diff changeset
31 #undef FNM_PERIOD
49a9df6cebc4 Rename fnmatch_.h to fnmatch.in.h.
Bruno Haible <bruno@clisp.org>
parents:
diff changeset
32
49a9df6cebc4 Rename fnmatch_.h to fnmatch.in.h.
Bruno Haible <bruno@clisp.org>
parents:
diff changeset
33 /* Bits set in the FLAGS argument to `fnmatch'. */
49a9df6cebc4 Rename fnmatch_.h to fnmatch.in.h.
Bruno Haible <bruno@clisp.org>
parents:
diff changeset
34 #define FNM_PATHNAME (1 << 0) /* No wildcard can ever match `/'. */
49a9df6cebc4 Rename fnmatch_.h to fnmatch.in.h.
Bruno Haible <bruno@clisp.org>
parents:
diff changeset
35 #define FNM_NOESCAPE (1 << 1) /* Backslashes don't quote special chars. */
49a9df6cebc4 Rename fnmatch_.h to fnmatch.in.h.
Bruno Haible <bruno@clisp.org>
parents:
diff changeset
36 #define FNM_PERIOD (1 << 2) /* Leading `.' is matched only explicitly. */
49a9df6cebc4 Rename fnmatch_.h to fnmatch.in.h.
Bruno Haible <bruno@clisp.org>
parents:
diff changeset
37
49a9df6cebc4 Rename fnmatch_.h to fnmatch.in.h.
Bruno Haible <bruno@clisp.org>
parents:
diff changeset
38 #if !defined _POSIX_C_SOURCE || _POSIX_C_SOURCE < 2 || defined _GNU_SOURCE
49a9df6cebc4 Rename fnmatch_.h to fnmatch.in.h.
Bruno Haible <bruno@clisp.org>
parents:
diff changeset
39 # define FNM_FILE_NAME FNM_PATHNAME /* Preferred GNU name. */
49a9df6cebc4 Rename fnmatch_.h to fnmatch.in.h.
Bruno Haible <bruno@clisp.org>
parents:
diff changeset
40 # define FNM_LEADING_DIR (1 << 3) /* Ignore `/...' after a match. */
49a9df6cebc4 Rename fnmatch_.h to fnmatch.in.h.
Bruno Haible <bruno@clisp.org>
parents:
diff changeset
41 # define FNM_CASEFOLD (1 << 4) /* Compare without regard to case. */
49a9df6cebc4 Rename fnmatch_.h to fnmatch.in.h.
Bruno Haible <bruno@clisp.org>
parents:
diff changeset
42 # define FNM_EXTMATCH (1 << 5) /* Use ksh-like extended matching. */
49a9df6cebc4 Rename fnmatch_.h to fnmatch.in.h.
Bruno Haible <bruno@clisp.org>
parents:
diff changeset
43 #endif
49a9df6cebc4 Rename fnmatch_.h to fnmatch.in.h.
Bruno Haible <bruno@clisp.org>
parents:
diff changeset
44
49a9df6cebc4 Rename fnmatch_.h to fnmatch.in.h.
Bruno Haible <bruno@clisp.org>
parents:
diff changeset
45 /* Value returned by `fnmatch' if STRING does not match PATTERN. */
49a9df6cebc4 Rename fnmatch_.h to fnmatch.in.h.
Bruno Haible <bruno@clisp.org>
parents:
diff changeset
46 #define FNM_NOMATCH 1
49a9df6cebc4 Rename fnmatch_.h to fnmatch.in.h.
Bruno Haible <bruno@clisp.org>
parents:
diff changeset
47
49a9df6cebc4 Rename fnmatch_.h to fnmatch.in.h.
Bruno Haible <bruno@clisp.org>
parents:
diff changeset
48 /* This value is returned if the implementation does not support
49a9df6cebc4 Rename fnmatch_.h to fnmatch.in.h.
Bruno Haible <bruno@clisp.org>
parents:
diff changeset
49 `fnmatch'. Since this is not the case here it will never be
49a9df6cebc4 Rename fnmatch_.h to fnmatch.in.h.
Bruno Haible <bruno@clisp.org>
parents:
diff changeset
50 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
51 to be defined. */
49a9df6cebc4 Rename fnmatch_.h to fnmatch.in.h.
Bruno Haible <bruno@clisp.org>
parents:
diff changeset
52 #ifdef _XOPEN_SOURCE
49a9df6cebc4 Rename fnmatch_.h to fnmatch.in.h.
Bruno Haible <bruno@clisp.org>
parents:
diff changeset
53 # define FNM_NOSYS (-1)
49a9df6cebc4 Rename fnmatch_.h to fnmatch.in.h.
Bruno Haible <bruno@clisp.org>
parents:
diff changeset
54 #endif
49a9df6cebc4 Rename fnmatch_.h to fnmatch.in.h.
Bruno Haible <bruno@clisp.org>
parents:
diff changeset
55
49a9df6cebc4 Rename fnmatch_.h to fnmatch.in.h.
Bruno Haible <bruno@clisp.org>
parents:
diff changeset
56 /* Match NAME against the file name pattern PATTERN,
49a9df6cebc4 Rename fnmatch_.h to fnmatch.in.h.
Bruno Haible <bruno@clisp.org>
parents:
diff changeset
57 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
58 extern int fnmatch (const char *__pattern, const char *__name,
49a9df6cebc4 Rename fnmatch_.h to fnmatch.in.h.
Bruno Haible <bruno@clisp.org>
parents:
diff changeset
59 int __flags);
49a9df6cebc4 Rename fnmatch_.h to fnmatch.in.h.
Bruno Haible <bruno@clisp.org>
parents:
diff changeset
60
49a9df6cebc4 Rename fnmatch_.h to fnmatch.in.h.
Bruno Haible <bruno@clisp.org>
parents:
diff changeset
61 #ifdef __cplusplus
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 #endif
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 /* fnmatch.h */