06.08.2013 Views

pSOSystem System Calls - Read

pSOSystem System Calls - Read

pSOSystem System Calls - Read

SHOW MORE
SHOW LESS

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

pHILE+ <strong>System</strong> <strong>Calls</strong> lstat_f<br />

lstat_f Gets the status of a symbolically linked file.<br />

#include <br />

unsigned long lstat_f(<br />

char *name, /* file pathname */<br />

struct stat *buf /* file status */<br />

)<br />

Volume Types<br />

Description<br />

Arguments<br />

NFS volumes.<br />

lstat_f() is like stat_f() except when the named file is a symbolic link. For a<br />

symbolic link, lstat_f() returns information about the link file, and stat_f()<br />

returns information about the file to which the link refers.<br />

name Points to the null-terminated pathname of a file.<br />

buf Points to a stat structure defined in , as follows:<br />

struct stat {<br />

mode_t st_mode; /* ownership/protection */<br />

ino_t st_ino; /* file ID */<br />

dev_t st_dev; /* dev ID where the volume resides */<br />

dev_t st_rdev; /* dev ID for character or block<br />

* special files only */<br />

nlink_t st_nlink; /* number of hard links to the file */<br />

uid_t st_uid; /* user ID */<br />

gid_t st_gid; /* group ID */<br />

off_t st_size; /* total size of file, in bytes */<br />

time_t st_atime; /* file last access time */<br />

time_t st_mtime; /* file last modify time */<br />

time_t st_ctime; /* file last status change time */<br />

long st_blksize; /* optimal block size for I/O ops */<br />

long st_blocks; /* file size in blocks */<br />

};<br />

<strong>pSO<strong>System</strong></strong> <strong>System</strong> <strong>Calls</strong> 2-61<br />

2

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!