From d8b0b6fe51404f5d19139635aac7ec01dea36e2e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Axel=20D=C3=B6rfler?= Date: Tue, 14 Sep 2004 23:08:21 +0000 Subject: [PATCH] Added readdir_r() function prototype. Minor cleanup. git-svn-id: file:///srv/svn/repos/haiku/trunk/current@8957 a95241bf-73f2-0310-859d-f6bbb57e9c96 --- headers/posix/dirent.h | 19 ++++++++++--------- 1 file changed, 10 insertions(+), 9 deletions(-) diff --git a/headers/posix/dirent.h b/headers/posix/dirent.h index 801e4dbce8..9b49e1f23b 100644 --- a/headers/posix/dirent.h +++ b/headers/posix/dirent.h @@ -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 @@ -33,14 +34,14 @@ typedef struct { extern "C" { #endif -DIR *opendir(const char *dirname); -struct dirent *readdir(DIR *dirp); -int closedir(DIR *dirp); -void rewinddir(DIR *dirp); +DIR *opendir(const char *dirname); +struct dirent *readdir(DIR *dir); +int readdir_r(DIR *dir, struct dirent *entry, struct dirent **_result); +int closedir(DIR *dir); +void rewinddir(DIR *dir); #ifdef __cplusplus } #endif -#endif /* _DIRENT_H */ - +#endif /* _DIRENT_H */