JM プロジェクトは、主に Linux 関連のマニュアルページの日本語ページを翻訳・公開しています。
... cros (7) 参照 */ #include < errno.h > extern char * program_invocation_name ; extern char * program_invocation_short_name ; 説明 program_invocation_name は、呼び出し元プログラムの起動 ... に使用された名前を保持する。 内容は main () の argv[0] の値と同じだが、 program_invocation_name の方はスコープがグローバルである点が異なる。 program_invocation_short_name は、呼び出し元プログラムの起動に ... 使用された名前の basename 部分を 保持する。つまり、この変数の内容は、最後のスラッシュ (/) とそれより前の 部分がある場合、 program_invocation_name からこの部分を削除したものとなる。 これらの変数は glibc のランタイムスタートアップコードで 自動的に初期化さ ... ... cros (7) 参照 */ #include < errno.h > extern char * program_invocation_name ; extern char * program_invocation_short_name ; 説明 program_invocation_name は、呼び出し元プログラムの起動 ... に使用された名前を保持する。 内容は main () の argv[0] の値と同じだが、 program_invocation_name の方はスコープがグローバルである点が異なる。 program_invocation_short_name は、呼び出し元プログラムの起動に ... 使用された名前の basename 部分を 保持する。つまり、この変数の内容は、最後のスラッシュ (/) とそれより前の 部分がある場合、 program_invocation_name からこの部分を削除したものとなる。 これらの変数は glibc のランタイムスタートアップコードで 自動的に初期化さ ... ... ram [ version ] rpcinfo - b program version rpcinfo - d program version 説明 rpcinfo は、 RPC サーバに対して RPC 呼び出しを行い、得られた情報を表示する。 オプ ... を表示する。 host が指定されていない場合、 hostname (1) で返される値がデフォルトになる。 -u UDP を用いて、指定した host 上の program の手続き 0 に対し、 RPC 呼び出しを行う。 そして、応答があったか否かを報告する。 -t TCP を用いて、指定した host 上の progra ... や - u オプションのポート番号として、 portmapper に与えられたポート番号ではなく、 portnum を使う。 -b UDP を用いて、引き数 program と version で指定されたプログラムの手続き 0 に対して、 RPC ブロードキャストを行う。 そして、応答があった全てのホストについ ... ... ブジェクトの実装は専用の tmpfs (5) ファイルシステムを使用する。そのファイルシステムは通常 /dev/shm にマウントされる。 例 The programs below employ POSIX shared memory and POSIX unnamed semaphores to exchange a piece of data. The "bounce" program (which mu ... st 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 example ex ... ecution of the two programs is the following: $ ./pshm_ucase_bounce /myshm & [1] 270171 $ ./pshm_ucase_send /myshm hello HELLO Further detail about t ... ... ブジェクトの実装は専用の tmpfs (5) ファイルシステムを使用する。そのファイルシステムは通常 /dev/shm にマウントされる。 例 The programs below employ POSIX shared memory and POSIX unnamed semaphores to exchange a piece of data. The "bounce" program (which mu ... st 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 example ex ... ecution of the two programs is the following: $ ./pshm_ucase_bounce /myshm & [1] 270171 $ ./pshm_ucase_send /myshm hello HELLO Further detail about t ... ... executes the program referred to by pathname . This causes the program that is currently being run by the calling process to be replaced with a ... new program, with newly initialized stack, heap, and (initialized and uninitialized) data segments. pathname は、バイナリ実行形式か、 ... 者の詳細は、後ろの「インタープリタースクリプト」の節を参照のこと。 argv is an array of pointers to strings passed to the new program as its command-line arguments. By convention, the first of these strings (i.e., argv[0] ) should contain the filename asso ... ... sibly readable---core dump containing an image of the executable.) * The process is executing a set-user-ID (set-group-ID) program that is owned by a user (group) other than the real user (group) ID of the process, or the process is executing a program ... nux) are still active and may prevent the handler from accessing details about the crashed process via /proc/[pid] . * The program pathname is interpreted with respect to the initial mount namespace as it is always executed there. It is not affected by ... で区切る (1行の最大長は 128 バイトが上限である)。 * The RLIMIT_CORE limit is not enforced for core dumps that are piped to a program via this mechanism. /proc/sys/kernel/core_pipe_limit When collecting core dumps via a pipe to a user-space program, it can ... ... ず、 errno もセットされない。 したがって、 読み出しを行うアプリケーションではエラーを検出する方法はない。 例 The two example programs below demonstrate the usage of the fanotify API. Example program: fanotify_example.c The first program is an example of f ... anotify being used with its event object information passed in the form of a file descriptor. The program marks the mount point passed as a command-line argument and waits for events of type FAN_OPEN_PERM and FAN_CLOSE_WRITE . W ... hen a permission event occurs, a FAN_ALLOW response is given. The following shell session shows an example of running this program. This session involved editing the file /home/user/temp/notes . Before the file was opened, a FAN_OPEN_PERM event occurred ... ... LT fds points outside the process's accessible address space. The array given as argument was not contained in the calling program's address space. EINTR 要求されたイベントのどれかが起こる前にシグナルが発生した。 signal (7) 参照。 EINVAL nfds の値が RLI ... ystem fails to allocate kernel-internal resources, rather than ENOMEM as Linux does. POSIX permits this behavior. Portable programs may wish to check for EAGAIN and loop, just as with EINTR . いくつかの実装では、値 -1 を持った非標準の定数 INFTIM が定義さ ... 2) の「バグ」の節に書かれている、誤った準備完了通知 (spurious readiness notifications) についての議論を参照のこと。 例 The program below opens each of the files named in its command-line arguments and monitors the resulting file descriptors for readines ... ... LT fds points outside the process's accessible address space. The array given as argument was not contained in the calling program's address space. EINTR 要求されたイベントのどれかが起こる前にシグナルが発生した。 signal (7) 参照。 EINVAL nfds の値が RLI ... ystem fails to allocate kernel-internal resources, rather than ENOMEM as Linux does. POSIX permits this behavior. Portable programs may wish to check for EAGAIN and loop, just as with EINTR . いくつかの実装では、値 -1 を持った非標準の定数 INFTIM が定義さ ... 2) の「バグ」の節に書かれている、誤った準備完了通知 (spurious readiness notifications) についての議論を参照のこと。 例 The program below opens each of the files named in its command-line arguments and monitors the resulting file descriptors for readines ... 日本語の文書やマニュアルを配布している個人/プロジェクトへのリンクです。