Next: gettimeofday, Previous: unlink, Up: List of Supported Calls [Contents][Index]
int stat(const char *pathname, struct stat *buf); int fstat(int fd, struct stat *buf);
‘Fstat,pathnameptr/len,bufptr’
‘Ffstat,fd,bufptr’
On success, zero is returned. On error, -1 is returned.
EBADFfd is not a valid open file.
ENOENTA directory component in pathname does not exist or the path is an empty string.
ENOTDIRA component of the path is not a directory.
EFAULTpathnameptr is an invalid pointer value.
EACCESNo access to the file or the path of the file.
ENAMETOOLONGpathname was too long.
EINTRThe call was interrupted by the user.