JM プロジェクトは、主に Linux 関連のマニュアルページの日本語ページを翻訳・公開しています。
... file descriptors. read (2) が成功すると、 読み出しバッファーには以下の構造体が 1 つ以上格納される。 struct fanotify_event_metadata { __u32 event_len; __u8 vers; __u8 reserved; __u16 metadata_len; __aligned_u64 mask; __s32 fd; __s32 pid; }; In case of an ... to receive one or more additional information records of the structure detailed below following the generic fanotify_event_metadata structure within the read buffer: struct fanotify_event_info_header { __u8 info_type; __u8 pad; __u16 len; }; struct fanot ... ad (2) の返り値はバッファーに格納されたバイト数である。 エラーの場合は -1 が返される (ただし、バグも参照)。 fanotify_event_metadata 構造体のフィールドは以下のとおりである。 event_len This is the length of the data for the current event and the offset to ... ... ORT_TID (Linux 4.20 以降) Report thread ID (TID) instead of process ID (PID) in the pid field of the struct fanotify_event_metadata supplied to read (2) (see fanotify (7)). FAN_REPORT_FID (Linux 5.1 以降) This value allows the receipt of events which con ... of type FAN_EVENT_INFO_TYPE_FID encapsulates the information about the object and is included alongside the generic event metadata structure. The file descriptor that is used to represent the object correlated to an event is instead substituted with a f ... N_EVENT_INFO_TYPE_DFID encapsulates the information about the directory object and is included alongside the generic event metadata structure. For events that occur on a non-directory object, the additional structure includes a file handle that identifie ... ... Glibc versions <= 2.19: */ _BSD_SOURCE syncfs (): _GNU_SOURCE 説明 sync () causes all pending modifications to filesystem metadata and cached file data to be written to the underlying filesystems. syncfs () は sync () と同様だが、オープンされたファイルデ ... 。 EIO An error occurred during synchronization. This error may relate to data written to any file on the filesystem, or on metadata related to the filesystem itself. ENOSPC Disk space was exhausted while synchronizing. ENOSPC , EDQUOT Data was written to ... ... Glibc versions <= 2.19: */ _BSD_SOURCE syncfs (): _GNU_SOURCE 説明 sync () causes all pending modifications to filesystem metadata and cached file data to be written to the underlying filesystems. syncfs () は sync () と同様だが、オープンされたファイルデ ... 。 EIO An error occurred during synchronization. This error may relate to data written to any file on the filesystem, or on metadata related to the filesystem itself. ENOSPC Disk space was exhausted while synchronizing. ENOSPC , EDQUOT Data was written to ... ... cks until the device reports that the transfer has completed. As well as flushing the file data, fsync () also flushes the metadata information associated with the file (see inode (7)). fsync () の呼び出しは、ファイルが存在しているディレクトリのエントリー ... ... cks until the device reports that the transfer has completed. As well as flushing the file data, fsync () also flushes the metadata information associated with the file (see inode (7)). fsync () の呼び出しは、ファイルが存在しているディレクトリのエントリー ... ... ned with the intent to be executed. See NOTES for additional details. FAN_ATTRIB (Linux 5.1 以降) Create an event when the metadata for a file or directory has changed. An fanotify group that identifies filesystem objects by file handles is required. FAN ... 日本語の文書やマニュアルを配布している個人/プロジェクトへのリンクです。