diff options
author | Ulrich Drepper <drepper@redhat.com> | 2001-01-26 09:02:38 +0000 |
---|---|---|
committer | Ulrich Drepper <drepper@redhat.com> | 2001-01-26 09:02:38 +0000 |
commit | 97ac0eafb88c12e24898a1a9fbf686446f944d10 (patch) | |
tree | a2e3d62e19539876df58e06752a1ea47532fa1e5 /posix/glob.h | |
parent | 1e4380f8fca21ff6ad1db1ad9bc2f7eb92fe6520 (diff) | |
download | glibc-97ac0eafb88c12e24898a1a9fbf686446f944d10.zip glibc-97ac0eafb88c12e24898a1a9fbf686446f944d10.tar.gz glibc-97ac0eafb88c12e24898a1a9fbf686446f944d10.tar.bz2 |
Update.
* posix/glob.h: Cleanup namespace for non-_GNU_SOURCE case.
Diffstat (limited to 'posix/glob.h')
-rw-r--r-- | posix/glob.h | 24 |
1 files changed, 23 insertions, 1 deletions
diff --git a/posix/glob.h b/posix/glob.h index 5ce4c9a..aa54d16 100644 --- a/posix/glob.h +++ b/posix/glob.h @@ -1,4 +1,4 @@ -/* Copyright (C) 1991, 92, 95, 96, 97, 98, 2000 Free Software Foundation, Inc. +/* Copyright (C) 1991,92,95,96,97,98,2000,2001 Free Software Foundation, Inc. The GNU C Library is free software; you can redistribute it and/or modify it under the terms of the GNU Library General Public License as @@ -106,7 +106,9 @@ typedef unsigned long int __size_t; /* Structure describing a globbing run. */ #if !defined _AMIGA && !defined VMS /* Buggy compiler. */ +# ifdef _GNU_SOURCE struct stat; +# endif #endif typedef struct { @@ -118,15 +120,26 @@ typedef struct /* If the GLOB_ALTDIRFUNC flag is set, the following functions are used instead of the normal file access functions. */ void (*gl_closedir) __PMT ((void *)); +#ifdef _GNU_SOURCE struct dirent *(*gl_readdir) __PMT ((void *)); +#else + void *(*gl_readdir) __PMT ((void *)); +#endif __ptr_t (*gl_opendir) __PMT ((__const char *)); +#ifdef _GNU_SOURCE int (*gl_lstat) __PMT ((__const char *__restrict, struct stat *__restrict)); int (*gl_stat) __PMT ((__const char *__restrict, struct stat *__restrict)); +#else + int (*gl_lstat) __PMT ((__const char *__restrict, void *__restrict)); + int (*gl_stat) __PMT ((__const char *__restrict, void *__restrict)); +#endif } glob_t; #ifdef _LARGEFILE64_SOURCE +# ifdef _GNU_SOURCE struct stat64; +# endif typedef struct { __size_t gl_pathc; @@ -137,12 +150,21 @@ typedef struct /* If the GLOB_ALTDIRFUNC flag is set, the following functions are used instead of the normal file access functions. */ void (*gl_closedir) __PMT ((void *)); +# ifdef _GNU_SOURCE struct dirent64 *(*gl_readdir) __PMT ((void *)); +# else + void *(*gl_readdir) __PMT ((void *)); +# endif __ptr_t (*gl_opendir) __PMT ((__const char *)); +# ifdef _GNU_SOURCE int (*gl_lstat) __PMT ((__const char *__restrict, struct stat64 *__restrict)); int (*gl_stat) __PMT ((__const char *__restrict, struct stat64 *__restrict)); +# else + int (*gl_lstat) __PMT ((__const char *__restrict, void *__restrict)); + int (*gl_stat) __PMT ((__const char *__restrict, void *__restrict)); +# endif } glob64_t; #endif |