1998-12-08 21:12:47 +08:00
|
|
|
#ifndef _GLOB_H
|
1995-02-18 09:27:10 +08:00
|
|
|
#include <posix/glob.h>
|
1998-12-08 21:12:47 +08:00
|
|
|
|
2012-02-26 12:18:39 +08:00
|
|
|
#ifndef _ISOMAC
|
2021-03-03 07:17:07 +08: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 11:30:56 +08:00
|
|
|
libc_hidden_proto (glob)
|
2004-07-02 01:50:47 +08: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 11:30:56 +08:00
|
|
|
libc_hidden_proto (globfree)
|
|
|
|
libc_hidden_proto (globfree64)
|
|
|
|
|
2021-03-03 07:17:07 +08: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 22:17:37 +08:00
|
|
|
libc_hidden_proto (__glob64_time64)
|
2021-03-03 07:17:07 +08:00
|
|
|
void __globfree64_time64 (glob64_time64_t *pglob);
|
|
|
|
libc_hidden_proto (__globfree64_time64)
|
|
|
|
# endif
|
|
|
|
|
1998-12-08 21:12:47 +08:00
|
|
|
/* Now define the internal interfaces. */
|
2012-01-08 12:57:22 +08: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-20 00:58:09 +08:00
|
|
|
glob64_t *__pglob);
|
2017-10-02 09:01:54 +08:00
|
|
|
libc_hidden_proto (__glob64)
|
2012-02-26 12:18:39 +08:00
|
|
|
#endif
|
1998-12-08 21:12:47 +08:00
|
|
|
|
|
|
|
#endif
|