Fstat manual page






















 · fstat identifies open files. A file is considered open by a process if it was explicitly opened, is the working directory, root directory, active executable text, or kernel trace file for that process. If no options are specified, fstat reports on all open files in the system. The options are as follows: Restrict examination to files open in. Return Values. Returns an array with the statistics of the file; the format of the array is described in detail on the stat() manual page. Returns false on failure. FSTAT(3P) POSIX Programmer's Manual FSTAT(3P) PROLOG top This manual page is part of the POSIX Programmer's Manual. The Linux implementation of this interface may differ (consult the corresponding Linux manual page for details of Linux behavior), or .


For example, if st_mode or st_uid is changed by another process by calling chmod (2) or chown (2), stat () might return the old st_mode together with the new st_uid, or the old st_uid together with the new st_mode. The fields in the stat structure are as follows: st_dev This field describes the device on which this file resides. fstat(2) — Linux manual page NAME STAT(2) Linux Programmer's Manual STAT(2) NAME top stat, fstat, lstat, fstatat - get file status SYNOPSIS. Status of the file (see below). The status information word st_mode has these bits: For a list of access modes, see , access (2) and chmod (2). These macros are available to test whether a st_mode value passed in the m argument corresponds to a file of the specified type: Test for a block special file.


fstat — Gets information about a file using an open file pointer the format of the array is described in detail on the stat() manual page. stat(2) BSD System Calls Manual stat(2). NAME. fstat, fstat64, lstat, lstat64, stat, stat64 -- get file status. SYNOPSIS. #include int. STAT(2) System calls STAT(2) NAME stat, fstat, lstat - get file status SYNOPSIS #include #include int stat(const char *file_name.

0コメント

  • 1000 / 1000