[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[MiNT] remove 64bit declaration from include/glob.h



If _FILE_OFFSET_BITS=64 then the declarations in include/glob.h get
changed to export to applications glob64/globfree64 which don't exist in
MiNTlib.

Alan.
Index: include/glob.h
===================================================================
RCS file: /mint/mintlib/include/glob.h,v
retrieving revision 1.1.1.1
diff -u -r1.1.1.1 glob.h
--- include/glob.h	12 Oct 2000 10:56:30 -0000	1.1.1.1
+++ include/glob.h	17 Mar 2008 14:22:09 -0000
@@ -121,25 +121,6 @@
     int (*gl_stat) __PMT ((__const char *, struct stat *));
   } glob_t;
 
-#ifdef _LARGEFILE64_SOURCE
-struct stat64;
-typedef struct
-  {
-    __size_t gl_pathc;
-    char **gl_pathv;
-    __size_t gl_offs;
-    int gl_flags;
-
-    /* If the GLOB_ALTDIRFUNC flag is set, the following functions
-       are used instead of the normal file access functions.  */
-    void (*gl_closedir) __PMT ((void *));
-    struct dirent64 *(*gl_readdir) __PMT ((void *));
-    __ptr_t (*gl_opendir) __PMT ((__const char *));
-    int (*gl_lstat) __PMT ((__const char *, struct stat64 *));
-    int (*gl_stat) __PMT ((__const char *, struct stat64 *));
-  } glob64_t;
-#endif
-
 /* Do glob searching for PATTERN, placing results in PGLOB.
    The bits defined above may be set in FLAGS.
    If a directory cannot be opened or read and ERRFUNC is not nil,
@@ -148,34 +129,12 @@
    `glob' returns GLOB_ABEND; if it returns zero, the error is ignored.
    If memory cannot be allocated for PGLOB, GLOB_NOSPACE is returned.
    Otherwise, `glob' returns zero.  */
-#if _FILE_OFFSET_BITS != 64
 extern int glob __P ((__const char *__pattern, int __flags,
 		      int (*__errfunc) (__const char *, int),
 		      glob_t *__pglob));
 
 /* Free storage allocated in PGLOB by a previous `glob' call.  */
 extern void globfree __P ((glob_t *__pglob));
-#else
-# if __GNUC__ >= 2
-extern int glob __P ((__const char *__pattern, int __flags,
-		      int (*__errfunc) (__const char *, int),
-		      glob_t *__pglob)) __asm__ ("glob64");
-
-extern void globfree __P ((glob_t *__pglob)) __asm__ ("globfree64");
-# else
-#  define glob glob64
-#  define globfree globfree64
-# endif
-#endif
-
-#ifdef _LARGEFILE64_SOURCE
-extern int glob64 __P ((__const char *__pattern, int __flags,
-			int (*__errfunc) (__const char *, int),
-			glob64_t *__pglob));
-
-extern void globfree64 __P ((glob64_t *__pglob));
-#endif
-
 
 #ifdef _GNU_SOURCE
 /* Return nonzero if PATTERN contains any metacharacters.