summaryrefslogtreecommitdiff
path: root/PACE/pace/dirent.h
blob: 44ed2ea5e760d064b3279e1346baf0832c0a31d4 (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
/* $Id$

 * ============================================================================
 *
 * = LIBRARY
 *    pace
 *
 * = FILENAME
 *    dirent.h
 *
 * = AUTHOR
 *    Luther Baker
 *
 * ============================================================================ */


#ifndef PACE_DIRENT_H
#define PACE_DIRENT_H


#include "pace/defines.h"
#include "pace/sys/types.h"
#include <dirent.h>


# if defined (PACE_HAS_CPLUSPLUS)
extern "C" {
# endif /* PACE_HAS_CPLUSPLUS */

  PACE_INLINE DIR * pace_opendir (const char * dirname);

  PACE_INLINE struct dirent * pace_readdir (DIR * dirp);

  PACE_INLINE int pace_readdir_r (DIR * dirp, struct dirent * entry,
                                  struct dirent ** result);
  /* Requires PACE_HAS_POSIX_PTHREAD_SEMANTICS. */

  PACE_INLINE void pace_rewinddir (DIR * dirp);

  PACE_INLINE int pace_closedir (DIR * dirp);

# if defined (PACE_HAS_CPLUSPLUS)
}
# endif /* PACE_HAS_CPLUSPLUS */

# if defined (PACE_HAS_INLINE)
# include "pace/dirent.inl"
# endif /* PACE_HAS_INLINE */


#endif /* PACE_DIRENT_H */