File: readdir.c

package info (click to toggle)
zlibc 0.9k-4.3
  • links: PTS
  • area: main
  • in suites: buster, sid, stretch
  • size: 624 kB
  • ctags: 461
  • sloc: sh: 3,195; ansic: 3,077; csh: 128; makefile: 60; sed: 4
file content (56 lines) | stat: -rw-r--r-- 1,035 bytes parent folder | download | duplicates (5)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
#ifdef linux
#define DIRENT_ILLEGAL_ACCESS /* for dirent */
#endif

#define _LARGEFILE64_SOURCE
#define _GNU_SOURCE


/*
 * readdir.c
 *
 * Copyright (C) 1993 Alain Knaff
 */
#define _LARGEFILE64_SOURCE
#define _GNU_SOURCE

#include "sysincludes.h"


struct dirent *__libc_readdir(DIR * dir);


#define READDIR readdir
#define real_READDIR zlib_real_readdir
#define DIRENT dirent
#define ADJUST_NAME adjust_name
#define GETDENTS getdents
#define real_GETDENTS zlib_real_getdents

#include "readdir_tmpl.c"

#undef READDIR
#undef real_READDIR
#undef DIRENT
#undef ADJUST_NAME
#undef GETDENTS
#undef USE_GETDENTS
#undef real_GETDENTS

#if (defined HAVE_READDIR64 || defined HAVE_GETDENTS64)

extern struct dirent64 *__readdir64 (DIR *dirp);

#define READDIR readdir64
#define real_READDIR zlib_real_readdir64
#define DIRENT dirent64
#define ADJUST_NAME adjust_name64

#if (defined HAVE_GETDENTS64 || defined SYS_getdents64)
#define GETDENTS getdents64
#define real_GETDENTS zlib_real_getdents64
#endif

#include "readdir_tmpl.c"

#endif