JM Project

JM プロジェクトは、主に Linux 関連のマニュアルページの日本語ページを翻訳・公開しています。

Linux マニュアル 一覧

全文・高度検索

per page, with , order by , clip by
Results of 1 - 10 of about 17 for started (0.007 sec.)
Man page of MAKECONTEXT 11759
MAKECONTEXT Section: Linux Programmer's Manual (3) Updated: 2020-12-21 Index JM Home Page 名前 makecontext, swapcontext - ユーザーコンテキストを操作する 書式 #include < ucontext.h > void makecontext(ucontext_t * ucp , void (* func )(), int ... である。 このプログラムを実行すると、以下のような出力が得られる: $ ./a.out main: swapcontext(&uctx_main, &uctx_func2) func2: started func2: swapcontext(&uctx_func2, &uctx_func1) func1: started func1: swapcontext(&uctx_func1, &uctx_func2) func2: returning ... c2; #define handle_error(msg) \ do { perror(msg); exit(EXIT_FAILURE); } while (0) static void func1(void) { printf("func1: started\n"); printf("func1: swapcontext(&uctx_func1, &uctx_func2)\n"); if (swapcontext(&uctx_func1, &uctx_func2) == -1) handle_err ... or("swapcontext"); printf("func1: returning\n"); } static void func2(void) { printf("func2: started\n"); printf("func2: swapcontext(&uctx_func2, &uctx_func1)\n"); if (swapcontext(&uctx_func2, &uctx_func1) == -1) handle_err ...
https://man.mtool.work/man/20260915/man3/makecontext.3.html
Man page of MAKECONTEXT 11759
MAKECONTEXT Section: Linux Programmer's Manual (3) Updated: 2020-12-21 Index JM Home Page 名前 makecontext, swapcontext - ユーザーコンテキストを操作する 書式 #include < ucontext.h > void makecontext(ucontext_t * ucp , void (* func )(), int ... である。 このプログラムを実行すると、以下のような出力が得られる: $ ./a.out main: swapcontext(&uctx_main, &uctx_func2) func2: started func2: swapcontext(&uctx_func2, &uctx_func1) func1: started func1: swapcontext(&uctx_func1, &uctx_func2) func2: returning ... c2; #define handle_error(msg) \ do { perror(msg); exit(EXIT_FAILURE); } while (0) static void func1(void) { printf("func1: started\n"); printf("func1: swapcontext(&uctx_func1, &uctx_func2)\n"); if (swapcontext(&uctx_func1, &uctx_func2) == -1) handle_err ... or("swapcontext"); printf("func1: returning\n"); } static void func2(void) { printf("func2: started\n"); printf("func2: swapcontext(&uctx_func2, &uctx_func1)\n"); if (swapcontext(&uctx_func2, &uctx_func1) == -1) handle_err ...
https://man.mtool.work/man/20260915/man3/swapcontext.3.html
Man page of PTHREAD_CLEANUP_PUSH 11018
PTHREAD_CLEANUP_PUSH Section: Linux Programmer's Manual (3) Updated: 2020-06-09 Index JM Home Page 名前 pthread_cleanup_push, pthread_cleanup_pop - スレッドの キャンセルクリーンアップハンドラーの push/pop を行う 書式 #include < pthread.h > ... たりする。 以下のシェルセッションでは、メインスレッドはもう一つのスレッドに キャンセル要求を送信する。 $ ./a.out New thread started cnt = 0 cnt = 1 Canceling thread Called clean-up handler Thread was canceled; cnt = 0 上記の実行例から、スレッドがキャンセ ... 例では、メインプログラムはグローバル変数を設定して、 もう一つのスレッドが正常終了するようにしている。 $ ./a.out x New thread started cnt = 0 cnt = 1 Thread terminated normally; cnt = 2 上記では、 ( cleanup_pop_arg が 0 なので) クリーンアップハンドラーは 実 ... して、 もう一つのスレッドが正常終了するようにし、さらに cleanup_pop_arg に 0 以外の値を渡している。 $ ./a.out x 1 New thread started cnt = 0 cnt = 1 Called clean-up handler Thread terminated normally; cnt = 0 上記では、スレッドはキャンセルされていないが、 ...
https://man.mtool.work/man/20260915/man3/pthread_cleanup_pop.3.html
Man page of PTHREAD_CLEANUP_PUSH 11018
PTHREAD_CLEANUP_PUSH Section: Linux Programmer's Manual (3) Updated: 2020-06-09 Index JM Home Page 名前 pthread_cleanup_push, pthread_cleanup_pop - スレッドの キャンセルクリーンアップハンドラーの push/pop を行う 書式 #include < pthread.h > ... たりする。 以下のシェルセッションでは、メインスレッドはもう一つのスレッドに キャンセル要求を送信する。 $ ./a.out New thread started cnt = 0 cnt = 1 Canceling thread Called clean-up handler Thread was canceled; cnt = 0 上記の実行例から、スレッドがキャンセ ... 例では、メインプログラムはグローバル変数を設定して、 もう一つのスレッドが正常終了するようにしている。 $ ./a.out x New thread started cnt = 0 cnt = 1 Thread terminated normally; cnt = 2 上記では、 ( cleanup_pop_arg が 0 なので) クリーンアップハンドラーは 実 ... して、 もう一つのスレッドが正常終了するようにし、さらに cleanup_pop_arg に 0 以外の値を渡している。 $ ./a.out x 1 New thread started cnt = 0 cnt = 1 Called clean-up handler Thread terminated normally; cnt = 0 上記では、スレッドはキャンセルされていないが、 ...
https://man.mtool.work/man/20260915/man3/pthread_cleanup_push.3.html
Man page of PTHREAD_CANCEL 10276
PTHREAD_CANCEL Section: Linux Programmer's Manual (3) Updated: 2020-06-09 Index JM Home Page 名前 pthread_cancel - スレッドにキャンセル要求を送る 書式 #include < pthread.h > int pthread_cancel(pthread_t thread ); -pthread でコンパイルしてリ ... _CANCELED かどうかを 確認する。以下のシェルセッションはこのプログラムを実行した際の実行例である。 $ ./a.out thread_func(): started; cancellation disabled main(): sending cancellation request thread_func(): about to enable cancellation main(): thread was ... ancelstate(PTHREAD_CANCEL_DISABLE, NULL); if (s != 0) handle_error_en(s, "pthread_setcancelstate"); printf("thread_func(): started; cancellation disabled\n"); sleep (5); printf("thread_func(): about to enable cancellation\n"); s = pthread_setcancelstate ... hr, NULL, &thread_func, NULL); 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_canc ...
https://man.mtool.work/man/20260915/man3/pthread_cancel.3.html
Man page of PIVOT_ROOT 8293
PIVOT_ROOT Section: Maintenance Commands (8) Updated: Feb 23, 2000 Index JM Home Page 名前 pivot_root - root ファイルシステムを変更する 書式 pivot_root new_root put_old 説明 pivot_root はカレントプロセスの root ファイルシステムを put_old デ ... トし、 init を起動する: ifconfig lo 127.0.0.1 up # for portmap # configure Ethernet or such portmap # for lockd (implicitly started by mount) mount -o ro 10.0.0.1:/my_root /mnt killall portmap # portmap keeps old root busy cd /mnt pivot_root . old_root e ...
https://man.mtool.work/man/20260915/man8/pivot_root.8.html
Man page of TIMERFD_CREATE 8052
TIMERFD_CREATE Section: Linux Programmer's Manual (2) Updated: 2011-09-14 Index JM Home Page 名前 timerfd_create, timerfd_settime, timerfd_gettime - ファイルディスクリプター経由で通知するタイマー 書式 #include < sys/timerfd.h > int timerfd_ ... 三引き数は省略可能である。 以下のシェルのセッションはこのプログラムの使用例を示したものである。 $ a.out 3 1 100 0.000: timer started 3.000: read: 1; total=1 4.000: read: 1; total=2 ^Z # type control-Z to suspend the program [1]+ Stopped ./timerfd3_demo 3 ... ttime(fd, TFD_TIMER_ABSTIME, &new_value, NULL) == -1) handle_error("timerfd_settime"); print_elapsed_time(); printf("timer started\n"); for (tot_exp = 0; tot_exp < max_exp;) { s = read(fd, &exp, sizeof(uint64_t)); if (s != sizeof(uint64_t)) handle_error ...
https://man.mtool.work/man/20260915/man2/timerfd_create.2.html
Man page of TIMERFD_CREATE 8052
TIMERFD_CREATE Section: Linux Programmer's Manual (2) Updated: 2011-09-14 Index JM Home Page 名前 timerfd_create, timerfd_settime, timerfd_gettime - ファイルディスクリプター経由で通知するタイマー 書式 #include < sys/timerfd.h > int timerfd_ ... 三引き数は省略可能である。 以下のシェルのセッションはこのプログラムの使用例を示したものである。 $ a.out 3 1 100 0.000: timer started 3.000: read: 1; total=1 4.000: read: 1; total=2 ^Z # type control-Z to suspend the program [1]+ Stopped ./timerfd3_demo 3 ... ttime(fd, TFD_TIMER_ABSTIME, &new_value, NULL) == -1) handle_error("timerfd_settime"); print_elapsed_time(); printf("timer started\n"); for (tot_exp = 0; tot_exp < max_exp;) { s = read(fd, &exp, sizeof(uint64_t)); if (s != sizeof(uint64_t)) handle_error ...
https://man.mtool.work/man/20260915/man2/timerfd_gettime.2.html
Man page of TIMERFD_CREATE 8052
TIMERFD_CREATE Section: Linux Programmer's Manual (2) Updated: 2011-09-14 Index JM Home Page 名前 timerfd_create, timerfd_settime, timerfd_gettime - ファイルディスクリプター経由で通知するタイマー 書式 #include < sys/timerfd.h > int timerfd_ ... 三引き数は省略可能である。 以下のシェルのセッションはこのプログラムの使用例を示したものである。 $ a.out 3 1 100 0.000: timer started 3.000: read: 1; total=1 4.000: read: 1; total=2 ^Z # type control-Z to suspend the program [1]+ Stopped ./timerfd3_demo 3 ... ttime(fd, TFD_TIMER_ABSTIME, &new_value, NULL) == -1) handle_error("timerfd_settime"); print_elapsed_time(); printf("timer started\n"); for (tot_exp = 0; tot_exp < max_exp;) { s = read(fd, &exp, sizeof(uint64_t)); if (s != sizeof(uint64_t)) handle_error ...
https://man.mtool.work/man/20260915/man2/timerfd_settime.2.html
Man page of SCRIPTLIVE 7793
SCRIPTLIVE Section: User Commands (1) Updated: October 2019 Index JM Home Page 名前 scriptlive - タイミング情報を使って、セッションのタイプスクリプトを再実行する 書式 scriptlive [options] [ -t ] timingfile [ -I|-B ] typescript 説明 このプロ ... 情報を表示して終了する。 -h , --help ヘルプを表示して終了する。 用例 % script --log-timing file.tm --log-in script.in Script started, file is script.out % date <etc, etc> % exit Script done, file is script.out % scriptlive --log-timing file.tm --log-in sc ...
https://man.mtool.work/man/20260915/man1/scriptlive.1.html
PREV 1 2 NEXT

リンク

日本語の文書やマニュアルを配布している個人/プロジェクトへのリンクです。