FreeBSD kernel libkern code
fnmatch.c File Reference
#include <sys/cdefs.h>
#include <sys/param.h>
#include <sys/ctype.h>
#include <sys/libkern.h>
Include dependency graph for fnmatch.c:

Go to the source code of this file.

Macros

#define EOS   '\0'
 
#define RANGE_MATCH   1
 
#define RANGE_NOMATCH   0
 
#define RANGE_ERROR   (-1)
 

Functions

 __FBSDID ("$BSDSUniX$")
 
static int rangematch (const char *, char, int, char **)
 
int fnmatch (const char *pattern, const char *string, int flags)
 

Macro Definition Documentation

#define EOS   '\0'

Definition at line 45 of file fnmatch.c.

Referenced by fnmatch(), and rangematch().

#define RANGE_ERROR   (-1)

Definition at line 49 of file fnmatch.c.

Referenced by fnmatch(), and rangematch().

#define RANGE_MATCH   1

Definition at line 47 of file fnmatch.c.

Referenced by fnmatch(), and rangematch().

#define RANGE_NOMATCH   0

Definition at line 48 of file fnmatch.c.

Referenced by fnmatch(), and rangematch().

Function Documentation

__FBSDID ( "$BSDSUniX$"  )
int fnmatch ( const char *  pattern,
const char *  string,
int  flags 
)

Definition at line 54 of file fnmatch.c.

References c, EOS, index(), RANGE_ERROR, RANGE_MATCH, RANGE_NOMATCH, rangematch(), and tolower.

Here is the call graph for this function:

static int rangematch ( const char *  pattern,
char  test,
int  flags,
char **  newp 
)
static

Definition at line 157 of file fnmatch.c.

References c, EOS, RANGE_ERROR, RANGE_MATCH, RANGE_NOMATCH, and tolower.

Referenced by fnmatch().

Here is the caller graph for this function: