[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
19991201: need glob return values for FreeBSD (cont.)
- Subject: 19991201: need glob return values for FreeBSD (cont.)
- Date: Wed, 01 Dec 1999 14:20:17 -0700
>From: Ted Wisniewski <address@hidden>
>Organization: .
>Keywords: 199912012046.NAA08614
Ted,
Thanks for the quick reply.
>I found 2 things that may be what you are looking for. If need be, I can
>send along the whole man page/glob.h if you need more context information.
I think that you sent along just what I was looking for. FreeBSD uses
GLOB_ABEND instead GLOB_ABORTED.
>This lifted directly from the section 3 man page on glob:
>
> The argument flags is used to modify the behavior of glob(). The value
> of flags is the bitwise inclusive OR of any of the following values de-
> fined in glob.h:
>
> GLOB_ERR Causes glob() to return when it encounters a directory
> that it cannot open or read. Ordinarily, glob() contin-
> ues to find matches.
>
> ...
>
>and
>
> ...
>
> If glob() terminates due to an error, it sets errno and returns one of
> the following non-zero constants, which are defined in the include file
> <glob.h>:
>
> GLOB_NOSPACE An attempt to allocate memory failed.
>
> GLOB_ABEND The scan was stopped because an error was encountered and
> either GLOB_ERR was set or (*errfunc)() returned non-zero.
>
>--
>| Ted Wisniewski INET: address@hidden |
>| Computer Services address@hidden |
>| Plymouth State College address@hidden |
>| Plymouth NH, 03264 HTTP: http://oz.plymouth.edu/~ted/ |
Tom Yoksas