blob: 5e2ba90debe4d6cbf51b0421788f4fab3de44c1d (
plain)
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
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
|
/* $Id$
* ============================================================================
*
* = LIBRARY
* pace
*
* = FILENAME
* pace/win32/dirent.h
*
* = AUTHOR
* Luther Baker
*
* ============================================================================ */
#ifndef PACE_DIRENT_H
#define PACE_DIRENT_H
#include "pace/sys/types.h"
#include <dirent.h>
#if defined (PACE_HAS_CPLUSPLUS)
extern "C" {
#endif /* PACE_HAS_CPLUSPLUS */
#ifndef PACE_DIR_T
#define PACE_DIR_T
typedef DIR PACE_DIR;
#endif /* PACE_DIR_T */
#ifndef PACE_DIRENT
#define PACE_DIRENT
typedef struct dirent pace_dirent;
#endif /* PACE_DIRENT */
/**
PACE's implementation of the POSIX function opendir.
See POSIX standard (Internation Standard ISO/IEC 9945-1:1996;
IEEE Std 1003.1, 1996 Edition), Section 5.1.2.
*/
PACE_INLINE DIR * pace_opendir (const char * dirname);
/**
PACE's implementation of the POSIX function readdir.
See POSIX standard (Internation Standard ISO/IEC 9945-1:1996;
IEEE Std 1003.1, 1996 Edition), Section 5.1.2.
*/
PACE_INLINE struct dirent * pace_readdir (PACE_DIR * dirp);
/**
PACE's implementation of the POSIX function readdir_r.
See POSIX standard (Internation Standard ISO/IEC 9945-1:1996;
IEEE Std 1003.1, 1996 Edition), Section 5.1.2.
*/
PACE_INLINE int pace_readdir_r (PACE_DIR * dirp, pace_dirent * entry,
pace_dirent ** result);
/* Requires PACE_HAS_POSIX_PTHREAD_SEMANTICS. */
/**
PACE's implementation of the POSIX function rewinddir.
See POSIX standard (Internation Standard ISO/IEC 9945-1:1996;
IEEE Std 1003.1, 1996 Edition), Section 5.1.2.
*/
PACE_INLINE void pace_rewinddir (PACE_DIR * dirp);
/**
PACE's implementation of the POSIX function closedir.
See POSIX standard (Internation Standard ISO/IEC 9945-1:1996;
IEEE Std 1003.1, 1996 Edition), Section 5.1.2.
*/
PACE_INLINE int pace_closedir (PACE_DIR * dirp);
#if defined (PACE_HAS_CPLUSPLUS)
}
#endif /* PACE_HAS_CPLUSPLUS */
#if defined (PACE_HAS_INLINE)
# include "pace/win32/dirent.inl"
#endif /* PACE_HAS_INLINE */
#endif /* PACE_DIRENT_H */
|