JM プロジェクトは、主に Linux 関連のマニュアルページの日本語ページを翻訳・公開しています。
... 格納して返す。この構造体は以下のように定義されている: struct mq_attr { long mq_flags; /* フラグ: 0 か O_NONBLOCK */ long mq_maxmsg; /* キューの最大メッセージ数 */ long mq_msgsize; /* 最大メッセージサイズ (バイト単位) */ long mq_curmsgs; /* キューに現在入 ... のフィールドは mq_open (3) でキューが作成される際に初期化される。 このフィールドに現れるフラグは O_NONBLOCK だけである。 mq_maxmsg と mq_msgsize フィールドは mq_open (3) でメッセージキューが作成される際にセットされる。 mq_maxmsg フィールドは、 mq_send ( ... を使うと、 attr 引数に NULL を指定して mq_open (3) を呼び出した際に作成されるメッセージキューに割り当てられるデフォルトの mq_maxmsg と mq_msgsize の値を表示できる。 このプログラムの実行例を以下に示す。 $ ./a.out /testq Maximum # of messages on queue: 10 ... ... 格納して返す。この構造体は以下のように定義されている: struct mq_attr { long mq_flags; /* フラグ: 0 か O_NONBLOCK */ long mq_maxmsg; /* キューの最大メッセージ数 */ long mq_msgsize; /* 最大メッセージサイズ (バイト単位) */ long mq_curmsgs; /* キューに現在入 ... のフィールドは mq_open (3) でキューが作成される際に初期化される。 このフィールドに現れるフラグは O_NONBLOCK だけである。 mq_maxmsg と mq_msgsize フィールドは mq_open (3) でメッセージキューが作成される際にセットされる。 mq_maxmsg フィールドは、 mq_send ( ... を使うと、 attr 引数に NULL を指定して mq_open (3) を呼び出した際に作成されるメッセージキューに割り当てられるデフォルトの mq_maxmsg と mq_msgsize の値を表示できる。 このプログラムの実行例を以下に示す。 $ ./a.out /testq Maximum # of messages on queue: 10 ... ... low. This structure is defined as follows: struct mq_attr { long mq_flags; /* フラグ (mq_open() では無視される) */ long mq_maxmsg; /* キューの最大メッセージ数 */ long mq_msgsize; /* 最大メッセージサイズ (バイト単位) */ long mq_curmsgs; /* キューに現在入 ... っているメッセージ数 (mq_open() では無視される) */ }; Only the mq_maxmsg and mq_msgsize fields are employed when calling mq_open (); the values in the remaining fields are ignored. attr が NULL の ... me doesn't follow the format in mq_overview (7). EINVAL oflag に O_CREAT が指定され、かつ attr が NULL 以外だが、 attr->mq_maxmsg か attr->mq_msqsize が不正であった。 これらのフィールドは両方とも 0 より大きくなければならない。 プロセスが特権を持たない ... ... low. This structure is defined as follows: struct mq_attr { long mq_flags; /* フラグ (mq_open() では無視される) */ long mq_maxmsg; /* キューの最大メッセージ数 */ long mq_msgsize; /* 最大メッセージサイズ (バイト単位) */ long mq_curmsgs; /* キューに現在入 ... っているメッセージ数 (mq_open() では無視される) */ }; Only the mq_maxmsg and mq_msgsize fields are employed when calling mq_open (); the values in the remaining fields are ignored. attr が NULL の ... me doesn't follow the format in mq_overview (7). EINVAL oflag に O_CREAT が指定され、かつ attr が NULL 以外だが、 attr->mq_maxmsg か attr->mq_msqsize が不正であった。 これらのフィールドは両方とも 0 より大きくなければならない。 プロセスが特権を持たない ... ... he user creates counts (until it is removed) against this limit according to the formula: Since Linux 3.5: bytes = attr.mq_maxmsg * sizeof(struct msg_msg) + min(attr.mq_maxmsg, MQ_PRIO_MAX) * sizeof(struct posix_msg_tree_node)+ /* オーバーヘッド分 */ a ... ttr.mq_maxmsg * attr.mq_msgsize; /* メッセージデータ分 */ Linux 3.4 and earlier: bytes = attr.mq_maxmsg * sizeof(struct msg_msg *) + /* ... オーバーヘッド分 */ attr.mq_maxmsg * attr.mq_msgsize; /* メッセージデータ分 */ ここで attr は mq_attr 構造体であり、 mq_open (3) の第 4 引数として指定される。 ... ... he user creates counts (until it is removed) against this limit according to the formula: Since Linux 3.5: bytes = attr.mq_maxmsg * sizeof(struct msg_msg) + min(attr.mq_maxmsg, MQ_PRIO_MAX) * sizeof(struct posix_msg_tree_node)+ /* オーバーヘッド分 */ a ... ttr.mq_maxmsg * attr.mq_msgsize; /* メッセージデータ分 */ Linux 3.4 and earlier: bytes = attr.mq_maxmsg * sizeof(struct msg_msg *) + /* ... オーバーヘッド分 */ attr.mq_maxmsg * attr.mq_msgsize; /* メッセージデータ分 */ ここで attr は mq_attr 構造体であり、 mq_open (3) の第 4 引数として指定される。 ... ... he user creates counts (until it is removed) against this limit according to the formula: Since Linux 3.5: bytes = attr.mq_maxmsg * sizeof(struct msg_msg) + min(attr.mq_maxmsg, MQ_PRIO_MAX) * sizeof(struct posix_msg_tree_node)+ /* オーバーヘッド分 */ a ... ttr.mq_maxmsg * attr.mq_msgsize; /* メッセージデータ分 */ Linux 3.4 and earlier: bytes = attr.mq_maxmsg * sizeof(struct msg_msg *) + /* ... オーバーヘッド分 */ attr.mq_maxmsg * attr.mq_msgsize; /* メッセージデータ分 */ ここで attr は mq_attr 構造体であり、 mq_open (3) の第 4 引数として指定される。 ... ... he user creates counts (until it is removed) against this limit according to the formula: Since Linux 3.5: bytes = attr.mq_maxmsg * sizeof(struct msg_msg) + min(attr.mq_maxmsg, MQ_PRIO_MAX) * sizeof(struct posix_msg_tree_node)+ /* オーバーヘッド分 */ a ... ttr.mq_maxmsg * attr.mq_msgsize; /* メッセージデータ分 */ Linux 3.4 and earlier: bytes = attr.mq_maxmsg * sizeof(struct msg_msg *) + /* ... オーバーヘッド分 */ attr.mq_maxmsg * attr.mq_msgsize; /* メッセージデータ分 */ ここで attr は mq_attr 構造体であり、 mq_open (3) の第 4 引数として指定される。 ... ... he user creates counts (until it is removed) against this limit according to the formula: Since Linux 3.5: bytes = attr.mq_maxmsg * sizeof(struct msg_msg) + min(attr.mq_maxmsg, MQ_PRIO_MAX) * sizeof(struct posix_msg_tree_node)+ /* オーバーヘッド分 */ a ... ttr.mq_maxmsg * attr.mq_msgsize; /* メッセージデータ分 */ Linux 3.4 and earlier: bytes = attr.mq_maxmsg * sizeof(struct msg_msg *) + /* ... オーバーヘッド分 */ attr.mq_maxmsg * attr.mq_msgsize; /* メッセージデータ分 */ ここで attr は mq_attr 構造体であり、 mq_open (3) の第 4 引数として指定される。 ... ... he user creates counts (until it is removed) against this limit according to the formula: Since Linux 3.5: bytes = attr.mq_maxmsg * sizeof(struct msg_msg) + min(attr.mq_maxmsg, MQ_PRIO_MAX) * sizeof(struct posix_msg_tree_node)+ /* オーバーヘッド分 */ a ... ttr.mq_maxmsg * attr.mq_msgsize; /* メッセージデータ分 */ Linux 3.4 and earlier: bytes = attr.mq_maxmsg * sizeof(struct msg_msg *) + /* ... オーバーヘッド分 */ attr.mq_maxmsg * attr.mq_msgsize; /* メッセージデータ分 */ ここで attr は mq_attr 構造体であり、 mq_open (3) の第 4 引数として指定される。 ... 日本語の文書やマニュアルを配布している個人/プロジェクトへのリンクです。