Removed __P

git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@476 ec53bebd-3082-4978-b11e-865c3cabbd6b
This commit is contained in:
Unknown User d91-jda
1996-05-04 06:03:29 +00:00
parent 2db9ff3382
commit 9d3bb73773
6 changed files with 112 additions and 194 deletions

View File

@@ -133,33 +133,33 @@ typedef char Char;
#define ismeta(c) (((c)&M_QUOTE) != 0) #define ismeta(c) (((c)&M_QUOTE) != 0)
static int compare __P((const void *, const void *)); static int compare (const void *, const void *);
static void g_Ctoc __P((const Char *, char *)); static void g_Ctoc (const Char *, char *);
static int g_lstat __P((Char *, struct stat *, glob_t *)); static int g_lstat (Char *, struct stat *, glob_t *);
static DIR *g_opendir __P((Char *, glob_t *)); static DIR *g_opendir (Char *, glob_t *);
static Char *g_strchr __P((Char *, int)); static Char *g_strchr (Char *, int);
#ifdef notdef #ifdef notdef
static Char *g_strcat __P((Char *, const Char *)); static Char *g_strcat (Char *, const Char *);
#endif #endif
static int g_stat __P((Char *, struct stat *, glob_t *)); static int g_stat (Char *, struct stat *, glob_t *);
static int glob0 __P((const Char *, glob_t *)); static int glob0 (const Char *, glob_t *);
static int glob1 __P((Char *, glob_t *)); static int glob1 (Char *, glob_t *);
static int glob2 __P((Char *, Char *, Char *, glob_t *)); static int glob2 (Char *, Char *, Char *, glob_t *);
static int glob3 __P((Char *, Char *, Char *, Char *, glob_t *)); static int glob3 (Char *, Char *, Char *, Char *, glob_t *);
static int globextend __P((const Char *, glob_t *)); static int globextend (const Char *, glob_t *);
static const Char * globtilde __P((const Char *, Char *, glob_t *)); static const Char * globtilde (const Char *, Char *, glob_t *);
static int globexp1 __P((const Char *, glob_t *)); static int globexp1 (const Char *, glob_t *);
static int globexp2 __P((const Char *, const Char *, glob_t *, int *)); static int globexp2 (const Char *, const Char *, glob_t *, int *);
static int match __P((Char *, Char *, Char *)); static int match (Char *, Char *, Char *);
#ifdef DEBUG #ifdef DEBUG
static void qprintf __P((const char *, Char *)); static void qprintf (const char *, Char *);
#endif #endif
int int
glob(pattern, flags, errfunc, pglob) glob(const char *pattern,
const char *pattern; int flags,
int flags, (*errfunc) __P((const char *, int)); int (*errfunc)(const char *, int),
glob_t *pglob; glob_t *pglob)
{ {
const u_char *patnext; const u_char *patnext;
int c; int c;
@@ -207,9 +207,7 @@ glob(pattern, flags, errfunc, pglob)
* invoke the standard globbing routine to glob the rest of the magic * invoke the standard globbing routine to glob the rest of the magic
* characters * characters
*/ */
static int globexp1(pattern, pglob) static int globexp1(const Char *pattern, glob_t *pglob)
const Char *pattern;
glob_t *pglob;
{ {
const Char* ptr = pattern; const Char* ptr = pattern;
int rv; int rv;
@@ -231,10 +229,8 @@ static int globexp1(pattern, pglob)
* If it succeeds then it invokes globexp1 with the new pattern. * If it succeeds then it invokes globexp1 with the new pattern.
* If it fails then it tries to glob the rest of the pattern and returns. * If it fails then it tries to glob the rest of the pattern and returns.
*/ */
static int globexp2(ptr, pattern, pglob, rv) static int globexp2(const Char *ptr, const Char *pattern,
const Char *ptr, *pattern; glob_t *pglob, int *rv)
glob_t *pglob;
int *rv;
{ {
int i; int i;
Char *lm, *ls; Char *lm, *ls;
@@ -337,10 +333,7 @@ static int globexp2(ptr, pattern, pglob, rv)
* expand tilde from the passwd file. * expand tilde from the passwd file.
*/ */
static const Char * static const Char *
globtilde(pattern, patbuf, pglob) globtilde(const Char *pattern, Char *patbuf, glob_t *pglob)
const Char *pattern;
Char *patbuf;
glob_t *pglob;
{ {
struct passwd *pwd; struct passwd *pwd;
char *h; char *h;
@@ -399,9 +392,7 @@ globtilde(pattern, patbuf, pglob)
* to find no matches. * to find no matches.
*/ */
static int static int
glob0(pattern, pglob) glob0(const Char *pattern, glob_t *pglob)
const Char *pattern;
glob_t *pglob;
{ {
const Char *qpatnext; const Char *qpatnext;
int c, err, oldpathc; int c, err, oldpathc;
@@ -484,16 +475,13 @@ glob0(pattern, pglob)
} }
static int static int
compare(p, q) compare(const void *p, const void *q)
const void *p, *q;
{ {
return(strcmp(*(char **)p, *(char **)q)); return(strcmp(*(char **)p, *(char **)q));
} }
static int static int
glob1(pattern, pglob) glob1(Char *pattern, glob_t *pglob)
Char *pattern;
glob_t *pglob;
{ {
Char pathbuf[MAXPATHLEN+1]; Char pathbuf[MAXPATHLEN+1];
@@ -509,9 +497,7 @@ glob1(pattern, pglob)
* meta characters. * meta characters.
*/ */
static int static int
glob2(pathbuf, pathend, pattern, pglob) glob2(Char *pathbuf, Char *pathend, Char *pattern, glob_t *pglob)
Char *pathbuf, *pathend, *pattern;
glob_t *pglob;
{ {
struct stat sb; struct stat sb;
Char *p, *q; Char *p, *q;
@@ -560,9 +546,8 @@ glob2(pathbuf, pathend, pattern, pglob)
} }
static int static int
glob3(pathbuf, pathend, pattern, restpattern, pglob) glob3(Char *pathbuf, Char *pathend, Char *pattern, Char *restpattern,
Char *pathbuf, *pathend, *pattern, *restpattern; glob_t *pglob)
glob_t *pglob;
{ {
register struct dirent *dp; register struct dirent *dp;
DIR *dirp; DIR *dirp;
@@ -640,9 +625,7 @@ glob3(pathbuf, pathend, pattern, restpattern, pglob)
* gl_pathv points to (gl_offs + gl_pathc + 1) items. * gl_pathv points to (gl_offs + gl_pathc + 1) items.
*/ */
static int static int
globextend(path, pglob) globextend(const Char *path, glob_t *pglob)
const Char *path;
glob_t *pglob;
{ {
register char **pathv; register char **pathv;
register int i; register int i;
@@ -681,8 +664,7 @@ globextend(path, pglob)
* pattern causes a recursion level. * pattern causes a recursion level.
*/ */
static int static int
match(name, pat, patend) match(Char *name, Char *pat, Char *patend)
register Char *name, *pat, *patend;
{ {
int ok, negate_range; int ok, negate_range;
Char c, k; Char c, k;
@@ -729,8 +711,7 @@ match(name, pat, patend)
/* Free allocated data belonging to a glob_t structure. */ /* Free allocated data belonging to a glob_t structure. */
void void
globfree(pglob) globfree(glob_t *pglob)
glob_t *pglob;
{ {
register int i; register int i;
register char **pp; register char **pp;
@@ -745,9 +726,7 @@ globfree(pglob)
} }
static DIR * static DIR *
g_opendir(str, pglob) g_opendir(Char *str, glob_t *pglob)
register Char *str;
glob_t *pglob;
{ {
char buf[MAXPATHLEN]; char buf[MAXPATHLEN];
@@ -763,10 +742,7 @@ g_opendir(str, pglob)
} }
static int static int
g_lstat(fn, sb, pglob) g_lstat(Char *fn, struct stat *sb, glob_t *pglob)
register Char *fn;
struct stat *sb;
glob_t *pglob;
{ {
char buf[MAXPATHLEN]; char buf[MAXPATHLEN];
@@ -777,10 +753,7 @@ g_lstat(fn, sb, pglob)
} }
static int static int
g_stat(fn, sb, pglob) g_stat(Char *fn, struct stat *sb, glob_t *pglob)
register Char *fn;
struct stat *sb;
glob_t *pglob;
{ {
char buf[MAXPATHLEN]; char buf[MAXPATHLEN];
@@ -791,9 +764,7 @@ g_stat(fn, sb, pglob)
} }
static Char * static Char *
g_strchr(str, ch) g_strchr(Char *str, int ch)
Char *str;
int ch;
{ {
do { do {
if (*str == ch) if (*str == ch)
@@ -804,9 +775,7 @@ g_strchr(str, ch)
#ifdef notdef #ifdef notdef
static Char * static Char *
g_strcat(dst, src) g_strcat(Char *dst, const Char *src)
Char *dst;
const Char* src;
{ {
Char *sdst = dst; Char *sdst = dst;
@@ -821,9 +790,7 @@ g_strcat(dst, src)
#endif #endif
static void static void
g_Ctoc(str, buf) g_Ctoc(const Char *str, char *buf)
register const Char *str;
char *buf;
{ {
register char *dc; register char *dc;
@@ -833,9 +800,7 @@ g_Ctoc(str, buf)
#ifdef DEBUG #ifdef DEBUG
static void static void
qprintf(str, s) qprintf(const Char *str, Char *s)
const char *str;
register Char *s;
{ {
register Char *p; register Char *p;

View File

@@ -41,10 +41,6 @@
#ifndef _GLOB_H_ #ifndef _GLOB_H_
#define _GLOB_H_ #define _GLOB_H_
#ifndef __P
#define __P(protos) protos
#endif
struct stat; struct stat;
typedef struct { typedef struct {
int gl_pathc; /* Count of total paths so far. */ int gl_pathc; /* Count of total paths so far. */
@@ -53,18 +49,18 @@ typedef struct {
int gl_flags; /* Copy of flags parameter to glob. */ int gl_flags; /* Copy of flags parameter to glob. */
char **gl_pathv; /* List of paths matching pattern. */ char **gl_pathv; /* List of paths matching pattern. */
/* Copy of errfunc parameter to glob. */ /* Copy of errfunc parameter to glob. */
int (*gl_errfunc) __P((const char *, int)); int (*gl_errfunc) (const char *, int);
/* /*
* Alternate filesystem access methods for glob; replacement * Alternate filesystem access methods for glob; replacement
* versions of closedir(3), readdir(3), opendir(3), stat(2) * versions of closedir(3), readdir(3), opendir(3), stat(2)
* and lstat(2). * and lstat(2).
*/ */
void (*gl_closedir) __P((void *)); void (*gl_closedir) (void *);
struct dirent *(*gl_readdir) __P((void *)); struct dirent *(*gl_readdir) (void *);
void *(*gl_opendir) __P((const char *)); void *(*gl_opendir) (const char *);
int (*gl_lstat) __P((const char *, struct stat *)); int (*gl_lstat) (const char *, struct stat *);
int (*gl_stat) __P((const char *, struct stat *)); int (*gl_stat) (const char *, struct stat *);
} glob_t; } glob_t;
#define GLOB_APPEND 0x0001 /* Append to output from previous call. */ #define GLOB_APPEND 0x0001 /* Append to output from previous call. */
@@ -84,7 +80,7 @@ typedef struct {
#define GLOB_NOSPACE (-1) /* Malloc call failed. */ #define GLOB_NOSPACE (-1) /* Malloc call failed. */
#define GLOB_ABEND (-2) /* Unignored error. */ #define GLOB_ABEND (-2) /* Unignored error. */
int glob __P((const char *, int, int (*)(const char *, int), glob_t *)); int glob (const char *, int, int (*)(const char *, int), glob_t *);
void globfree __P((glob_t *)); void globfree (glob_t *);
#endif /* !_GLOB_H_ */ #endif /* !_GLOB_H_ */

View File

@@ -98,13 +98,13 @@ struct tab {
extern struct tab cmdtab[]; extern struct tab cmdtab[];
extern struct tab sitetab[]; extern struct tab sitetab[];
static char *copy __P((char *)); static char *copy (char *);
static void help __P((struct tab *, char *)); static void help (struct tab *, char *);
static struct tab * static struct tab *
lookup __P((struct tab *, char *)); lookup (struct tab *, char *);
static void sizecmd __P((char *)); static void sizecmd (char *);
static void toolong __P((int)); static void toolong (int);
static int yylex __P((void)); static int yylex (void);
%} %}

View File

@@ -133,33 +133,33 @@ typedef char Char;
#define ismeta(c) (((c)&M_QUOTE) != 0) #define ismeta(c) (((c)&M_QUOTE) != 0)
static int compare __P((const void *, const void *)); static int compare (const void *, const void *);
static void g_Ctoc __P((const Char *, char *)); static void g_Ctoc (const Char *, char *);
static int g_lstat __P((Char *, struct stat *, glob_t *)); static int g_lstat (Char *, struct stat *, glob_t *);
static DIR *g_opendir __P((Char *, glob_t *)); static DIR *g_opendir (Char *, glob_t *);
static Char *g_strchr __P((Char *, int)); static Char *g_strchr (Char *, int);
#ifdef notdef #ifdef notdef
static Char *g_strcat __P((Char *, const Char *)); static Char *g_strcat (Char *, const Char *);
#endif #endif
static int g_stat __P((Char *, struct stat *, glob_t *)); static int g_stat (Char *, struct stat *, glob_t *);
static int glob0 __P((const Char *, glob_t *)); static int glob0 (const Char *, glob_t *);
static int glob1 __P((Char *, glob_t *)); static int glob1 (Char *, glob_t *);
static int glob2 __P((Char *, Char *, Char *, glob_t *)); static int glob2 (Char *, Char *, Char *, glob_t *);
static int glob3 __P((Char *, Char *, Char *, Char *, glob_t *)); static int glob3 (Char *, Char *, Char *, Char *, glob_t *);
static int globextend __P((const Char *, glob_t *)); static int globextend (const Char *, glob_t *);
static const Char * globtilde __P((const Char *, Char *, glob_t *)); static const Char * globtilde (const Char *, Char *, glob_t *);
static int globexp1 __P((const Char *, glob_t *)); static int globexp1 (const Char *, glob_t *);
static int globexp2 __P((const Char *, const Char *, glob_t *, int *)); static int globexp2 (const Char *, const Char *, glob_t *, int *);
static int match __P((Char *, Char *, Char *)); static int match (Char *, Char *, Char *);
#ifdef DEBUG #ifdef DEBUG
static void qprintf __P((const char *, Char *)); static void qprintf (const char *, Char *);
#endif #endif
int int
glob(pattern, flags, errfunc, pglob) glob(const char *pattern,
const char *pattern; int flags,
int flags, (*errfunc) __P((const char *, int)); int (*errfunc)(const char *, int),
glob_t *pglob; glob_t *pglob)
{ {
const u_char *patnext; const u_char *patnext;
int c; int c;
@@ -207,9 +207,7 @@ glob(pattern, flags, errfunc, pglob)
* invoke the standard globbing routine to glob the rest of the magic * invoke the standard globbing routine to glob the rest of the magic
* characters * characters
*/ */
static int globexp1(pattern, pglob) static int globexp1(const Char *pattern, glob_t *pglob)
const Char *pattern;
glob_t *pglob;
{ {
const Char* ptr = pattern; const Char* ptr = pattern;
int rv; int rv;
@@ -231,10 +229,8 @@ static int globexp1(pattern, pglob)
* If it succeeds then it invokes globexp1 with the new pattern. * If it succeeds then it invokes globexp1 with the new pattern.
* If it fails then it tries to glob the rest of the pattern and returns. * If it fails then it tries to glob the rest of the pattern and returns.
*/ */
static int globexp2(ptr, pattern, pglob, rv) static int globexp2(const Char *ptr, const Char *pattern,
const Char *ptr, *pattern; glob_t *pglob, int *rv)
glob_t *pglob;
int *rv;
{ {
int i; int i;
Char *lm, *ls; Char *lm, *ls;
@@ -337,10 +333,7 @@ static int globexp2(ptr, pattern, pglob, rv)
* expand tilde from the passwd file. * expand tilde from the passwd file.
*/ */
static const Char * static const Char *
globtilde(pattern, patbuf, pglob) globtilde(const Char *pattern, Char *patbuf, glob_t *pglob)
const Char *pattern;
Char *patbuf;
glob_t *pglob;
{ {
struct passwd *pwd; struct passwd *pwd;
char *h; char *h;
@@ -399,9 +392,7 @@ globtilde(pattern, patbuf, pglob)
* to find no matches. * to find no matches.
*/ */
static int static int
glob0(pattern, pglob) glob0(const Char *pattern, glob_t *pglob)
const Char *pattern;
glob_t *pglob;
{ {
const Char *qpatnext; const Char *qpatnext;
int c, err, oldpathc; int c, err, oldpathc;
@@ -484,16 +475,13 @@ glob0(pattern, pglob)
} }
static int static int
compare(p, q) compare(const void *p, const void *q)
const void *p, *q;
{ {
return(strcmp(*(char **)p, *(char **)q)); return(strcmp(*(char **)p, *(char **)q));
} }
static int static int
glob1(pattern, pglob) glob1(Char *pattern, glob_t *pglob)
Char *pattern;
glob_t *pglob;
{ {
Char pathbuf[MAXPATHLEN+1]; Char pathbuf[MAXPATHLEN+1];
@@ -509,9 +497,7 @@ glob1(pattern, pglob)
* meta characters. * meta characters.
*/ */
static int static int
glob2(pathbuf, pathend, pattern, pglob) glob2(Char *pathbuf, Char *pathend, Char *pattern, glob_t *pglob)
Char *pathbuf, *pathend, *pattern;
glob_t *pglob;
{ {
struct stat sb; struct stat sb;
Char *p, *q; Char *p, *q;
@@ -560,9 +546,8 @@ glob2(pathbuf, pathend, pattern, pglob)
} }
static int static int
glob3(pathbuf, pathend, pattern, restpattern, pglob) glob3(Char *pathbuf, Char *pathend, Char *pattern, Char *restpattern,
Char *pathbuf, *pathend, *pattern, *restpattern; glob_t *pglob)
glob_t *pglob;
{ {
register struct dirent *dp; register struct dirent *dp;
DIR *dirp; DIR *dirp;
@@ -640,9 +625,7 @@ glob3(pathbuf, pathend, pattern, restpattern, pglob)
* gl_pathv points to (gl_offs + gl_pathc + 1) items. * gl_pathv points to (gl_offs + gl_pathc + 1) items.
*/ */
static int static int
globextend(path, pglob) globextend(const Char *path, glob_t *pglob)
const Char *path;
glob_t *pglob;
{ {
register char **pathv; register char **pathv;
register int i; register int i;
@@ -681,8 +664,7 @@ globextend(path, pglob)
* pattern causes a recursion level. * pattern causes a recursion level.
*/ */
static int static int
match(name, pat, patend) match(Char *name, Char *pat, Char *patend)
register Char *name, *pat, *patend;
{ {
int ok, negate_range; int ok, negate_range;
Char c, k; Char c, k;
@@ -729,8 +711,7 @@ match(name, pat, patend)
/* Free allocated data belonging to a glob_t structure. */ /* Free allocated data belonging to a glob_t structure. */
void void
globfree(pglob) globfree(glob_t *pglob)
glob_t *pglob;
{ {
register int i; register int i;
register char **pp; register char **pp;
@@ -745,9 +726,7 @@ globfree(pglob)
} }
static DIR * static DIR *
g_opendir(str, pglob) g_opendir(Char *str, glob_t *pglob)
register Char *str;
glob_t *pglob;
{ {
char buf[MAXPATHLEN]; char buf[MAXPATHLEN];
@@ -763,10 +742,7 @@ g_opendir(str, pglob)
} }
static int static int
g_lstat(fn, sb, pglob) g_lstat(Char *fn, struct stat *sb, glob_t *pglob)
register Char *fn;
struct stat *sb;
glob_t *pglob;
{ {
char buf[MAXPATHLEN]; char buf[MAXPATHLEN];
@@ -777,10 +753,7 @@ g_lstat(fn, sb, pglob)
} }
static int static int
g_stat(fn, sb, pglob) g_stat(Char *fn, struct stat *sb, glob_t *pglob)
register Char *fn;
struct stat *sb;
glob_t *pglob;
{ {
char buf[MAXPATHLEN]; char buf[MAXPATHLEN];
@@ -791,9 +764,7 @@ g_stat(fn, sb, pglob)
} }
static Char * static Char *
g_strchr(str, ch) g_strchr(Char *str, int ch)
Char *str;
int ch;
{ {
do { do {
if (*str == ch) if (*str == ch)
@@ -804,9 +775,7 @@ g_strchr(str, ch)
#ifdef notdef #ifdef notdef
static Char * static Char *
g_strcat(dst, src) g_strcat(Char *dst, const Char *src)
Char *dst;
const Char* src;
{ {
Char *sdst = dst; Char *sdst = dst;
@@ -821,9 +790,7 @@ g_strcat(dst, src)
#endif #endif
static void static void
g_Ctoc(str, buf) g_Ctoc(const Char *str, char *buf)
register const Char *str;
char *buf;
{ {
register char *dc; register char *dc;
@@ -833,9 +800,7 @@ g_Ctoc(str, buf)
#ifdef DEBUG #ifdef DEBUG
static void static void
qprintf(str, s) qprintf(const Char *str, Char *s)
const char *str;
register Char *s;
{ {
register Char *p; register Char *p;

View File

@@ -41,10 +41,6 @@
#ifndef _GLOB_H_ #ifndef _GLOB_H_
#define _GLOB_H_ #define _GLOB_H_
#ifndef __P
#define __P(protos) protos
#endif
struct stat; struct stat;
typedef struct { typedef struct {
int gl_pathc; /* Count of total paths so far. */ int gl_pathc; /* Count of total paths so far. */
@@ -53,18 +49,18 @@ typedef struct {
int gl_flags; /* Copy of flags parameter to glob. */ int gl_flags; /* Copy of flags parameter to glob. */
char **gl_pathv; /* List of paths matching pattern. */ char **gl_pathv; /* List of paths matching pattern. */
/* Copy of errfunc parameter to glob. */ /* Copy of errfunc parameter to glob. */
int (*gl_errfunc) __P((const char *, int)); int (*gl_errfunc) (const char *, int);
/* /*
* Alternate filesystem access methods for glob; replacement * Alternate filesystem access methods for glob; replacement
* versions of closedir(3), readdir(3), opendir(3), stat(2) * versions of closedir(3), readdir(3), opendir(3), stat(2)
* and lstat(2). * and lstat(2).
*/ */
void (*gl_closedir) __P((void *)); void (*gl_closedir) (void *);
struct dirent *(*gl_readdir) __P((void *)); struct dirent *(*gl_readdir) (void *);
void *(*gl_opendir) __P((const char *)); void *(*gl_opendir) (const char *);
int (*gl_lstat) __P((const char *, struct stat *)); int (*gl_lstat) (const char *, struct stat *);
int (*gl_stat) __P((const char *, struct stat *)); int (*gl_stat) (const char *, struct stat *);
} glob_t; } glob_t;
#define GLOB_APPEND 0x0001 /* Append to output from previous call. */ #define GLOB_APPEND 0x0001 /* Append to output from previous call. */
@@ -84,7 +80,7 @@ typedef struct {
#define GLOB_NOSPACE (-1) /* Malloc call failed. */ #define GLOB_NOSPACE (-1) /* Malloc call failed. */
#define GLOB_ABEND (-2) /* Unignored error. */ #define GLOB_ABEND (-2) /* Unignored error. */
int glob __P((const char *, int, int (*)(const char *, int), glob_t *)); int glob (const char *, int, int (*)(const char *, int), glob_t *);
void globfree __P((glob_t *)); void globfree (glob_t *);
#endif /* !_GLOB_H_ */ #endif /* !_GLOB_H_ */

View File

@@ -41,10 +41,6 @@
#ifndef _GLOB_H_ #ifndef _GLOB_H_
#define _GLOB_H_ #define _GLOB_H_
#ifndef __P
#define __P(protos) protos
#endif
struct stat; struct stat;
typedef struct { typedef struct {
int gl_pathc; /* Count of total paths so far. */ int gl_pathc; /* Count of total paths so far. */
@@ -53,18 +49,18 @@ typedef struct {
int gl_flags; /* Copy of flags parameter to glob. */ int gl_flags; /* Copy of flags parameter to glob. */
char **gl_pathv; /* List of paths matching pattern. */ char **gl_pathv; /* List of paths matching pattern. */
/* Copy of errfunc parameter to glob. */ /* Copy of errfunc parameter to glob. */
int (*gl_errfunc) __P((const char *, int)); int (*gl_errfunc) (const char *, int);
/* /*
* Alternate filesystem access methods for glob; replacement * Alternate filesystem access methods for glob; replacement
* versions of closedir(3), readdir(3), opendir(3), stat(2) * versions of closedir(3), readdir(3), opendir(3), stat(2)
* and lstat(2). * and lstat(2).
*/ */
void (*gl_closedir) __P((void *)); void (*gl_closedir) (void *);
struct dirent *(*gl_readdir) __P((void *)); struct dirent *(*gl_readdir) (void *);
void *(*gl_opendir) __P((const char *)); void *(*gl_opendir) (const char *);
int (*gl_lstat) __P((const char *, struct stat *)); int (*gl_lstat) (const char *, struct stat *);
int (*gl_stat) __P((const char *, struct stat *)); int (*gl_stat) (const char *, struct stat *);
} glob_t; } glob_t;
#define GLOB_APPEND 0x0001 /* Append to output from previous call. */ #define GLOB_APPEND 0x0001 /* Append to output from previous call. */
@@ -84,7 +80,7 @@ typedef struct {
#define GLOB_NOSPACE (-1) /* Malloc call failed. */ #define GLOB_NOSPACE (-1) /* Malloc call failed. */
#define GLOB_ABEND (-2) /* Unignored error. */ #define GLOB_ABEND (-2) /* Unignored error. */
int glob __P((const char *, int, int (*)(const char *, int), glob_t *)); int glob (const char *, int, int (*)(const char *, int), glob_t *);
void globfree __P((glob_t *)); void globfree (glob_t *);
#endif /* !_GLOB_H_ */ #endif /* !_GLOB_H_ */