|
|
1.1 ! root 1: /* ! 2: * Copyright (c) 1989 The Regents of the University of California. ! 3: * All rights reserved. ! 4: * ! 5: * This code is derived from software contributed to Berkeley by ! 6: * Guido van Rossum. ! 7: * ! 8: * Redistribution and use in source and binary forms are permitted ! 9: * provided that: (1) source distributions retain this entire copyright ! 10: * notice and comment, and (2) distributions including binaries display ! 11: * the following acknowledgement: ``This product includes software ! 12: * developed by the University of California, Berkeley and its contributors'' ! 13: * in the documentation or other materials provided with the distribution ! 14: * and in all advertising materials mentioning features or use of this ! 15: * software. Neither the name of the University nor the names of its ! 16: * contributors may be used to endorse or promote products derived ! 17: * from this software without specific prior written permission. ! 18: * THIS SOFTWARE IS PROVIDED ``AS IS'' AND WITHOUT ANY EXPRESS OR ! 19: * IMPLIED WARRANTIES, INCLUDING, WITHOUT LIMITATION, THE IMPLIED ! 20: * WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE. ! 21: * ! 22: * @(#)glob.h 5.2 (Berkeley) 6/1/90 ! 23: */ ! 24: ! 25: typedef struct { ! 26: int gl_pathc; /* count of paths matching pattern */ ! 27: int gl_offs; /* reserved at beginning of gl_pathv */ ! 28: int gl_flags; /* copy of flags parameter to glob() */ ! 29: int (*gl_errfunc)(); /* copy of errfunc parameter to glob() */ ! 30: char **gl_pathv; /* list of paths matching pattern */ ! 31: } glob_t; ! 32: ! 33: #define GLOB_ERR 0x01 /* return on error */ ! 34: #define GLOB_MARK 0x02 /* append / to matching directories */ ! 35: #define GLOB_NOSORT 0x04 /* don't sort */ ! 36: #define GLOB_NOCHECK 0x08 /* return pattern itself if nothing matches */ ! 37: #define GLOB_DOOFFS 0x10 /* use gl_offs */ ! 38: #define GLOB_APPEND 0x20 /* append to output from previous call */ ! 39: ! 40: #ifndef _POSIX_SOURCE ! 41: #define GLOB_QUOTE 0x40 /* quote special chars with \ */ ! 42: #endif ! 43: ! 44: #define GLOB_NOSPACE (-1) /* malloc call failed */ ! 45: #define GLOB_ABEND (-2) /* unignored error */ ! 46: ! 47: void globfree();
This archive runs on limited infrastructure. Preserving old code on modern bandwidth. Automated agents are requested to crawl responsibly.