@@ -55,26 +55,26 @@ typedef struct {
55
55
int (* gl_errfunc )(const char * , int );
56
56
} glob_t ;
57
57
58
- /* Flags */
58
+ /* Standard POSIX Flags */
59
59
#define GLOB_APPEND 0x0001 /* Append to output from previous call. */
60
60
#define GLOB_DOOFFS 0x0002 /* Use gl_offs. */
61
61
#define GLOB_ERR 0x0004 /* Return on error. */
62
62
#define GLOB_MARK 0x0008 /* Append / to matching directories. */
63
63
#define GLOB_NOCHECK 0x0010 /* Return pattern itself if nothing matches. */
64
+ #define GLOB_NOESCAPE 0x1000 /* Disable backslash escaping. */
64
65
#define GLOB_NOSORT 0x0020 /* Don't sort. */
65
66
#define GLOB_BRACE 0x0080 /* Expand braces ala csh. */
67
+
68
+ /* Implementation defined flags */
66
69
#define GLOB_MAGCHAR 0x0100 /* Pattern had globbing characters. */
67
70
#define GLOB_NOMAGIC 0x0200 /* GLOB_NOCHECK without magic chars (csh). */
68
- #define GLOB_QUOTE 0x0400 /* Quote special chars with \. */
69
71
#define GLOB_TILDE 0x0800 /* Expand tilde names from the passwd file. */
70
- #define GLOB_NOESCAPE 0x1000 /* Disable backslash escaping. */
71
72
#define GLOB_LIMIT 0x2000 /* Limit pattern match output to ARG_MAX */
72
73
73
74
/* Error values returned by glob(3) */
74
75
#define GLOB_NOSPACE (-1) /* Malloc call failed. */
75
76
#define GLOB_ABORTED (-2) /* Unignored error. */
76
77
#define GLOB_NOMATCH (-3) /* No match and GLOB_NOCHECK not set. */
77
- #define GLOB_ABEND GLOB_ABORTED
78
78
79
79
BEGIN_EXTERN_C ()
80
80
PHPAPI int glob (const char * , int , int (* )(const char * , int ), glob_t * );
0 commit comments