Results of 1 - 10 of about 31 for assert (0.002 sec.)
- Man page of ASSERT 14268
- ASSERT Section: Linux Programmer's Manual (3) Updated: 2017-09-15 Index JM Home Page 名前 assert - 診断が偽の時にプログラムを中止する 書式 #include < assert.h > void assert(scalar expression ); 説明 このマクロは、プログラマが、プログラムのバ
... 出力を行う) クラッシュで処理するのに役立つ。 expression が偽 (false) の場合 (つまり expression が 0 と比較して等しい場合)、 assert () はエラーメッセージを標準エラーに表示し、 abort (3) を呼び出してプログラムを終了する。エラーメッセージには、以下のように ... 、ファイル名、 assert () の呼び出しを含む関数名、呼び出しのソースコードの行番号、引数のテキストが含まれる。 prog: some_file.c:16: some_func: Ass ... ertion `val == 0' failed. < assert.h > が最後にインクルードされた時点で、 NDEBUG マクロが定義されている場合、 assert () マクロは何のコードも生成せず、したがっ ...
-
https://man.mtool.work/man/20260915/man3/assert.3.html
- Man page of ASSERT_PERROR 14203
- ASSERT_PERROR Section: Linux Programmer's Manual (3) Updated: 2017-09-15 Index JM Home Page 名前 assert_perror - test errnum and abort 書式 #define _GNU_SOURCE /* feature_test_macros (7) 参照 */ #include < assert.h > void assert_perror(int
... errnum ); 説明 最後に < assert.h > がインクルードされた時にマクロ NDEBUG が定義されていた場合、マクロ assert_perror () は何のコードも生成せず、したがって ... 全く何もしない。 そうでない場合、マクロ assert_perror () は標準エラーにエラーメッセージを表示し、 errnum が 0 でない場合には abort (3) を呼び出してプログラムを終了させる ... 返り値 値は返されない。 属性 この節で使用されている用語の説明については、 attributes (7) を参照。 インターフェース 属性 値 assert_perror () Thread safety MT-Safe 準拠 これは GNU による拡張である。 バグ assert マクロの目的は、プログラマがプログラム中のバ ...
-
https://man.mtool.work/man/20260915/man3/assert_perror.3.html
- Man page of ABORT 7910
- ABORT Section: Linux Programmer's Manual (3) Updated: 2020-06-09 Index JM Home Page 名前 abort - プロセスの異常終了を生じさせる 書式 #include < stdlib.h > void abort(void); 説明 abort () 関数は、まず SIGABRT の禁止 (block) を解除してから、
... abort () may include an attempt to effect fclose() on all open streams") と書かれている。 関連項目 gdb (1), sigaction (2), assert (3), exit (3), longjmp (3), raise (3) この文書について この man ページは Linux man-pages プロジェクトのリリース 5.10 の一部 ...
-
https://man.mtool.work/man/20260915/man3/abort.3.html
- Man page of GETSUBOPT 7781
- GETSUBOPT Section: Linux Programmer's Manual (3) Updated: 2020-06-09 Index JM Home Page 名前 getsubopt - 文字列中のサブオプション引数の解釈を行う 書式 #include < stdlib.h > int getsubopt(char ** optionp , char * const * tokens , char ** val
... -o" オプションに続いてサブオプションがあることを 期待している。 #define _XOPEN_SOURCE 500 #include < stdlib.h > #include < assert.h > #include < stdio.h > int main(int argc, char **argv) { enum { RO_OPT = 0, RW_OPT, NAME_OPT }; char *const token[] = { ...
-
https://man.mtool.work/man/20260915/man3/getsubopt.3.html
- Man page of SEM_WAIT 7716
- SEM_WAIT Section: Linux Programmer's Manual (3) Updated: 2020-06-09 Index JM Home Page 名前 sem_wait, sem_timedwait, sem_trywait - セマフォをロックする 書式 #include < semaphore.h > int sem_wait(sem_t * sem ); int sem_trywait(sem_t * sem );
... ス #include < unistd.h > #include < stdio.h > #include < stdlib.h > #include < semaphore.h > #include < time.h > #include < assert.h > #include < errno.h > #include < signal.h > sem_t sem; #define handle_error(msg) \ do { perror(msg); exit(EXIT_FAILURE) ...
-
https://man.mtool.work/man/20260915/man3/sem_timedwait.3.html
- Man page of SEM_WAIT 7716
- SEM_WAIT Section: Linux Programmer's Manual (3) Updated: 2020-06-09 Index JM Home Page 名前 sem_wait, sem_timedwait, sem_trywait - セマフォをロックする 書式 #include < semaphore.h > int sem_wait(sem_t * sem ); int sem_trywait(sem_t * sem );
... ス #include < unistd.h > #include < stdio.h > #include < stdlib.h > #include < semaphore.h > #include < time.h > #include < assert.h > #include < errno.h > #include < signal.h > sem_t sem; #define handle_error(msg) \ do { perror(msg); exit(EXIT_FAILURE) ...
-
https://man.mtool.work/man/20260915/man3/sem_trywait.3.html
- Man page of SEM_WAIT 7716
- SEM_WAIT Section: Linux Programmer's Manual (3) Updated: 2020-06-09 Index JM Home Page 名前 sem_wait, sem_timedwait, sem_trywait - セマフォをロックする 書式 #include < semaphore.h > int sem_wait(sem_t * sem ); int sem_trywait(sem_t * sem );
... ス #include < unistd.h > #include < stdio.h > #include < stdlib.h > #include < semaphore.h > #include < time.h > #include < assert.h > #include < errno.h > #include < signal.h > sem_t sem; #define handle_error(msg) \ do { perror(msg); exit(EXIT_FAILURE) ...
-
https://man.mtool.work/man/20260915/man3/sem_wait.3.html
- Man page of CPU_SET 7635
- CPU_SET Section: Linux Programmer's Manual (3) Updated: 2020-11-01 Index JM Home Page 名前 CPU_SET, CPU_CLR, CPU_ISSET, CPU_ZERO, CPU_COUNT, CPU_AND, CPU_OR, CPU_XOR, CPU_EQUAL, CPU_ALLOC, CPU_ALLOC_SIZE, CPU_FREE, CPU_SET_S, CPU_CLR_S, CPU
... いる。 #define _GNU_SOURCE #include < sched.h > #include < stdlib.h > #include < unistd.h > #include < stdio.h > #include < assert.h > int main(int argc, char *argv[]) { cpu_set_t *cpusetp; size_t size; int num_cpus; if (argc < 2) { fprintf(stderr, "Usa ...
-
https://man.mtool.work/man/20260915/man3/CPU_ALLOC.3.html
- Man page of CPU_SET 7635
- CPU_SET Section: Linux Programmer's Manual (3) Updated: 2020-11-01 Index JM Home Page 名前 CPU_SET, CPU_CLR, CPU_ISSET, CPU_ZERO, CPU_COUNT, CPU_AND, CPU_OR, CPU_XOR, CPU_EQUAL, CPU_ALLOC, CPU_ALLOC_SIZE, CPU_FREE, CPU_SET_S, CPU_CLR_S, CPU
... いる。 #define _GNU_SOURCE #include < sched.h > #include < stdlib.h > #include < unistd.h > #include < stdio.h > #include < assert.h > int main(int argc, char *argv[]) { cpu_set_t *cpusetp; size_t size; int num_cpus; if (argc < 2) { fprintf(stderr, "Usa ...
-
https://man.mtool.work/man/20260915/man3/CPU_ALLOC_SIZE.3.html
- Man page of CPU_SET 7635
- CPU_SET Section: Linux Programmer's Manual (3) Updated: 2020-11-01 Index JM Home Page 名前 CPU_SET, CPU_CLR, CPU_ISSET, CPU_ZERO, CPU_COUNT, CPU_AND, CPU_OR, CPU_XOR, CPU_EQUAL, CPU_ALLOC, CPU_ALLOC_SIZE, CPU_FREE, CPU_SET_S, CPU_CLR_S, CPU
... いる。 #define _GNU_SOURCE #include < sched.h > #include < stdlib.h > #include < unistd.h > #include < stdio.h > #include < assert.h > int main(int argc, char *argv[]) { cpu_set_t *cpusetp; size_t size; int num_cpus; if (argc < 2) { fprintf(stderr, "Usa ...
-
https://man.mtool.work/man/20260915/man3/CPU_AND.3.html