source: trunk/src/emx/include/fnmatch.h@ 1614

Last change on this file since 1614 was 1506, checked in by bird, 21 years ago

@unixroot. header reviews. ++

  • Property cvs2svn:cvs-rev set to 1.3
  • Property svn:eol-style set to native
  • Property svn:executable set to *
File size: 2.5 KB
RevLine 
[1506]1/* fnmatch.h,v 1.3 2004/09/14 22:27:33 bird Exp */
2/** @file
3 * GNU, -liberty.
4 * @todo Update the fnmatch code in LIBC to match this file.
5 */
6
[123]7/* Copyright 1991, 1992, 1993, 1996 Free Software Foundation, Inc.
[18]8
[123]9NOTE: The canonical source of this file is maintained with the GNU C Library.
10Bugs can be reported to [email protected].
[18]11
[123]12This program is free software; you can redistribute it and/or modify it
13under the terms of the GNU General Public License as published by the
14Free Software Foundation; either version 2, or (at your option) any
15later version.
[18]16
[123]17This program is distributed in the hope that it will be useful,
18but WITHOUT ANY WARRANTY; without even the implied warranty of
19MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
20GNU General Public License for more details.
[18]21
[123]22You should have received a copy of the GNU General Public License
23along with this program; if not, write to the Free Software
24Foundation, 59 Temple Place - Suite 330,
25Boston, MA 02111-1307, USA. */
[18]26
[123]27#ifndef _FNMATCH_H
[18]28
[123]29#define _FNMATCH_H 1
[18]30
[123]31#ifdef __cplusplus
32extern "C" {
33#endif
[18]34
[123]35#if defined (__cplusplus) || (defined (__STDC__) && __STDC__)
36#undef __P
37#define __P(args) args
38#else /* Not C++ or ANSI C. */
39#undef __P
40#define __P(args) ()
41/* We can get away without defining `const' here only because in this file
42 it is used only inside the prototype for `fnmatch', which is elided in
43 non-ANSI C where `const' is problematical. */
44#endif /* C++ or ANSI C. */
[18]45
46
[123]47/* We #undef these before defining them because some losing systems
48 (HP-UX A.08.07 for example) define these in <unistd.h>. */
49#undef FNM_PATHNAME
50#undef FNM_NOESCAPE
51#undef FNM_PERIOD
[18]52
[123]53/* Bits set in the FLAGS argument to `fnmatch'. */
54#define FNM_PATHNAME (1 << 0) /* No wildcard can ever match `/'. */
55#define FNM_NOESCAPE (1 << 1) /* Backslashes don't quote special chars. */
56#define FNM_PERIOD (1 << 2) /* Leading `.' is matched only explicitly. */
[18]57
[123]58#if !defined (_POSIX_C_SOURCE) || _POSIX_C_SOURCE < 2 || defined (_GNU_SOURCE)
59#define FNM_FILE_NAME FNM_PATHNAME /* Preferred GNU name. */
60#define FNM_LEADING_DIR (1 << 3) /* Ignore `/...' after a match. */
61#define FNM_CASEFOLD (1 << 4) /* Compare without regard to case. */
62#endif
[18]63
[123]64/* Value returned by `fnmatch' if STRING does not match PATTERN. */
65#define FNM_NOMATCH 1
[18]66
[123]67/* Match STRING against the filename pattern PATTERN,
68 returning zero if it matches, FNM_NOMATCH if not. */
69extern int fnmatch __P ((const char *__pattern, const char *__string,
70 int __flags));
[18]71
[123]72#ifdef __cplusplus
[18]73}
74#endif
75
[123]76#endif /* fnmatch.h */
Note: See TracBrowser for help on using the repository browser.