New versions to go with new fts() et al.

This commit is contained in:
mycroft 1993-08-03 21:53:56 +00:00
parent 88d7d7d35d
commit 06d166fd25
2 changed files with 22 additions and 16 deletions

View File

@ -33,8 +33,8 @@
* OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
* SUCH DAMAGE.
*
* from: @(#)glob.h 5.6 (Berkeley) 4/3/91
* $Id: glob.h,v 1.2 1993/08/01 18:44:53 mycroft Exp $
* from: @(#)glob.h 5.8 (Berkeley) 12/2/92
* $Id: glob.h,v 1.3 1993/08/03 21:53:56 mycroft Exp $
*/
#ifndef _GLOB_H_
@ -46,20 +46,26 @@ typedef struct {
int gl_offs; /* reserved at beginning of gl_pathv */
int gl_flags; /* copy of flags parameter to glob() */
int (*gl_errfunc)(); /* copy of errfunc parameter to glob() */
void *(*gl_opendir)(); /* alternate opendir() function for glob() */
struct dirent *(*gl_readdir)(); /* alternate readdir() function */
void (*gl_closedir)(); /* alternate closedir() function for glob() */
int (*gl_lstat)(); /* alternate lstat() function for glob() */
int (*gl_stat)(); /* alternate stat() function for glob() */
char **gl_pathv; /* list of paths matching pattern */
} glob_t;
#define GLOB_APPEND 0x01 /* append to output from previous call */
#define GLOB_DOOFFS 0x02 /* use gl_offs */
#define GLOB_ERR 0x04 /* return on error */
#define GLOB_APPEND 0x001 /* append to output from previous call */
#define GLOB_DOOFFS 0x002 /* use gl_offs */
#define GLOB_ERR 0x004 /* return on error */
#define GLOB_MARK 0x008 /* append / to matching directories */
#define GLOB_NOCHECK 0x010 /* return pattern itself if nothing matches */
#define GLOB_NOSORT 0x020 /* don't sort */
#ifndef _POSIX_SOURCE
#define GLOB_MAGCHAR 0x08 /* pattern had globbing characters */
#endif
#define GLOB_MARK 0x10 /* append / to matching directories */
#define GLOB_NOCHECK 0x20 /* return pattern itself if nothing matches */
#define GLOB_NOSORT 0x40 /* don't sort */
#ifndef _POSIX_SOURCE
#define GLOB_QUOTE 0x80 /* quote special chars with \ */
#define GLOB_MAGCHAR 0x040 /* pattern had globbing characters */
#define GLOB_NOMAGIC 0x080 /* GLOB_NOCHECK without magic chars (csh) */
#define GLOB_QUOTE 0x100 /* quote special chars with \ */
#define GLOB_ALTDIRFUNC 0x200 /* use alternately specified directory funcs */
#endif
#define GLOB_NOSPACE (-1) /* malloc call failed */
@ -68,8 +74,8 @@ typedef struct {
#include <sys/cdefs.h>
__BEGIN_DECLS
int glob __P((const char *, int, int (*)(char *, int), glob_t *));
void globfree __P((glob_t *));
int glob __P((const char *, int, int (*)(char *, int), glob_t *));
void globfree __P((glob_t *));
__END_DECLS
#endif /* !_GLOB_H_ */

View File

@ -31,7 +31,7 @@
* SUCH DAMAGE.
*
* from: @(#)vis.h 5.9 (Berkeley) 4/3/91
* $Id: vis.h,v 1.2 1993/08/01 18:45:04 mycroft Exp $
* $Id: vis.h,v 1.3 1993/08/03 21:53:59 mycroft Exp $
*/
#ifndef _VIS_H_
@ -75,7 +75,7 @@
#include <sys/cdefs.h>
__BEGIN_DECLS
char *vis __P((char *, char, int, char));
char *vis __P((char *, int, int, int));
int strvis __P((char *, const char *, int));
int strvisx __P((char *, const char *, size_t, int));
int strunvis __P((char *, const char *));