JM プロジェクトは、主に Linux 関連のマニュアルページの日本語ページを翻訳・公開しています。
... この関数はストリームに対する seek 操作を実装する。 呼び出される際、 3 つの引数を受け取る。 int seek(void *cookie, off64_t *offset, int whence); *offset 引数は新しいファイルオフセットを指定する。 新しいオフセットは whence に以下の値のどれが指定されたかに ... 応じて決まる。 SEEK_SET ストリームオフセットを、ストリームの先頭から *offset バイトの位置に設定する。 SEEK_CUR ストリームの現在のオフセットに *offset を加算する。 SEEK_END ストリームのオフセットを、ス ... トリームのサイズに *offset を足した場所に設定する。 関数が返る前に、 seek 関数はストリームの新しいオフセットを示すように *offset を更新すべきである。 ... ... ; 説明 lseek () repositions the file offset of the open file description associated with the file descriptor fd to the argument offset according to the directive when ... ce as follows: SEEK_SET ファイルオフセットは offset バイトに設定される。 SEEK_CUR ファイルオフセットは現在位置に offset バイトを足した位置になる。 SEEK_END ファイルオフセット ... はファイルのサイズに offset バイトを足した位置になる。 lseek () は、オフセットをファイルの末尾を越えた位置に設定できる (但し、これによりファイルのサイ ... ... ff_t offset , off_t len ); 説明 このシステムコールは、移植性のない、Linux 固有のシステムコールである。 移植性が必要な場合は、ファイルに ... (3) を使うこと。 fallocate () を使うと、 fd が参照するファイルに割り当てられたディスク空間を直接操作できる。 操作対象は、 offset から始まる長さ len バイトの領域である。 mode 引数は、指定された領域に対して実行する操作を指定する。 サポートされている操作 ... 詳細は以下のサブセクションで説明する。 ディスク領域の割り当て fallocate () のデフォルトの動作 (つまり mode が 0 の場合) は、 offset と len で指定された範囲のディスク領域の割り当てを行う。 offset + len がファイルサイズよりも大きかった場合、 ( stat (2) で報 ... ... ffset_high , unsigned long offset_low , loff_t * result , unsigned int whence ); 注 : このシステムコールには glibc のラッパー関数は存在しない。「注意」の節を ... 明 Note: for information about the llseek (3) library function, see lseek64 (3). The _llseek () system call repositions the offset of the open file description associated with the file descriptor fd to the value (offset_high << 32) | offset_low This new ... offset is a byte offset relative to the beginning of the file, the current file offset, or the end of the file, depending on whet ... ... ffset_high , unsigned long offset_low , loff_t * result , unsigned int whence ); 注 : このシステムコールには glibc のラッパー関数は存在しない。「注意」の節を ... 明 Note: for information about the llseek (3) library function, see lseek64 (3). The _llseek () system call repositions the offset of the open file description associated with the file descriptor fd to the value (offset_high << 32) | offset_low This new ... offset is a byte offset relative to the beginning of the file, the current file offset, or the end of the file, depending on whet ... ... 造体に現在のカーネルの値を返します。この構造体は以下のように宣言されます: struct timex { int modes; /* Mode selector */ long offset; /* Time offset; nanoseconds, if STA_NANO status flag is set, otherwise microseconds */ long freq; /* Frequency offset; se ... frequency tolerance (read-only); see NOTES for units */ struct timeval time; /* Current time (read-only, except for ADJ_SETOFFSET); upon return, time.tv_usec contains nanoseconds, if STA_NANO status flag is set, otherwise microseconds */ long tick; /* ... ibration errors (read-only) */ long stbcnt; /* PPS count of stability limit exceeded events (read-only) */ int tai; /* TAI offset, as set by previous ADJ_TAI operation (seconds, read-only, since Linux 2.6.26) */ /* Further padding bytes to allow for fu ... ... 造体に現在のカーネルの値を返します。この構造体は以下のように宣言されます: struct timex { int modes; /* Mode selector */ long offset; /* Time offset; nanoseconds, if STA_NANO status flag is set, otherwise microseconds */ long freq; /* Frequency offset; se ... frequency tolerance (read-only); see NOTES for units */ struct timeval time; /* Current time (read-only, except for ADJ_SETOFFSET); upon return, time.tv_usec contains nanoseconds, if STA_NANO status flag is set, otherwise microseconds */ long tick; /* ... ibration errors (read-only) */ long stbcnt; /* PPS count of stability limit exceeded events (read-only) */ int tai; /* TAI offset, as set by previous ADJ_TAI operation (seconds, read-only, since Linux 2.6.26) */ /* Further padding bytes to allow for fu ... ... 造体に現在のカーネルの値を返します。この構造体は以下のように宣言されます: struct timex { int modes; /* Mode selector */ long offset; /* Time offset; nanoseconds, if STA_NANO status flag is set, otherwise microseconds */ long freq; /* Frequency offset; se ... frequency tolerance (read-only); see NOTES for units */ struct timeval time; /* Current time (read-only, except for ADJ_SETOFFSET); upon return, time.tv_usec contains nanoseconds, if STA_NANO status flag is set, otherwise microseconds */ long tick; /* ... ibration errors (read-only) */ long stbcnt; /* PPS count of stability limit exceeded events (read-only) */ int tai; /* TAI offset, as set by previous ADJ_TAI operation (seconds, read-only, since Linux 2.6.26) */ /* Further padding bytes to allow for fu ... ... flags , int fd , off_t offset ); int munmap(void * addr , size_t length ); 機能検査マクロの要件に関する情報は「注意」の節を参照。 説明 mmap () は、新しい ... れる。 ファイルマッピングの内容は、 ファイルディスクリプター fd で参照されるファイル (もしくは他のオブジェクト) のオフセット offset から開始される length バイトのデータで初期化される (ファイルマッピングは無名マッピングの反対語である。 MAP_ANONYMOUS を参照 ... )。 offset は sysconf(_SC_PAGE_SIZE) が返すページサイズの倍数でなければならない。 引き数 prot には、マッピングのメモリー保護をどのよう ... ... flags , int fd , off_t offset ); int munmap(void * addr , size_t length ); 機能検査マクロの要件に関する情報は「注意」の節を参照。 説明 mmap () は、新しい ... れる。 ファイルマッピングの内容は、 ファイルディスクリプター fd で参照されるファイル (もしくは他のオブジェクト) のオフセット offset から開始される length バイトのデータで初期化される (ファイルマッピングは無名マッピングの反対語である。 MAP_ANONYMOUS を参照 ... )。 offset は sysconf(_SC_PAGE_SIZE) が返すページサイズの倍数でなければならない。 引き数 prot には、マッピングのメモリー保護をどのよう ... 日本語の文書やマニュアルを配布している個人/プロジェクトへのリンクです。