JM プロジェクトは、主に Linux 関連のマニュアルページの日本語ページを翻訳・公開しています。
... あるいは C++ (つまり、Tcl 以外)から、直接使うこともできる。 libexpect (3)を参照。 "Expect"という名前は、uucpで有名になった send/expect の概念に由来する。 (kermitや他のモデム制御プログラムでも、この概念は使われている) しかし、uucp とは違って Expect は ... トを使っていなければ、 バイナリの名前になる)。 例えば、以下のスクリプトを実行すると、スクリプト名と最初の引数3つを表示する: send_user "$argv0 [lrange $argv 0 2]\n" コマンド Expect は、 Tcl (Tool Command Language)を使用している。 Tcl は、制御フロー(例え ... のコマンドは空文字列を返す。 コマンドは探しやすいようにアルファベット順に並べてある。 しかし、初めて使う方は、最初に spawn , send , expect , interact の説明をこの順番で読んだ方が分かりやすいだろう。 この言語(Expect と Tcl の両方)へのイントロダクションと ... ... _len , unsigned int msg_prio ); #include < time.h > #include < mqueue.h > int mq_timedsend(mqd_t mqdes , const char * msg_ptr , size_t msg_len , unsigned int msg_prio , const struct timespec * abs_timeout ); -lrt ... でリンクする。 glibc 向けの機能検査マクロの要件 ( feature_test_macros (7) 参照): mq_timedsend (): _POSIX_C_SOURCE >= 200112L 説明 mq_send () は、メッセージキュー記述子 mqdes で参照されるメッセージキューに msg_ptr が指 ... ューがすでに一杯の場合 (すなわち、キューに入っているメッセージ数がキューの mq_maxmsg 属性と等しい場合)、デフォルトでは、 mq_send () は、メッセージをキューイングするのに十分な空間ができるか、 関数呼び出しがシグナルハンドラーにより中断されるまで、停止 ( ... ... _len , unsigned int msg_prio ); #include < time.h > #include < mqueue.h > int mq_timedsend(mqd_t mqdes , const char * msg_ptr , size_t msg_len , unsigned int msg_prio , const struct timespec * abs_timeout ); -lrt ... でリンクする。 glibc 向けの機能検査マクロの要件 ( feature_test_macros (7) 参照): mq_timedsend (): _POSIX_C_SOURCE >= 200112L 説明 mq_send () は、メッセージキュー記述子 mqdes で参照されるメッセージキューに msg_ptr が指 ... ューがすでに一杯の場合 (すなわち、キューに入っているメッセージ数がキューの mq_maxmsg 属性と等しい場合)、デフォルトでは、 mq_send () は、メッセージをキューイングするのに十分な空間ができるか、 関数呼び出しがシグナルハンドラーにより中断されるまで、停止 ( ... ... _len , unsigned int msg_prio ); #include < time.h > #include < mqueue.h > int mq_timedsend(mqd_t mqdes , const char * msg_ptr , size_t msg_len , unsigned int msg_prio , const struct timespec * abs_timeout ); -lrt ... でリンクする。 glibc 向けの機能検査マクロの要件 ( feature_test_macros (7) 参照): mq_timedsend (): _POSIX_C_SOURCE >= 200112L 説明 mq_send () は、メッセージキュー記述子 mqdes で参照されるメッセージキューに msg_ptr が指 ... ューがすでに一杯の場合 (すなわち、キューに入っているメッセージ数がキューの mq_maxmsg 属性と等しい場合)、デフォルトでは、 mq_send () は、メッセージをキューイングするのに十分な空間ができるか、 関数呼び出しがシグナルハンドラーにより中断されるまで、停止 ( ... ... size_t len , int flags ); ssize_t sendto(int sockfd , const void * buf , size_t len , int flags , const struct sockaddr * dest_addr , socklen_t addrlen ); ssize_ ... t sendmsg(int sockfd , const struct msghdr * msg , int flags ); 説明 システムコール send (), sendto (), sendmsg () は、もう一方の ... ソケットへメッセージを転送するのに使用される。 send () は、ソケットが 接続された (connected) 状態にある場合にのみ使用できる (つまり、どの相手に送信するかは既知である)。 send ... ... size_t len , int flags ); ssize_t sendto(int sockfd , const void * buf , size_t len , int flags , const struct sockaddr * dest_addr , socklen_t addrlen ); ssize_ ... t sendmsg(int sockfd , const struct msghdr * msg , int flags ); 説明 システムコール send (), sendto (), sendmsg () は、もう一方の ... ソケットへメッセージを転送するのに使用される。 send () は、ソケットが 接続された (connected) 状態にある場合にのみ使用できる (つまり、どの相手に送信するかは既知である)。 send ... ... size_t len , int flags ); ssize_t sendto(int sockfd , const void * buf , size_t len , int flags , const struct sockaddr * dest_addr , socklen_t addrlen ); ssize_ ... t sendmsg(int sockfd , const struct msghdr * msg , int flags ); 説明 システムコール send (), sendto (), sendmsg () は、もう一方の ... ソケットへメッセージを転送するのに使用される。 send () は、ソケットが 接続された (connected) 状態にある場合にのみ使用できる (つまり、どの相手に送信するかは既知である)。 send ... ... . The "bounce" program (which must be run first) raises the case of a string that is placed into the shared memory by the "send" program. Once the data has been modified, the "send" program then prints the contents of the modified shared memory. An e ... xample execution of the two programs is the following: $ ./pshm_ucase_bounce /myshm & [1] 270171 $ ./pshm_ucase_send /myshm hello HELLO Further detail about these programs is provided below. プログラムのソース: pshm_ucase.h The following h ... maps the object into the process's address space, and initializes two POSIX semaphores inside the object to 0. After the "send" program has posted the first of the semaphores, the "bounce" program upper cases the data that has been placed in the mem ... ... . The "bounce" program (which must be run first) raises the case of a string that is placed into the shared memory by the "send" program. Once the data has been modified, the "send" program then prints the contents of the modified shared memory. An e ... xample execution of the two programs is the following: $ ./pshm_ucase_bounce /myshm & [1] 270171 $ ./pshm_ucase_send /myshm hello HELLO Further detail about these programs is provided below. プログラムのソース: pshm_ucase.h The following h ... maps the object into the process's address space, and initializes two POSIX semaphores inside the object to 0. After the "send" program has posted the first of the semaphores, the "bounce" program upper cases the data that has been placed in the mem ... ... ype , const unsigned char * data , int datalen , const unsigned char * newrr , unsigned char * buf , int buflen ); int res_send(const unsigned char * msg , int msglen , unsigned char * answer , int anslen ); int dn_comp(const char * exp_dn , unsigned ... 問い合わせの型 op は通常 QUERY だが、 < arpa/nameser.h > で定義された型のどれでも良い。 newrr は現在使用されていない。 res_send () 関数は、長さ msglen の msg に決められた書式 で問い合わせ、 answer に長さ anslen の回答を返す。 まだ呼び出されていなけれ ... 。 デフォルトでは glibc のデバッグは有効になっていない。 RES_AAONLY 権威付けされた (authoritative) 回答のみ受け入れる。 res_send () は、最終的に権威付けされた回答を得られるか、エラーが返される まで続行する。 [現在実装されていない] RES_USEVC 問い合わせ ... 日本語の文書やマニュアルを配布している個人/プロジェクトへのリンクです。