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 /lib/libc/gen/glob.3 | |
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 'lib/libc/gen/glob.3')
-rw-r--r-- | lib/libc/gen/glob.3 | 22 |
1 files changed, 18 insertions, 4 deletions
diff --git a/lib/libc/gen/glob.3 b/lib/libc/gen/glob.3 index f3282b3de79..a91404e5ea9 100644 --- a/lib/libc/gen/glob.3 +++ b/lib/libc/gen/glob.3 @@ -1,4 +1,4 @@ -.\" $OpenBSD: glob.3,v 1.3 1996/08/19 08:24:18 tholo Exp $ +.\" $OpenBSD: glob.3,v 1.4 1997/09/01 18:40:32 millert Exp $ .\" .\" Copyright (c) 1989, 1991, 1993, 1994 .\" The Regents of the University of California. All rights reserved. @@ -291,7 +291,7 @@ If returns non-zero, .Fn glob stops the scan and returns -.Dv GLOB_ABEND +.Dv GLOB_ABORTED after setting .Fa gl_pathc and @@ -368,12 +368,19 @@ in the include file .Bl -tag -width GLOB_NOCHECK .It Dv GLOB_NOSPACE An attempt to allocate memory failed. -.It Dv GLOB_ABEND +.It Dv GLOB_ABORTED The scan was stopped because an error was encountered and either .Dv GLOB_ERR -was set or +was set, or .Fa (*errfunc)() returned non-zero. +.It Dv GLOB_NOMATCH +The pattern did not match a pathname and +.Dv GLOB_NOCHECK +was not set. +.It Dv GLOB_NOSYS +The requested function is not supported by this version of +.Fn glob . .El .Pp The arguments @@ -445,3 +452,10 @@ for any of the errors specified for the library routines .Xr malloc 3 , and .Xr free 3 . +.Sh STANDARDS +The +.Fn basename +and +.Fn dirname +functions conform to +.St -xpg4.2 . |