JM Project

JM プロジェクトは、主に Linux 関連のマニュアルページの日本語ページを翻訳・公開しています。

Linux マニュアル 一覧

全文・高度検索

per page, with , order by , clip by
Results of 1 - 10 of about 173 for fcntl (0.005 sec.)
Man page of FLOCK 11615
FLOCK Section: Linux Programmer's Manual (2) Updated: 2017-09-15 Index JM Home Page 名前 flock - オープンされたファイルに対するアドバイザリロックの適用、解除を行う 書式 #include < sys/file.h > int flock(int fd , int operation ); 説明 オープ ... したファイルがロックされており、 LOCK_NB フラグが指定されている。 準拠 4.4BSD ( flock () コールは 4.2BSD で最初に登場した)。 fcntl (2) で実装されているものなどを含めると、 flock () の機能はほとんどの UNIX システムで実装されている。 注意 kernel 2.0 以降で ... は、 flock () は、GNU C ライブラリでの fcntl (2) を呼び出してのエミュレーションではなく、 それ自体がシステムコールとして実装されている。 この実装では、 flock () と fcn ... 相互作用がなくなり、 flock () がデッドロックを検出しなくなる。 (ただし、最近の BSD などいくつかのシステムでは、 flock () と fcntl (2) ロックが互いに影響することが「ある」という点に注意すること。) flock () アドバイザリロックだけを適用する。したがって、フ ...
https://man.mtool.work/man/20260915/man2/flock.2.html
Man page of FCNTL 11245
FCNTL Section: Linux Programmer's Manual (2) Updated: 2020-12-21 Index JM Home Page 名前 fcntl - ファイルディスクリプターの操作を行う 書式 #include < unistd.h > #include < fcntl.h > int fcntl(int fd , int cmd , ... /* arg */ ); 説明 fcntl ( ... ) は、オープンされたファイルディスクリプター fd に関して下記の操作を行う。操作は cmd によって決まる: fcntl () はオプションとして第三引数をとることができる。 第三引数が必要 かどうかは cmd により決まる。必要な引数の型は cmd 名の後ろ ... バージョンの Linux カーネルでのみサポートされている。 ホストカーネルが特定の操作をサポートしているかを確認する推奨の方法は、 fcntl () を所望の cmd 値で呼び出し、 EINVAL で失敗するかを検査することである。 EINVAL が返った場合、カーネルがこの値を認識してい ... ターに対して close-on-exec フラグをセットする。 このフラグを指定することで、プログラムは FD_CLOEXEC フラグをセットするために fcntl () の F_SETFD 操作を追加で行う必要がなくなる。 このフラグがなぜ有用かについては、 open (2) の O_CLOEXEC の説明を参照のこと ...
https://man.mtool.work/man/20260915/man2/fcntl.2.html
Man page of FCNTL 11245
FCNTL Section: Linux Programmer's Manual (2) Updated: 2020-12-21 Index JM Home Page 名前 fcntl - ファイルディスクリプターの操作を行う 書式 #include < unistd.h > #include < fcntl.h > int fcntl(int fd , int cmd , ... /* arg */ ); 説明 fcntl ( ... ) は、オープンされたファイルディスクリプター fd に関して下記の操作を行う。操作は cmd によって決まる: fcntl () はオプションとして第三引数をとることができる。 第三引数が必要 かどうかは cmd により決まる。必要な引数の型は cmd 名の後ろ ... バージョンの Linux カーネルでのみサポートされている。 ホストカーネルが特定の操作をサポートしているかを確認する推奨の方法は、 fcntl () を所望の cmd 値で呼び出し、 EINVAL で失敗するかを検査することである。 EINVAL が返った場合、カーネルがこの値を認識してい ... ターに対して close-on-exec フラグをセットする。 このフラグを指定することで、プログラムは FD_CLOEXEC フラグをセットするために fcntl () の F_SETFD 操作を追加で行う必要がなくなる。 このフラグがなぜ有用かについては、 open (2) の O_CLOEXEC の説明を参照のこと ...
https://man.mtool.work/man/20260915/man2/fcntl64.2.html
Man page of OPEN 9393
OPEN Section: Linux Programmer's Manual (2) Updated: 2020-11-01 Index JM Home Page 名前 open, openat, creat - ファイルのオープン、作成を行う 書式 #include < sys/types.h > #include < sys/stat.h > #include < fcntl.h > int open(const char * pa ... a file descriptor, a small, nonnegative integer that is used in subsequent system calls ( read (2), write (2), lseek (2), fcntl (2), etc.) to refer to the open file. The file descriptor returned by a successful call will be the lowest-numbered file d ... the process. デフォルトでは、新しいファイルディスクリプターは execve (2) を実行した後も オープンされたままとなる (つまり、 fcntl (2) に説明がある FD_CLOEXEC ファイルディスクリプターフラグは最初は無効である); 後述の O_CLOEXEC フラグ を使うとこのデフォル ... ffect the semantics of subsequent I/O operations. The file status flags can be retrieved and (in some cases) modified; see fcntl (2) for details. すべてのファイル作成フラグとファイル状態フラグを以下のリストに示す。 O_APPEND The file is opened in appen ...
https://man.mtool.work/man/20260915/man2/creat.2.html
Man page of MEMFD_CREATE 9393
MEMFD_CREATE Section: Linux Programmer's Manual (2) Updated: 2020-11-01 Index JM Home Page 名前 memfd_create - 無名ファイル (anonymous file) を作成する 書式 #define _GNU_SOURCE /* feature_test_macros (7) 参照 */ #include < sys/mman.h > int ... については open (2) の O_CLOEXEC フラグの説明を参照のこと。 MFD_ALLOW_SEALING このファイルに対して sealing 操作を許可する。 fcntl (2) の F_ADD_SEALS と F_GET_SEALS 操作の議論を参照。 下記の「注意」も参照。 初期の seal 集合は空となる。 このフラグを指定し ... 、 そのファイルシステムにファイルをオープンするという操作の、 簡単な代替手段を提供している。 memfd_create () の主な目的は、 fcntl (2) が提供する file-sealing API で使用できる、 ファイルとそれに関連付けられるファイルディスクリプターを作成することである。 ... 変更し、 mmap (2) を使ってそのファイルをマッピングし、 共有メモリーに所望のデータを配置する。 3. The first process uses the fcntl (2) F_ADD_SEALS operation to place one or more seals on the file, in order to restrict further modifications on the file. ...
https://man.mtool.work/man/20260915/man2/memfd_create.2.html
Man page of OPEN 9393
OPEN Section: Linux Programmer's Manual (2) Updated: 2020-11-01 Index JM Home Page 名前 open, openat, creat - ファイルのオープン、作成を行う 書式 #include < sys/types.h > #include < sys/stat.h > #include < fcntl.h > int open(const char * pa ... a file descriptor, a small, nonnegative integer that is used in subsequent system calls ( read (2), write (2), lseek (2), fcntl (2), etc.) to refer to the open file. The file descriptor returned by a successful call will be the lowest-numbered file d ... the process. デフォルトでは、新しいファイルディスクリプターは execve (2) を実行した後も オープンされたままとなる (つまり、 fcntl (2) に説明がある FD_CLOEXEC ファイルディスクリプターフラグは最初は無効である); 後述の O_CLOEXEC フラグ を使うとこのデフォル ... ffect the semantics of subsequent I/O operations. The file status flags can be retrieved and (in some cases) modified; see fcntl (2) for details. すべてのファイル作成フラグとファイル状態フラグを以下のリストに示す。 O_APPEND The file is opened in appen ...
https://man.mtool.work/man/20260915/man2/open.2.html
Man page of OPEN 9393
OPEN Section: Linux Programmer's Manual (2) Updated: 2020-11-01 Index JM Home Page 名前 open, openat, creat - ファイルのオープン、作成を行う 書式 #include < sys/types.h > #include < sys/stat.h > #include < fcntl.h > int open(const char * pa ... a file descriptor, a small, nonnegative integer that is used in subsequent system calls ( read (2), write (2), lseek (2), fcntl (2), etc.) to refer to the open file. The file descriptor returned by a successful call will be the lowest-numbered file d ... the process. デフォルトでは、新しいファイルディスクリプターは execve (2) を実行した後も オープンされたままとなる (つまり、 fcntl (2) に説明がある FD_CLOEXEC ファイルディスクリプターフラグは最初は無効である); 後述の O_CLOEXEC フラグ を使うとこのデフォル ... ffect the semantics of subsequent I/O operations. The file status flags can be retrieved and (in some cases) modified; see fcntl (2) for details. すべてのファイル作成フラグとファイル状態フラグを以下のリストに示す。 O_APPEND The file is opened in appen ...
https://man.mtool.work/man/20260915/man2/openat.2.html
Man page of LOCKF 7552
LOCKF Section: Linux Programmer's Manual (3) Updated: 2019-03-06 Index JM Home Page 名前 lockf - オープンされたファイルに対する POSIX ロックの適用・テスト・解除を行う 書式 #include < unistd.h > int lockf(int fd , int cmd , off_t len ); glib ... ファイル終端位置まで)。 どの場合においても、セクションは以前のファイル終端よりも拡大されうる。 Linux では、 lockf () は単に fcntl (2) のロックへのインターフェースである。 多くの他のシステムで lockf () はこのように実装されているが、 POSIX.1 では lockf ( ... ) と fcntl (2) のロックとの関係は規定されていない。 おそらく、移植性が必要なアプリケーションでは、 lockf () と fcntl (2) のロックを混 ... butes (7) を参照。 インターフェース 属性 値 lockf () Thread safety MT-Safe 準拠 POSIX.1-2001, POSIX.1-2008, SVr4. 関連項目 fcntl (2), flock (2) Linux カーネルソースの Documentation/filesystems ディレクトリにある locks.txt と mandatory-locking.txt (以前 ...
https://man.mtool.work/man/20260915/man3/lockf.3.html
Man page of PIPE 7552
PIPE Section: Linux Programmer's Manual (7) Updated: 2014-07-08 Index JM Home Page 名前 pipe - パイプと FIFO の概要 説明 パイプと FIFO (名前付きパイプともいう) は、 単方向のプロセス間通信チャネルを提供する。 パイプには「読み出し側」と「書き ... 分な量のパイプからの読み出しが 行われるまで停止する。 非停止 (nonblocking) I/O を使うこともできる。 非停止 I/O を使うには、 fcntl (2) F_SETFL 操作を使って、 O_NONBLOCK オープンファイル状態フラグを有効にする。 パイプにより提供される通信チャネルは「バイト ... 量は 65536 バイトである。 Linux 2.6.35 以降では、パイプの容量のデフォルト値は 65536 バイトだが、 パイプの容量を参照、設定を fcntl (2) の F_GETPIPE_SZ と F_SETPIPE_SZ 操作を使って行うことができる。 詳細は fcntl (2) 参照。 PIPE_BUF POSIX.1-2001 では、 PI ... の読み出し側に O_ASYNC フラグをセットすると、パイプに新たな入力があるとシグナル (デフォルトでは SIGIO ) が生成される (詳細は fcntl (2) を参照)。 Linux では、 パイプと FIFO に対する O_ASYNC はカーネル 2.6 以降でのみサポートされている。 移植に関する注意 い ...
https://man.mtool.work/man/20260915/man7/pipe.7.html
Man page of DUP 7182
DUP Section: Linux Programmer's Manual (2) Updated: 2020-11-01 Index JM Home Page 名前 dup, dup2, dup3 - ファイルディスクリプターを複製する 書式 #include < unistd.h > int dup(int oldfd ); int dup2(int oldfd , int newfd ); #define _GNU_SOURC ... E /* feature_test_macros (7) 参照 */ #include < fcntl.h > /* 定数 O_* の定義の取得 */ #include < unistd.h > int dup3(int oldfd , int newfd , int flags ); 説明 dup () システムコ ... プターはファイルディスクリプターフラグ (close-on-exec flag) を共有しない。複製されたディスクリプターの close-on-exec flag ( fcntl (2) 参照) は off となる。 dup2() dup2 () システムコールは dup () と同じ処理を実行するが、 番号が最も小さい未使用のファイル ... 2001, POSIX.1-2008, SVr4, 4.3BSD. dup3 () は Linux 固有である。 注意 newfd が範囲を超えた時に返されるエラーは、 dup2 () と fcntl( ..., F_DUPFD , ... ) では異っている。 dup2 () が F_DUPFD と同じように EINVAL を返すシステムもある。 newfd がオープンされて ...
https://man.mtool.work/man/20260915/man2/dup.2.html
PREV 1 2 3 4 5 6 7 8 9 10 NEXT

リンク

日本語の文書やマニュアルを配布している個人/プロジェクトへのリンクです。