blob: 87b2cdf3a27d18cd3a4eddebd0a6105339b71533 (
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
|
/* $Id$ -*- C -*-
* =============================================================================
*
* = LIBRARY
* pace
*
* = FILENAME
* pace/posix/dirent.inl
*
* = AUTHOR
* Luther Baker
*
* ============================================================================= */
#if (PACE_HAS_POSIX_FS_UOF)
PACE_INLINE
PACE_DIR *
pace_opendir (const char * dirname)
{
return opendir (dirname);
}
#endif /* PACE_HAS_POSIX_FS_UOF */
#if (PACE_HAS_POSIX_FS_UOF)
PACE_INLINE
pace_dirent *
pace_readdir (PACE_DIR * dirp)
{
return readdir (dirp);
}
#endif /* PACE_HAS_POSIX_FS_UOF */
#if (PACE_HAS_POSIX_CLSR_UOF)
PACE_INLINE
int
pace_readdir_r (PACE_DIR * dirp, pace_dirent * entry,
pace_dirent ** result)
{
#if (PACE_SUNOS)
*result = readdir_r (dirp, entry);
if (*result == 0)
return errno;
return 0;
#else
return readdir_r (dirp, entry, result);
#endif /* PACE_SUNOS */
}
#endif /* PACE_HAS_POSIX_CLSR_UOF */
#if (PACE_HAS_POSIX_FS_UOF)
PACE_INLINE
void
pace_rewinddir (PACE_DIR * dirp)
{
rewinddir (dirp);
return;
}
#endif /* PACE_HAS_POSIX_FS_UOF */
#if (PACE_HAS_POSIX_FS_UOF)
PACE_INLINE
int
pace_closedir (PACE_DIR * dirp)
{
return closedir (dirp);
}
#endif /* PACE_HAS_POSIX_FS_UOF */
|