JM プロジェクトは、主に Linux 関連のマニュアルページの日本語ページを翻訳・公開しています。
... int proj_id ); 説明 ftok () 関数は pathname で与えられたファイル (存在し、アクセス可能でなければならない) のファイル名の識別情報 (identity) と、 pr ... 2) のものと同じである。 属性 この節で使用されている用語の説明については、 attributes (7) を参照。 インターフェース 属性 値 ftok () Thread safety MT-Safe 準拠 POSIX.1-2001, POSIX.1-2008. 注意 いくつかの古いシステムでは、プロトタイプは以下のようになって ... いた。 key_t ftok(char * pathname , char proj_id ); 現在では proj_id は int だが、依然として 8 ビットしか用いられない。 通常は ASCII キャラク ... ... es semget () to create a new semaphore set or retrieve the ID of an existing set. It generates the key for semget () using ftok (3). The first two command-line arguments are used as the pathname and proj_id arguments for ftok (3). The third command-l ... et (). The usage of this program is demonstrated below. We first create two files that will be used to generate keys using ftok (3), create two semaphore sets using those files, and then list the sets using ipcs (1): $ touch mykey mykey2 $ ./t_semget ... 041368 10 mtk 600 2 Next, we demonstrate that when semctl (2) is given the same key (as generated by the same arguments to ftok (3)), it returns the ID of the already existing semaphore set: $ ./t_semget -c mykey p 1 ID = 9 Finally, we demonstrate th ... ... のはおそらく失敗であろう。 IPC_NEW の方がより明確にその機能を表しているだろう。 関連項目 msgctl (2), msgrcv (2), msgsnd (2), ftok (3), capabilities (7), mq_overview (7), sysvipc (7) この文書について この man ページは Linux man-pages プロジェクトのリリー ... ... がより明確にその機能を表しているだろう。 例 shmop (2) を参照。 関連項目 memfd_create (2), shmat (2), shmctl (2), shmdt (2), ftok (3), capabilities (7), shm_overview (7), sysvipc (7) この文書について この man ページは Linux man-pages プロジェクトのリリ ... 日本語の文書やマニュアルを配布している個人/プロジェクトへのリンクです。