2 Copyright © 1995-2012, The AROS Development Team. All rights reserved.
5 POSIX.1-2008 function fstat().
13 /*****************************************************************************
26 Returns information about a file specified by an open file descriptor.
27 Information is stored in stat structure. Consult stat() documentation
28 for detailed description of that structure.
31 filedes - File descriptor of the file
32 sb - Pointer to stat structure that will be filled by the fstat()
36 0 on success and -1 on error. If an error occurred, the global
37 variable errno is set.
49 Consult stat() documentation for details.
51 ******************************************************************************/
53 fdesc
*desc
= __getfdesc(fd
);
62 return __stat(desc
->fcb
->handle
, sb
, (desc
->fcb
->privflags
& _FCB_ISDIR
) ? FALSE
: TRUE
);