Added readdir_r() function prototype. Minor cleanup.
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@8957 a95241bf-73f2-0310-859d-f6bbb57e9c96
This commit is contained in:
+10
-9
@@ -1,8 +1,9 @@
|
|||||||
#ifndef _DIRENT_H
|
|
||||||
#define _DIRENT_H
|
|
||||||
/*
|
/*
|
||||||
** Distributed under the terms of the OpenBeOS License.
|
** Distributed under the terms of the Haiku License.
|
||||||
*/
|
*/
|
||||||
|
#ifndef _DIRENT_H
|
||||||
|
#define _DIRENT_H
|
||||||
|
|
||||||
|
|
||||||
#include <sys/types.h>
|
#include <sys/types.h>
|
||||||
|
|
||||||
@@ -33,14 +34,14 @@ typedef struct {
|
|||||||
extern "C" {
|
extern "C" {
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
DIR *opendir(const char *dirname);
|
DIR *opendir(const char *dirname);
|
||||||
struct dirent *readdir(DIR *dirp);
|
struct dirent *readdir(DIR *dir);
|
||||||
int closedir(DIR *dirp);
|
int readdir_r(DIR *dir, struct dirent *entry, struct dirent **_result);
|
||||||
void rewinddir(DIR *dirp);
|
int closedir(DIR *dir);
|
||||||
|
void rewinddir(DIR *dir);
|
||||||
|
|
||||||
#ifdef __cplusplus
|
#ifdef __cplusplus
|
||||||
}
|
}
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#endif /* _DIRENT_H */
|
#endif /* _DIRENT_H */
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user