JM プロジェクトは、主に Linux 関連のマニュアルページの日本語ページを翻訳・公開しています。
... rg で規定される。 fd 引数は操作対象の perfmon コンテキストを指定する。 cmd に指定できる値は以下のとおりである。 PFM_CREATE_CONTEXT perfmonctl(int fd , PFM_CREATE_CONTEXT, pfarg_context_t * ctxt , 1); コンテキストを用意する。 fd 引数は無視される。 新しい ... (int fd , PFM_START, NULL, 0); 監視を開始する。 PFM_STOP perfmonctl(int fd , PFM_STOP, NULL, 0); 監視を停止する。 PFM_LOAD_CONTEXT perfmonctl(int fd , PFM_LOAD_CONTEXT, pfarg_load_t * largs , 1); 指定したコンテキストをスレッドに接続する。 PFM_UNLOAD_CON ... TEXT perfmonctl(int fd , PFM_UNLOAD_CONTEXT, NULL, 0); 指定したコンテキストをスレッドが切り離す。 PFM_RESTART perfmonctl(int fd , PFM_RESTART, NULL, 0); オーバーフロー ... ... > #include < fcntl.h > #define handle_error(msg) \ do { perror(msg); exit(EXIT_FAILURE); } while (0) int main(void) { int context, fd, spu_status; uint32_t instruction, npc; context = spu_create("/spu/example-context", 0, 0755); if (context == -1) hand ... * write a 'stop 0x1234' instruction to the SPU's * local store memory */ instruction = 0x00001234; fd = open("/spu/example-context/mem", O_RDWR); if (fd == -1) handle_error("open"); write(fd, &instruction, sizeof(instruction)); /* set npc to the startin ... ince we wrote the instruction at the * start of the mem file, the entry point will be 0x0 */ npc = 0; spu_status = spu_run(context, &npc, NULL); if (spu_status == -1) handle_error("open"); /* we should see a status code of 0x1234002: * 0x00000002 (spu w ... ... BEL ] [ -S FILE ] [ -U LINES ] [ -W COLUMNS ] [ -X FILE ] [ --binary ] [ --brief ] [ --changed-group-format= fORMAT ] [ --context [ = LINES ]] [ --diff-program= PROGRAM ] [ --ed ] [ --exclude= PATTERN ] [ --exclude-from= FILE ] [ --expand-tabs ] [ --fo ... 1 行ずつ比較を行う。 -b, --ignore-space-change スペースの数だけが違う場合には違いを無視する。 不完全な行は無視される。 -c context 出力形式を用いる。 -d, --minimal アルゴリズムを変更し、より小さな差分が生成できるようにする。 これを使うと diff は遅くなる ... e-by-side side-by-side 出力形式を用いる。 -B, --ignore-blank-lines 空行を挿入・削除するだけの変更を無視する。 -C LINES , --context[= LINES ] context 出力形式を用い、 LINES 行 (整数値) のコンテクストを表示する。 LINES が与えられなければ 3 行表示する。 pa ... ... tream and datagram socket pairs created using socketpair (2). SO_PEERSEC This read-only socket option returns the security context of the peer socket connected to this socket. By default, this will be the same as the security context of the process that ... missions. The argument to getsockopt (2) is a pointer to a buffer of the specified length in bytes into which the security context string will be copied. If the buffer length is less than the length of the security context string, then getsockopt (2) re ... is not guaranteed to be sufficient. Resizing the buffer to the returned length and retrying may be necessary. The security context string may include a terminating null character in the returned length, but is not guaranteed to do so: a security context ... ... 行が成功するには、コンテキストを注意深く選択しなければなりません。 プログラムを異なるセキュリティコンテキストで実行します。 CONTEXT も COMMAND も指定しない場合は現在のセキュリティコンテキストを表示 します。 長いオプションで必須となっている引数は短いオプシ ... ョンでも必須です。 CONTEXT 完全なセキュリティコンテキスト -c , --compute 修正前にコンテキスト移行処理を計算する -t , --type = ,TYPE/ タイプ (親のロー ... ... t TYPE/ ] ,FILE/ ... chcon [ ,OPTION/ ]... ,--reference=RFILE FILE/ ... 説明 各 FILE の SELinux セキュリティコンテキストを CONTEXT に変更します。 --reference がある場合、各 FILE のセキュリティコンテキストを RFILE のものに 変更します。 長いオプションで必 ... -root '/' を特別扱いしません。 (デフォルト) --preserve-root '/' に対する再帰的な操作を失敗させます。 --reference = ,RFILE/ CONTEXT の値を指定するのではなく RFILE のセキュリティコンテキストを使用します。 -R , --recursive ファイルとディレクトリを再帰的に操 ... ... struct timespec' の定義 */ int io_getevents(aio_context_t ctx_id , long min_nr , long nr , struct io_event * events , struct timespec * timeout ); 注 : このシステムコールには gli ... _getevents () system call attempts to read at least min_nr events and up to nr events from the completion queue of the AIO context specified by ctx_id . The timeout argument specifies the amount of time to wait for events, and is specified as a relative ... している io_getevents ラッパー関数を呼び出したい 場合がほとんどであろう。 libaio のラッパー関数では ctx_id 引数に別の型 ( io_context_t ) が使われることに注意すること。 また、 libaio のラッパー関数は、エラーの通知が通常の C ライブラリの 慣習にしたがっておら ... ... 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 type SCM_SECURITY retrieved using recvmsg (2). This option is supported only ... ven as an argument to setsockopt (2) and returned as the result of getsockopt (2) is an integer boolean flag. The security context returned in the SCM_SECURITY ancillary message is of the same format as the one described under the SO_PEERSEC option belo ... 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. By default, this will be the same as the security context of the process that ... ... 供している io_destroy ラッパー関数を呼び出したい 場合がほとんどであろう。 libaio のラッパー関数では ctx_id 引数に別の型 ( io_context_t ) が使われることに注意すること。 また、 libaio のラッパー関数は、エラーの通知が通常の C ライブラリの 慣習にしたがっておら ... ... 供している io_cancel ラッパー関数を呼び出したい 場合がほとんどであろう。 libaio のラッパー関数では ctx_id 引数に別の型 ( io_context_t ) が使われることに注意すること。 また、 libaio のラッパー関数は、エラーの通知が通常の C ライブラリの 慣習にしたがっておら ... 日本語の文書やマニュアルを配布している個人/プロジェクトへのリンクです。