1998-12-08 13:12:47 +00:00
|
|
|
#ifndef _GLOB_H
|
1995-02-18 01:27:10 +00:00
|
|
|
#include <posix/glob.h>
|
1998-12-08 13:12:47 +00:00
|
|
|
|
2012-02-26 04:18:39 +00:00
|
|
|
#ifndef _ISOMAC
|
2021-03-02 23:17:07 +00:00
|
|
|
# include <sys/types.h>
|
|
|
|
|
* include/unistd.h: Use libc_hidden_proto for _exit, alarm, confstr,
execl, execle, execlp, execvp, getpid, getsid.
* sysdeps/generic/alarm.c: Add libc_hidden_def.
* sysdeps/unix/alarm.c: Likewise.
* posix/confstr.c: Likewise.
* posix/execvp.c: Likewise.
* posix/execlp.c: Likewise.
* posix/execle.c: Likewise.
* posix/execl.c: Likewise.
* sysdeps/generic/getsid.c: Likewise.
* sysdeps/mach/hurd/getsid.c: Likewise.
* sysdeps/generic/getpid.c: Add libc_hidden_weak.
* sysdeps/mach/hurd/getpid.c: Likewise.
* include/stdlib.h: Use libc_hidden_proto for ecvt_r, fcvt_r,
qecvt_r, qfcvt_r, lrand48_r.
* misc/efgcvt_r.c: Add libc_hidden_def.
* include/wordexp.h: Use libc_hidden_proto for wordfree.
* sysdeps/generic/wordexp.c: Add libc_hidden_def.
* include/langinfo.h: Use libc_hidden_proto for nl_langinfo.
* locale/nl_langinfo.c: Add libc_hidden_def.
* include/glob.h: Use libc_hidden_proto for glob, globfree, globfree64.
* sysdeps/generic/glob.c: Add libc_hidden_def.
* sysdeps/generic/glob64.c: Likewise.
* sysdeps/wordsize-64/glob.c (globfree64): Add libc_hidden_weak.
2002-08-04 03:30:56 +00:00
|
|
|
libc_hidden_proto (glob)
|
2004-07-01 17:50:47 +00:00
|
|
|
libc_hidden_proto (glob64)
|
* include/unistd.h: Use libc_hidden_proto for _exit, alarm, confstr,
execl, execle, execlp, execvp, getpid, getsid.
* sysdeps/generic/alarm.c: Add libc_hidden_def.
* sysdeps/unix/alarm.c: Likewise.
* posix/confstr.c: Likewise.
* posix/execvp.c: Likewise.
* posix/execlp.c: Likewise.
* posix/execle.c: Likewise.
* posix/execl.c: Likewise.
* sysdeps/generic/getsid.c: Likewise.
* sysdeps/mach/hurd/getsid.c: Likewise.
* sysdeps/generic/getpid.c: Add libc_hidden_weak.
* sysdeps/mach/hurd/getpid.c: Likewise.
* include/stdlib.h: Use libc_hidden_proto for ecvt_r, fcvt_r,
qecvt_r, qfcvt_r, lrand48_r.
* misc/efgcvt_r.c: Add libc_hidden_def.
* include/wordexp.h: Use libc_hidden_proto for wordfree.
* sysdeps/generic/wordexp.c: Add libc_hidden_def.
* include/langinfo.h: Use libc_hidden_proto for nl_langinfo.
* locale/nl_langinfo.c: Add libc_hidden_def.
* include/glob.h: Use libc_hidden_proto for glob, globfree, globfree64.
* sysdeps/generic/glob.c: Add libc_hidden_def.
* sysdeps/generic/glob64.c: Likewise.
* sysdeps/wordsize-64/glob.c (globfree64): Add libc_hidden_weak.
2002-08-04 03:30:56 +00:00
|
|
|
libc_hidden_proto (globfree)
|
|
|
|
libc_hidden_proto (globfree64)
|
|
|
|
|
2021-03-02 23:17:07 +00:00
|
|
|
# if __TIMESIZE == 64
|
|
|
|
# define glob64_time64_t glob64_t
|
|
|
|
# else
|
|
|
|
# include <sys/stat.h>
|
|
|
|
|
|
|
|
typedef struct
|
|
|
|
{
|
|
|
|
size_t gl_pathc;
|
|
|
|
char **gl_pathv;
|
|
|
|
size_t gl_offs;
|
|
|
|
int gl_flags;
|
|
|
|
|
|
|
|
void (*gl_closedir) (void *);
|
|
|
|
struct dirent64 *(*gl_readdir) (void *);
|
|
|
|
void *(*gl_opendir) (const char *);
|
|
|
|
int (*gl_lstat) (const char *__restrict, struct __stat64_t64 *__restrict);
|
|
|
|
int (*gl_stat) (const char *__restrict, struct __stat64_t64 *__restrict);
|
|
|
|
} glob64_time64_t;
|
|
|
|
|
|
|
|
extern int __glob64_time64 (const char *pattern, int flags,
|
|
|
|
int (*errfunc) (const char *, int),
|
|
|
|
glob64_time64_t *pglob);
|
2021-06-30 14:17:37 +00:00
|
|
|
libc_hidden_proto (__glob64_time64)
|
2021-03-02 23:17:07 +00:00
|
|
|
void __globfree64_time64 (glob64_time64_t *pglob);
|
|
|
|
libc_hidden_proto (__globfree64_time64)
|
|
|
|
# endif
|
|
|
|
|
1998-12-08 13:12:47 +00:00
|
|
|
/* Now define the internal interfaces. */
|
2012-01-08 04:57:22 +00:00
|
|
|
extern int __glob_pattern_p (const char *__pattern, int __quote);
|
|
|
|
extern int __glob64 (const char *__pattern, int __flags,
|
|
|
|
int (*__errfunc) (const char *, int),
|
2000-08-19 16:58:09 +00:00
|
|
|
glob64_t *__pglob);
|
2017-10-02 01:01:54 +00:00
|
|
|
libc_hidden_proto (__glob64)
|
2012-02-26 04:18:39 +00:00
|
|
|
#endif
|
1998-12-08 13:12:47 +00:00
|
|
|
|
|
|
|
#endif
|