2 Copyright © 1995-2003, The AROS Development Team. All rights reserved.
5 POSIX.1-2008 function dirfd().
9 #include <aros/debug.h>
11 #include "__dirdesc.h"
13 /*****************************************************************************
24 get directory stream file descriptor
27 dir - directory stream dir.
30 on error -1 is returned.
33 This descriptor is the one used internally by the directory stream. As
34 a result, it is only useful for functions which do not depend on or
35 alter the file position, such as fstat(2) and fchdir(2). It will be
36 automatically closed when closedir(3) is called.
43 open(), readdir(), closedir(), rewinddir(), seekdir(),
48 ******************************************************************************/
50 D(bug("dirfd()=%d\n", dir
->fd
));