RTEMS Logo

RTEMS 4.8.0 On-Line Library


Files and Directories Manager lstat - Gets file status

PREV UP NEXT Bookshelf RTEMS POSIX API User's Guide

4.4.23: lstat - Gets file status

CALLING SEQUENCE:

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

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

STATUS CODES:

EBADF
Invalid file descriptor

DESCRIPTION:

The lstat() 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 link itself. This is in contrast to fstat() which follows the link.

The lstat() routine is defined by BSD 4.3 and SVR4 and not included in POSIX 1003.1b-1996.


PREV UP NEXT Bookshelf RTEMS POSIX API User's Guide

Copyright © 1988-2007OAR Corporation