* Fixed fdopendir(): We have to explicitly (re-)open the directory, because FDs
returned by open() aren't suitable for directory iteration and because checks have to be performed (like whether this is a directory at all and whether the user has read permission). * Added __create_dir_struct() for the attribute, index, and query open functions to use instead. git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@33974 a95241bf-73f2-0310-859d-f6bbb57e9c96
This commit is contained in:
@@ -0,0 +1,21 @@
|
||||
/*
|
||||
* Copyright 2009, Ingo Weinhold, [email protected].
|
||||
* Distributed under the terms of the MIT License.
|
||||
*/
|
||||
#ifndef _LIBROOT_DIRENT_PRIVATE_H
|
||||
#define _LIBROOT_DIRENT_PRIVATE_H
|
||||
|
||||
#include <sys/cdefs.h>
|
||||
|
||||
#include <dirent.h>
|
||||
|
||||
|
||||
__BEGIN_DECLS
|
||||
|
||||
DIR* __create_dir_struct(int fd);
|
||||
|
||||
|
||||
__END_DECLS
|
||||
|
||||
|
||||
#endif // _LIBROOT_DIRENT_PRIVATE_H
|
||||
Reference in New Issue
Block a user