… | |
… | |
39 | |
39 | |
40 | #if HAVE_SYS_PRCTL_H |
40 | #if HAVE_SYS_PRCTL_H |
41 | # include <sys/prctl.h> |
41 | # include <sys/prctl.h> |
42 | #endif |
42 | #endif |
43 | |
43 | |
44 | #ifdef EIO_STACKSIZE |
|
|
45 | # define X_STACKSIZE EIO_STACKSIZE |
|
|
46 | #endif |
|
|
47 | #include "xthread.h" |
|
|
48 | |
|
|
49 | #ifndef ETP_API_DECL |
44 | #ifndef ETP_API_DECL |
50 | # define ETP_API_DECL static |
45 | # define ETP_API_DECL static |
51 | #endif |
46 | #endif |
52 | |
47 | |
53 | #ifndef ETP_PRI_MIN |
48 | #ifndef ETP_PRI_MIN |
… | |
… | |
318 | static void ecb_noinline ecb_cold |
313 | static void ecb_noinline ecb_cold |
319 | etp_proc_init (void) |
314 | etp_proc_init (void) |
320 | { |
315 | { |
321 | #if HAVE_PRCTL_SET_NAME |
316 | #if HAVE_PRCTL_SET_NAME |
322 | /* provide a more sensible "thread name" */ |
317 | /* provide a more sensible "thread name" */ |
323 | char name[15 + 1]; |
318 | char name[16 + 1]; |
324 | const int namelen = sizeof (name) - 1; |
319 | const int namelen = sizeof (name) - 1; |
325 | int len; |
320 | int len; |
326 | |
321 | |
327 | prctl (PR_GET_NAME, (unsigned long)name, 0, 0, 0); |
322 | prctl (PR_GET_NAME, (unsigned long)name, 0, 0, 0); |
328 | name [namelen] = 0; |
323 | name [namelen] = 0; |