JM プロジェクトは、主に Linux 関連のマニュアルページの日本語ページを翻訳・公開しています。
... が参照するファイルに割り当てられたディスク空間を直接操作できる。 操作対象は、 offset から始まる長さ len バイトの領域である。 mode 引数は、指定された領域に対して実行する操作を指定する。 サポートされている操作の詳細は以下のサブセクションで説明する。 ディ ... スク領域の割り当て fallocate () のデフォルトの動作 (つまり mode が 0 の場合) は、 offset と len で指定された範囲のディスク領域の割り当てを行う。 offset + len がファイルサイズよりも大きか ... 囲へのそれ以降の書き込みでは、 ディスクの領域不足での書き込み失敗が起こらないことが保証される。 FALLOC_FL_KEEP_SIZE フラグが mode に指定された場合、このシステムコール の動作は似ているが、 offset + len がファイルサイズよりも大きい場合で あってもファイル ... ... const char * mode ); FILE *freopen(const char * pathname , const char * mode , FILE * stream ); glibc 向けの機能検査マクロの要件 ( feature_t ... fdopen (): _POSIX_C_SOURCE 説明 fopen () 関数は、 pathname で指定された名前のファイルを開き、ストリームと結びつける。 引数 mode は、以下に続く文字のひとつから始まる文字列へのポインターであ る (以下の述べる、追加の文字が後に続くこともある): r テキスト ... st. Output is always appended to the end of the file. POSIX is silent on what the initial read position is when using this mode. For glibc, the initial file position for reading is at the beginning of the file, but for Android/BSD/MacOS, the initial ... ... const char * mode ); FILE *freopen(const char * pathname , const char * mode , FILE * stream ); glibc 向けの機能検査マクロの要件 ( feature_t ... fdopen (): _POSIX_C_SOURCE 説明 fopen () 関数は、 pathname で指定された名前のファイルを開き、ストリームと結びつける。 引数 mode は、以下に続く文字のひとつから始まる文字列へのポインターであ る (以下の述べる、追加の文字が後に続くこともある): r テキスト ... st. Output is always appended to the end of the file. POSIX is silent on what the initial read position is when using this mode. For glibc, the initial file position for reading is at the beginning of the file, but for Android/BSD/MacOS, the initial ... ... const char * mode ); FILE *freopen(const char * pathname , const char * mode , FILE * stream ); glibc 向けの機能検査マクロの要件 ( feature_t ... fdopen (): _POSIX_C_SOURCE 説明 fopen () 関数は、 pathname で指定された名前のファイルを開き、ストリームと結びつける。 引数 mode は、以下に続く文字のひとつから始まる文字列へのポインターであ る (以下の述べる、追加の文字が後に続くこともある): r テキスト ... st. Output is always appended to the end of the file. POSIX is silent on what the initial read position is when using this mode. For glibc, the initial file position for reading is at the beginning of the file, but for Android/BSD/MacOS, the initial ... ... > int mknod(const char * pathname , mode_t mode , dev_t dev ); #include < fcntl.h > /* AT_* 定数の定義 */ #include < sys/stat.h > int mknodat(int dirfd , const cha ... r * pathname , mode_t mode , dev_t dev ); glibc 向けの機能検査マクロの要件 ( feature_test_macros (7) 参照): mknod (): _XOPEN_SOURCE >= 500 || ... ル mknod () は pathname という名前のファイルシステムノード (ファイル、デバイススペシャルファイル、名前付きパイプ) を、 属性 mode と dev の指定にしたがって作成する。 The mode argument specifies both the file mode to use and the type of node to be creat ... ... > int mknod(const char * pathname , mode_t mode , dev_t dev ); #include < fcntl.h > /* AT_* 定数の定義 */ #include < sys/stat.h > int mknodat(int dirfd , const cha ... r * pathname , mode_t mode , dev_t dev ); glibc 向けの機能検査マクロの要件 ( feature_test_macros (7) 参照): mknod (): _XOPEN_SOURCE >= 500 || ... ル mknod () は pathname という名前のファイルシステムノード (ファイル、デバイススペシャルファイル、名前付きパイプ) を、 属性 mode と dev の指定にしたがって作成する。 The mode argument specifies both the file mode to use and the type of node to be creat ... ... できる。 デフォルトでは、作成される FIFO の許可モードは 0666 (`a+rw') から umask のビットを引いたものになる。 オプション -m mode , --mode= mode 作成される FIFO の許可モードを mode に設定する。 この許可モードは chmod (1) のシンボル表現で指定し、 デフォ ... ... < fcntl.h > /* AT_* 定数の定義 */ #include < sys/stat.h > int mkdirat(int dirfd , const char * pathname , mode_t mode ); glibc 向けの機能検査マクロの要件 ( feature_test_macros (7) 参照): mkdirat (): glibc 2.10 以降: _POSIX_C_SOURCE > ... glibc 2.10 より前: _ATFILE_SOURCE 説明 mkdir () は pathname で示される名前のディレクトリを作成しようとする。 The argument mode specifies the mode for the new directory (see inode (7)). It is modified by the process's umask in the usual way: in the a ... bsence of a default ACL, the mode of the created directory is ( mode & ~ umask & 0777). Whether other mode bits are honored for the created directory depend ... ... < fcntl.h > /* AT_* 定数の定義 */ #include < sys/stat.h > int mkdirat(int dirfd , const char * pathname , mode_t mode ); glibc 向けの機能検査マクロの要件 ( feature_test_macros (7) 参照): mkdirat (): glibc 2.10 以降: _POSIX_C_SOURCE > ... glibc 2.10 より前: _ATFILE_SOURCE 説明 mkdir () は pathname で示される名前のディレクトリを作成しようとする。 The argument mode specifies the mode for the new directory (see inode (7)). It is modified by the process's umask in the usual way: in the a ... bsence of a default ACL, the mode of the created directory is ( mode & ~ umask & 0777). Whether other mode bits are honored for the created directory depend ... ... , const char * mode ); FILE *open_memstream(char ** ptr , size_t * sizeloc ); #include < wchar.h > FILE *open_wmemstream(wchar_t ** ptr , size ... POSIX_C_SOURCE >= 200809L glibc 2.10 より前: _GNU_SOURCE 説明 fmemopen () 関数は、ストリームをオープンし、そのストリームに mode で指定されたアクセス許可を設定する。 そのストリームを通じて、 buf で指定された文字列やメモリーバッファーへの読み書きができ ... る。 このバッファーは少なくとも size バイトの長さでなければならない。 引き数 mode は fopen (3) の場合と同じである。 mode で追記モード (append mode) が指定された場合、ファイル位置の初期値は バッファー中の ... 日本語の文書やマニュアルを配布している個人/プロジェクトへのリンクです。