OpenCores
URL https://opencores.org/ocsvn/or1k/or1k/trunk

Subversion Repositories or1k

[/] [or1k/] [trunk/] [linux/] [uClibc/] [libc/] [misc/] [glob/] [glob64.c] - Blame information for rev 1765

Details | Compare with Previous | View Log

Line No. Rev Author Line
1 1325 phoenix
#include <features.h>
2
 
3
#ifdef __UCLIBC_HAS_LFS__
4
 
5
#if defined _FILE_OFFSET_BITS && _FILE_OFFSET_BITS != 64 
6
#undef _FILE_OFFSET_BITS
7
#define _FILE_OFFSET_BITS   64
8
#endif
9
#ifndef __USE_LARGEFILE64
10
# define __USE_LARGEFILE64      1
11
#endif
12
/* We absolutely do _NOT_ want interfaces silently
13
 * renamed under us or very bad things will happen... */
14
#ifdef __USE_FILE_OFFSET64
15
# undef __USE_FILE_OFFSET64
16
#endif
17
#include <dirent.h>
18
#include <glob.h>
19
#include <sys/stat.h>
20
 
21
#define dirent dirent64
22
#define readdir(dirp) readdir64 (dirp)
23
 
24
#define glob_t glob64_t
25
#define glob(pattern, flags, errfunc, pglob) \
26
  glob64 (pattern, flags, errfunc, pglob)
27
#define globfree(pglob) globfree64 (pglob)
28
 
29
#undef stat
30
#define stat stat64
31
#define lstat lstat64
32
 
33
#define __GLOB64    1
34
 
35
#include "glob.c"
36
 
37
#endif

powered by: WebSVN 2.1.0

© copyright 1999-2024 OpenCores.org, equivalent to Oliscience, all rights reserved. OpenCores®, registered trademark.