JM プロジェクトは、主に Linux 関連のマニュアルページの日本語ページを翻訳・公開しています。
... y in which the socket is created. On Linux, connecting to a stream socket object requires write permission on that socket; sending a datagram to a datagram socket likewise requires write permission on that socket. POSIX does not make any statement about ... 設定でき、 getsockopt (2) で取得ができる。 SO_PASSCRED Enabling this socket option causes receipt of the credentials of the sending process in an SCM_CREDENTIALS ancillary message in each subsequently received message. The returned credentials are those ... として渡される。 この構造体は < sys/socket.h > で以下のように定義されている。 struct ucred { pid_t pid; /* Process ID of the sending process */ uid_t uid; /* User ID of the sending process */ gid_t gid; /* Group ID of the sending process */ }; glibc 2.8 以 ... ... Linux: have the CAP_KILL capability in the user namespace of the target process), or the real or effective user ID of the sending process must equal the real or saved set-user-ID of the target process. In the case of SIGCONT , it suffices when the send ... ... シェルセッションはこのプログラムを実行した際の実行例である。 $ ./a.out thread_func(): started; cancellation disabled main(): sending cancellation request thread_func(): about to enable cancellation main(): thread was canceled プログラムのソース #include < ... L); if (s != 0) handle_error_en(s, "pthread_create"); sleep (2); /* Give thread a chance to get started */ printf("main(): sending cancellation request\n"); s = pthread_cancel(thr); if (s != 0) handle_error_en(s, "pthread_cancel"); /* Join with thread t ... ... ットに渡され、 その後で他のプロトコルハンドラー (カーネルのプロトコルモジュールなど) に渡される。 アドレスのフォーマット For sending and receiving datagrams ( sendto (2), recvfrom (2), and similar), raw sockets use the standard sockaddr_in address structu ... re defined in ip (7). The sin_port field could be used to specify the IP protocol number, but it is ignored for sending in Linux 2.2 and later, and should be always set to 0 (see BUGS). For incoming packets, sin_port is set to zero. ソケットオ ... ... */ int si_trapno; /* Trap number that caused hardware-generated signal (unused on most architectures) */ pid_t si_pid; /* Sending process ID */ uid_t si_uid; /* Real user ID of sending process */ int si_status; /* Exit value or signal */ clock_t si_uti ... ... */ int si_trapno; /* Trap number that caused hardware-generated signal (unused on most architectures) */ pid_t si_pid; /* Sending process ID */ uid_t si_uid; /* Real user ID of sending process */ int si_status; /* Exit value or signal */ clock_t si_uti ... ... ョンを 引数に与えたバッファーに取得できる。 IP_PASSSEC (Linux 2.6.17 以降) If labeled IPSEC or NetLabel is configured on the sending and receiving hosts, this option enables receiving of the security context of the peer socket in an ancillary message of t ... SOURCE_MEMBERSHIP の項に説明がある。 SO_PEERSEC (Linux 2.6.17 以降) If labeled IPSEC or NetLabel is configured on both the sending and receiving hosts, this read-only socket option returns the security context of the peer socket connected to this socket ... ... 全てのジョブのステータスを表示します。出力例を以下に示します。 bugsA027h bugs ian 04-01 13:50 Executing rmail ian@airs.com (sending 1283 bytes) フォーマットは、以下の通りです。 jobid system user queue-date command (size) jobid は、 --kill もしくは --reju ... ... ssible on the file descriptor. The fcntl () F_SETSIG command can be used to obtain delivery of a signal other than SIGIO . Sending a signal to the owner process (group) specified by F_SETOWN is subject to the same permissions checks as are described for ... kill (2), where the sending process is the one that employs F_SETOWN (but see BUGS below). If this permission check fails, then the signal is silently ... ... ssible on the file descriptor. The fcntl () F_SETSIG command can be used to obtain delivery of a signal other than SIGIO . Sending a signal to the owner process (group) specified by F_SETOWN is subject to the same permissions checks as are described for ... kill (2), where the sending process is the one that employs F_SETOWN (but see BUGS below). If this permission check fails, then the signal is silently ... 日本語の文書やマニュアルを配布している個人/プロジェクトへのリンクです。