OAR

RTEMS 4.5.1-pre3 On-Line Library


Files and Directories Manager fstat - Gets file status

PREV UP NEXT Bookshelf RTEMS POSIX API User's Guide

4.4.21: fstat - Gets file status

CALLING SEQUENCE:

#include <sys/types.h>
#include <sys/stat.h>

int fstat(
  int          fildes,
  struct stat *buf
);

STATUS CODES:

EBADF
Invalid file descriptor

DESCRIPTION:

The fstat() function obtains information about the file associated with fildes and writes it to the area pointed to by the buf argument.

NOTES:

If the filesystem object referred to by fildes is a link, then the information returned in buf refers to the destination of that link. This is in contrast to lstat() which does not follow the link.


PREV UP NEXT Bookshelf RTEMS POSIX API User's Guide

Copyright © 1988-2000 OAR Corporation