2 Copyright © 1995-2001, The AROS Development Team. All rights reserved.
5 ANSI C 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
->fh
, sb
);