diff options
author | Todd C. Miller <millert@cvs.openbsd.org> | 1997-09-01 18:40:36 +0000 |
---|---|---|
committer | Todd C. Miller <millert@cvs.openbsd.org> | 1997-09-01 18:40:36 +0000 |
commit | 6956622c58038ef22e33d0756dc2fa155f8ccb45 (patch) | |
tree | 30e74544d251b6c143a9b595218f7a94c0f9b391 /include | |
parent | a43ab78081569419e6c61ef03c154da56a667dd8 (diff) |
Make glob(3) XPG4.2 compliant. This means changing GLOB_ABEND to
GLOB_ABORT and defining GLOB_NOMATCH and GLOB_NOSYS (the latter is
not used).
Diffstat (limited to 'include')
-rw-r--r-- | include/glob.h | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/include/glob.h b/include/glob.h index 92ac7a73f27..8c3771b4a52 100644 --- a/include/glob.h +++ b/include/glob.h @@ -1,3 +1,4 @@ +/* $OpenBSD: glob.h,v 1.2 1997/09/01 18:40:35 millert Exp $ */ /* $NetBSD: glob.h,v 1.5 1994/10/26 00:55:56 cgd Exp $ */ /* @@ -65,6 +66,7 @@ typedef struct { int (*gl_stat) __P((const char *, struct stat *)); } glob_t; +/* Flags */ #define GLOB_APPEND 0x0001 /* Append to output from previous call. */ #define GLOB_DOOFFS 0x0002 /* Use gl_offs. */ #define GLOB_ERR 0x0004 /* Return on error. */ @@ -81,8 +83,11 @@ typedef struct { #define GLOB_TILDE 0x0800 /* Expand tilde names from the passwd file. */ #endif +/* Error values returned by glob(3) */ #define GLOB_NOSPACE (-1) /* Malloc call failed. */ -#define GLOB_ABEND (-2) /* Unignored error. */ +#define GLOB_ABORTED (-2) /* Unignored error. */ +#define GLOB_NOMATCH (-3) /* No match and GLOB_NOCHECK not set. */ +#define GLOB_NOSYS (-4) /* Function not supported. */ __BEGIN_DECLS int glob __P((const char *, int, int (*)(const char *, int), glob_t *)); |