JM プロジェクトは、主に Linux 関連のマニュアルページの日本語ページを翻訳・公開しています。
... fine NAMELEN 16 #define errExitEN(en, msg) \ do { errno = en; perror(msg); \ exit(EXIT_FAILURE); } while (0) static void * threadfunc(void *parm) { sleep (5); // allow main program to set the thread name return NULL; } int main(int argc, char **argv) { pth ... read_t thread; int rc; char thread_name[NAMELEN]; rc = pthread_create(&thread, NULL, threadfunc, NULL); if (rc != 0) errExitEN(rc, "pthread_create"); rc = pthread_getname_np(thread, thread_name, NAMELEN); if (rc != 0) ... ... fine NAMELEN 16 #define errExitEN(en, msg) \ do { errno = en; perror(msg); \ exit(EXIT_FAILURE); } while (0) static void * threadfunc(void *parm) { sleep (5); // allow main program to set the thread name return NULL; } int main(int argc, char **argv) { pth ... read_t thread; int rc; char thread_name[NAMELEN]; rc = pthread_create(&thread, NULL, threadfunc, NULL); if (rc != 0) errExitEN(rc, "pthread_create"); rc = pthread_getname_np(thread, thread_name, NAMELEN); if (rc != 0) ... 日本語の文書やマニュアルを配布している個人/プロジェクトへのリンクです。