mirror of
https://sourceware.org/git/glibc.git
synced 2024-11-22 13:00:06 +00:00
84f7ce8447
The glob might pass a different stat struct for gl_stat and gl_lstat when GLOB_ALTDIRFUNC is used. This requires add a new 64-bit time version that also uses 64-bit time stat functions. Checked on i686-linux-gnu and x86_64-linux-gnu. Reviewed-by: Carlos O'Donell <carlos@redhat.com> Tested-by: Carlos O'Donell <carlos@redhat.com>
47 lines
1.2 KiB
C
47 lines
1.2 KiB
C
#ifndef _GLOB_H
|
|
#include <posix/glob.h>
|
|
|
|
#ifndef _ISOMAC
|
|
# include <sys/types.h>
|
|
|
|
libc_hidden_proto (glob)
|
|
libc_hidden_proto (glob64)
|
|
libc_hidden_proto (globfree)
|
|
libc_hidden_proto (globfree64)
|
|
|
|
# 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);
|
|
void __globfree64_time64 (glob64_time64_t *pglob);
|
|
libc_hidden_proto (__globfree64_time64)
|
|
# endif
|
|
|
|
/* Now define the internal interfaces. */
|
|
extern int __glob_pattern_p (const char *__pattern, int __quote);
|
|
extern int __glob64 (const char *__pattern, int __flags,
|
|
int (*__errfunc) (const char *, int),
|
|
glob64_t *__pglob);
|
|
libc_hidden_proto (__glob64)
|
|
#endif
|
|
|
|
#endif
|