gdb: stat/fstat

 
 stat/fstat
 ..........
 
 Synopsis:
           int stat(const char *pathname, struct stat *buf);
           int fstat(int fd, struct stat *buf);
 
 Request:
      'Fstat,PATHNAMEPTR/LEN,BUFPTR'
      'Ffstat,FD,BUFPTR'
 
 Return value:
      On success, zero is returned.  On error, -1 is returned.
 
 Errors:
 
      'EBADF'
           FD is not a valid open file.
 
      'ENOENT'
           A directory component in PATHNAME does not exist or the path
           is an empty string.
 
      'ENOTDIR'
           A component of the path is not a directory.
 
      'EFAULT'
           PATHNAMEPTR is an invalid pointer value.
 
      'EACCES'
           No access to the file or the path of the file.
 
      'ENAMETOOLONG'
           PATHNAME was too long.
 
      'EINTR'
           The call was interrupted by the user.