JM プロジェクトは、主に Linux 関連のマニュアルページの日本語ページを翻訳・公開しています。
... uest_info *request_init(request, key, value, ..., 0) struct request_info *request; struct request_info *request_set(request, key, value, ..., ... 0) struct request_info *request; int hosts_access(request) struct request_info *request; int hosts_ctl(daemon, client_name, client_addr, cli ... 供する。このアクセスコントロールには、ルールに合 致した場合、シェルコマンドが実行できるというオプション機能も含ま れている。 request_init() は、クライアントのリクエストについての情報のスト ラクチャを初期化する。request_set() は、すでに初期化されているリ ク ... ... offset */ volatile void *aio_buf; /* Location of buffer */ size_t aio_nbytes; /* Length of transfer */ int aio_reqprio; /* Request priority */ struct sigevent aio_sigevent; /* Notification method */ int aio_lio_opcode; /* Operation to be performed; lio_ ... いる。 $ ./a.out /dev/stdin /dev/stdin opened /dev/stdin on descriptor 3 opened /dev/stdin on descriptor 4 aio_error(): for request 0 (descriptor 3): In progress for request 1 (descriptor 4): In progress abc I/O completion signal received aio_error(): fo ... r request 0 (descriptor 3): I/O succeeded for request 1 (descriptor 4): In progress aio_error(): for request 1 (descriptor 4): In pr ... ... s packetsize ] [- t ttl ] [- w waittime ] [- I interface address ] 説明 ping は ICMP の ECHO_REQUEST データグラムを用いて、指定したホストやゲートウェイからの ICMP ECHO_RESPONSE を引き出す。 ECHO_REQUEST データグラム (``ping ... od ping (ping の洪水)。パケットが戻ってくるとすぐ、 もしくは、1 秒間に 100 回の、いずれか多い回数だけパケットを送る。 ECHO_REQUEST が送られるたびにピリオド ``.'' が表示され、 ECHO_REPLY を受け取るごとに、バックスペースが表示される (訳注: すなわち ``.'' ... のパケットの間に 1 秒待つ。このオプションは - f オプションとは同時に指定できない。 -l preload 指定した preload の値だけ ECHO_REQUEST パケットを出来るだけ速く送信し、通常の動作に戻る。 スーパーユーザーだけがこのオプションを使用できる。 -n 数値出力のみ。 ホ ... ... という書き方が有効になる前から) char * argp と表記されている。したがって、この文章でもそう名付けることとする。 ioctl () の request には、 その引き数が 入力 パラメーターと 出力 パラメーターのどちらであるかの区別や、 argp 引き数のバイト単位のサイズ、といっ ... た情報がエンコードされている。 ioctl () の request を指定するためのマクロ (macro) と定義は < sys/ioctl.h > ファイルにある。 返り値 たいていの場合、成功するとゼロが返される。 ... 設定される。 エラー EBADF fd が無効なディスクリプターである。 EFAULT argp がアクセス不可能なメモリーを参照している。 EINVAL request または argp が不正である。 ENOTTY fd がキャラクター型のスペシャルデバイスを参照していない。 ENOTTY 指定されたリクエストはデ ... ... 定義された gaicb 構造体で規定される。 struct gaicb { const char *ar_name; const char *ar_service; const struct addrinfo *ar_request; struct addrinfo *ar_result; }; この構造体の要素は getaddrinfo (3) の引数に対応している。 したがって、 ar_name はインターネ ... ットホストを示す node 引数に、 ar_service はサービスを示す service 引数に対応する。 ar_request 要素は、 返されたソケットアドレス構造体を選択する基準を示す hints 引数に対応する。 最後の ar_request は res 引数に対応する ... セッションの実行例は以下のようになる。 $ ./a.out > a ftp.us.kernel.org enoent.linuxfoundation.org gnu.cz > c 2 [2] gnu.cz: Request not canceled > w 0 1 [00] ftp.us.kernel.org : Finished > l [00] ftp.us.kernel.org : 216.165.129.139 [01] enoent.linuxfound ... ... 定義された gaicb 構造体で規定される。 struct gaicb { const char *ar_name; const char *ar_service; const struct addrinfo *ar_request; struct addrinfo *ar_result; }; この構造体の要素は getaddrinfo (3) の引数に対応している。 したがって、 ar_name はインターネ ... ットホストを示す node 引数に、 ar_service はサービスを示す service 引数に対応する。 ar_request 要素は、 返されたソケットアドレス構造体を選択する基準を示す hints 引数に対応する。 最後の ar_request は res 引数に対応する ... セッションの実行例は以下のようになる。 $ ./a.out > a ftp.us.kernel.org enoent.linuxfoundation.org gnu.cz > c 2 [2] gnu.cz: Request not canceled > w 0 1 [00] ftp.us.kernel.org : Finished > l [00] ftp.us.kernel.org : 216.165.129.139 [01] enoent.linuxfound ... ... 定義された gaicb 構造体で規定される。 struct gaicb { const char *ar_name; const char *ar_service; const struct addrinfo *ar_request; struct addrinfo *ar_result; }; この構造体の要素は getaddrinfo (3) の引数に対応している。 したがって、 ar_name はインターネ ... ットホストを示す node 引数に、 ar_service はサービスを示す service 引数に対応する。 ar_request 要素は、 返されたソケットアドレス構造体を選択する基準を示す hints 引数に対応する。 最後の ar_request は res 引数に対応する ... セッションの実行例は以下のようになる。 $ ./a.out > a ftp.us.kernel.org enoent.linuxfoundation.org gnu.cz > c 2 [2] gnu.cz: Request not canceled > w 0 1 [00] ftp.us.kernel.org : Finished > l [00] ftp.us.kernel.org : 216.165.129.139 [01] enoent.linuxfound ... ... 定義された gaicb 構造体で規定される。 struct gaicb { const char *ar_name; const char *ar_service; const struct addrinfo *ar_request; struct addrinfo *ar_result; }; この構造体の要素は getaddrinfo (3) の引数に対応している。 したがって、 ar_name はインターネ ... ットホストを示す node 引数に、 ar_service はサービスを示す service 引数に対応する。 ar_request 要素は、 返されたソケットアドレス構造体を選択する基準を示す hints 引数に対応する。 最後の ar_request は res 引数に対応する ... セッションの実行例は以下のようになる。 $ ./a.out > a ftp.us.kernel.org enoent.linuxfoundation.org gnu.cz > c 2 [2] gnu.cz: Request not canceled > w 0 1 [00] ftp.us.kernel.org : Finished > l [00] ftp.us.kernel.org : 216.165.129.139 [01] enoent.linuxfound ... ... プログラムを実行した際の実行例である。 $ ./a.out thread_func(): started; cancellation disabled main(): sending cancellation request thread_func(): about to enable cancellation main(): thread was canceled プログラムのソース #include < pthread.h > #include ... void *ignored_argument) { int s; /* Disable cancellation for a while, so that we don't immediately react to a cancellation request */ s = pthread_setcancelstate(PTHREAD_CANCEL_DISABLE, NULL); if (s != 0) handle_error_en(s, "pthread_setcancelstate"); pri ... d!\n"); return NULL; } int main(void) { pthread_t thr; void *res; int s; /* Start a thread and then send it a cancellation request */ s = pthread_create(&thr, NULL, &thread_func, NULL); if (s != 0) handle_error_en(s, "pthread_create"); sleep (2); /* Giv ... ... ロードキャストアドレスに送られたすべての ICMP_ECHO 要求を無視する。 icmp_echoreply_rate (Linux 2.2 から 2.4.9 まで) ICMP_ECHOREQUEST パケットに応答する ICMP_ECHOREPLY パケットの最大送信レート。 icmp_errors_use_inbound_ifaddr (ブール値; デフォルト: 無効; L ... ルソースファイル include/linux/icmp.h を参照): 0 Echo Reply 3 Destination Unreachable * 4 Source Quench * 5 Redirect 8 Echo Request B Time Exceeded * C Parameter Problem * D Timestamp Request E Timestamp Reply F Info Request G Info Reply H Address Mask R ... 日本語の文書やマニュアルを配布している個人/プロジェクトへのリンクです。