1 |
|
|
2 |
/* Copyright (C) 1991, 92, 95, 96, 97, 98 Free Software Foundation, Inc. |
/* Copyright (C) 1991, 92, 95, 96, 97, 98 Free Software Foundation, Inc. |
3 |
|
|
4 |
The GNU C Library is free software; you can redistribute it and/or |
The GNU C Library is free software; you can redistribute it and/or |
21 |
|
|
22 |
typedef struct |
typedef struct |
23 |
{ |
{ |
24 |
int namecount; /* Count of paths matched by the pattern. */ |
int namecount; /* Count of paths matched by the pattern. */ |
25 |
unsigned long blocks; /* size of directory in blocks */ |
unsigned long blocks; /* size of directory in blocks */ |
26 |
char **name; /* List of matched pathnames. */ |
char **name; /* List of matched pathnames. */ |
27 |
struct stat *stat_buf; /* file information. */ |
struct stat *stat_buf; /* file information. */ |
28 |
} MYGLOBDATA; |
} |
29 |
|
MYGLOBDATA; |
30 |
MYGLOBDATA *myglob ( char *dir, char *pattern, int flags, int sortforward ); |
|
31 |
|
MYGLOBDATA *myglob(char *dir, |
32 |
|
char *pattern, |
33 |
|
int flags, |
34 |
|
int sortforward); |
35 |
|
|
36 |
/* Free storage allocated in PGLOB by a previous `glob' call. */ |
/* Free storage allocated in PGLOB by a previous `glob' call. */ |
37 |
extern void myglobfree (MYGLOBDATA *g); |
extern void myglobfree(MYGLOBDATA * g); |
38 |
|
|
39 |
extern int my_fnmatch(char *, char *, int); |
extern int my_fnmatch(char *, |
40 |
|
char *, |
41 |
|
int); |