JM Project

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

Linux マニュアル 一覧

全文・高度検索

per page, with , order by , clip by
Results of 1 - 3 of about 3 for myfunc (0.001 sec.)
Man page of BACKTRACE 9301
BACKTRACE Section: Linux Programmer's Manual (3) Updated: 2020-11-01 Index JM Home Page 名前 backtrace, backtrace_symbols, backtrace_symbols_fd - アプリケーション自身でのデバッグのサポート 書式 #include < execinfo.h > int backtrace(void ** ... このプログラムを動かした際の実行例である。 $ cc -rdynamic prog.c -o prog $ ./prog 3 backtrace() returned 8 addresses ./prog(myfunc3+0x5c) [0x80487f0] ./prog [0x8048871] ./prog(myfunc+0x21) [0x8048894] ./prog(myfunc+0x1a) [0x804888d] ./prog(myfunc+0x1a) ... ソース #include < execinfo.h > #include < stdio.h > #include < stdlib.h > #include < unistd.h > #define BT_BUF_SIZE 100 void myfunc3(void) { int nptrs; void *buffer[BT_BUF_SIZE]; char **strings; nptrs = backtrace(buffer, BT_BUF_SIZE); printf("backtrace() ... < nptrs; j++) printf("%s\n", strings[j]); free(strings); } static void /* "static" はシンボルを公開しないことを意味する */ myfunc2(void) { myfunc3(); } void myfunc(int ncalls) { if (ncalls > 1) myfunc(ncalls - 1); else myfunc2(); } int main(int argc, c ...
https://man.mtool.work/man/20260915/man3/backtrace.3.html
Man page of BACKTRACE 9301
BACKTRACE Section: Linux Programmer's Manual (3) Updated: 2020-11-01 Index JM Home Page 名前 backtrace, backtrace_symbols, backtrace_symbols_fd - アプリケーション自身でのデバッグのサポート 書式 #include < execinfo.h > int backtrace(void ** ... このプログラムを動かした際の実行例である。 $ cc -rdynamic prog.c -o prog $ ./prog 3 backtrace() returned 8 addresses ./prog(myfunc3+0x5c) [0x80487f0] ./prog [0x8048871] ./prog(myfunc+0x21) [0x8048894] ./prog(myfunc+0x1a) [0x804888d] ./prog(myfunc+0x1a) ... ソース #include < execinfo.h > #include < stdio.h > #include < stdlib.h > #include < unistd.h > #define BT_BUF_SIZE 100 void myfunc3(void) { int nptrs; void *buffer[BT_BUF_SIZE]; char **strings; nptrs = backtrace(buffer, BT_BUF_SIZE); printf("backtrace() ... < nptrs; j++) printf("%s\n", strings[j]); free(strings); } static void /* "static" はシンボルを公開しないことを意味する */ myfunc2(void) { myfunc3(); } void myfunc(int ncalls) { if (ncalls > 1) myfunc(ncalls - 1); else myfunc2(); } int main(int argc, c ...
https://man.mtool.work/man/20260915/man3/backtrace_symbols.3.html
Man page of BACKTRACE 9301
BACKTRACE Section: Linux Programmer's Manual (3) Updated: 2020-11-01 Index JM Home Page 名前 backtrace, backtrace_symbols, backtrace_symbols_fd - アプリケーション自身でのデバッグのサポート 書式 #include < execinfo.h > int backtrace(void ** ... このプログラムを動かした際の実行例である。 $ cc -rdynamic prog.c -o prog $ ./prog 3 backtrace() returned 8 addresses ./prog(myfunc3+0x5c) [0x80487f0] ./prog [0x8048871] ./prog(myfunc+0x21) [0x8048894] ./prog(myfunc+0x1a) [0x804888d] ./prog(myfunc+0x1a) ... ソース #include < execinfo.h > #include < stdio.h > #include < stdlib.h > #include < unistd.h > #define BT_BUF_SIZE 100 void myfunc3(void) { int nptrs; void *buffer[BT_BUF_SIZE]; char **strings; nptrs = backtrace(buffer, BT_BUF_SIZE); printf("backtrace() ... < nptrs; j++) printf("%s\n", strings[j]); free(strings); } static void /* "static" はシンボルを公開しないことを意味する */ myfunc2(void) { myfunc3(); } void myfunc(int ncalls) { if (ncalls > 1) myfunc(ncalls - 1); else myfunc2(); } int main(int argc, c ...
https://man.mtool.work/man/20260915/man3/backtrace_symbols_fd.3.html
PREV 1 NEXT

リンク

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