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:
Axel Dörfler
2004-09-14 23:08:21 +00:00
parent ad21930ee8
commit d8b0b6fe51
+8 -7
View File
@@ -1,8 +1,9 @@
/*
** Distributed under the terms of the Haiku License.
*/
#ifndef _DIRENT_H #ifndef _DIRENT_H
#define _DIRENT_H #define _DIRENT_H
/*
** Distributed under the terms of the OpenBeOS License.
*/
#include <sys/types.h> #include <sys/types.h>
@@ -34,13 +35,13 @@ 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 */