|
Last change
on this file since 502 was 18, checked in by bird, 23 years ago |
|
Initial revision
|
-
Property cvs2svn:cvs-rev
set to
1.1
-
Property svn:eol-style
set to
native
-
Property svn:executable
set to
*
|
|
File size:
1.1 KB
|
| Line | |
|---|
| 1 | /* glob.h (emx+gcc) */
|
|---|
| 2 |
|
|---|
| 3 | #ifndef _GLOB_H
|
|---|
| 4 | #define _GLOB_H
|
|---|
| 5 |
|
|---|
| 6 | #if defined (__cplusplus)
|
|---|
| 7 | extern "C" {
|
|---|
| 8 | #endif
|
|---|
| 9 |
|
|---|
| 10 | #if !defined (_SIZE_T)
|
|---|
| 11 | #define _SIZE_T
|
|---|
| 12 | typedef unsigned long size_t;
|
|---|
| 13 | #endif
|
|---|
| 14 |
|
|---|
| 15 | #define GLOB_APPEND 0x0001
|
|---|
| 16 | #define GLOB_DOOFFS 0x0002
|
|---|
| 17 | #define GLOB_ERR 0x0004
|
|---|
| 18 | #define GLOB_MARK 0x0008
|
|---|
| 19 | #define GLOB_NOCHECK 0x0010
|
|---|
| 20 | #define GLOB_NOESCAPE 0x0020
|
|---|
| 21 | #define GLOB_NOSORT 0x0040
|
|---|
| 22 | #define GLOB_PERIOD 0x0080 /* POSIX.2? */
|
|---|
| 23 |
|
|---|
| 24 | #define GLOB_ABEND 1
|
|---|
| 25 | #define GLOB_NOMATCH 2
|
|---|
| 26 | #define GLOB_NOSPACE 3
|
|---|
| 27 |
|
|---|
| 28 | typedef struct
|
|---|
| 29 | {
|
|---|
| 30 | /* Required by POSIX.2 */
|
|---|
| 31 | size_t gl_pathc;
|
|---|
| 32 | char **gl_pathv;
|
|---|
| 33 | size_t gl_offs;
|
|---|
| 34 |
|
|---|
| 35 | /* BSD */
|
|---|
| 36 | int gl_flags;
|
|---|
| 37 |
|
|---|
| 38 | /* Internal */
|
|---|
| 39 | size_t gl_alloc;
|
|---|
| 40 | int gl_reserved[3];
|
|---|
| 41 | } glob_t;
|
|---|
| 42 |
|
|---|
| 43 | int glob (__const__ char *, int, int (*)(__const__ char *, int), glob_t *);
|
|---|
| 44 | void globfree (glob_t *);
|
|---|
| 45 |
|
|---|
| 46 |
|
|---|
| 47 | #if !defined (_POSIX_C_SOURCE) || _POSIX_C_SOURCE >= 2
|
|---|
| 48 | #define GLOB_MAGCHAR 0x0100
|
|---|
| 49 | #endif
|
|---|
| 50 |
|
|---|
| 51 |
|
|---|
| 52 | int _glob (__const__ char *, int, int (*)(__const__ char *, int), glob_t *);
|
|---|
| 53 | void _globfree (glob_t *);
|
|---|
| 54 |
|
|---|
| 55 |
|
|---|
| 56 | #if defined (__cplusplus)
|
|---|
| 57 | }
|
|---|
| 58 | #endif
|
|---|
| 59 |
|
|---|
| 60 | #endif /* not _GLOB_H */
|
|---|
Note:
See
TracBrowser
for help on using the repository browser.