haiku/headers/private/libroot/dirent_private.h
Ingo Weinhold 9e81ddee87 * 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
2009-11-10 10:55:43 +00:00

22 lines
330 B
C

/*
* Copyright 2009, Ingo Weinhold, ingo_weinhold@gmx.de.
* 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