From: Jarkko Hietaniemi Date: Sat, 24 May 2003 06:23:51 +0000 (+0000) Subject: Introduce (undefined) pthread_attr_setscope to non-Configure lands. X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=commitdiff_plain;h=e0e3c57ad9f042b7ff4eb12755ee3feaad30892b;p=p5sagit%2Fp5-mst-13.2.git Introduce (undefined) pthread_attr_setscope to non-Configure lands. p4raw-id: //depot/perl@19607 --- diff --git a/Cross/config.sh-arm-linux b/Cross/config.sh-arm-linux index 617be5b..ee370a30 100644 --- a/Cross/config.sh-arm-linux +++ b/Cross/config.sh-arm-linux @@ -322,6 +322,7 @@ d_poll='define' d_portable='define' d_procselfexe='undef' d_pthread_atfork='undef' +d_pthread_attr_setscope='undef' d_pthread_yield='undef' d_pwage='undef' d_pwchange='undef' diff --git a/NetWare/config.wc b/NetWare/config.wc index 60bbaae..818272c 100644 --- a/NetWare/config.wc +++ b/NetWare/config.wc @@ -298,6 +298,7 @@ d_poll='undef' d_portable='define' d_procselfexe='undef' d_pthread_atfork='undef' +d_pthread_attr_setscope='undef' d_pthread_yield='undef' d_pwage='undef' d_pwchange='undef' diff --git a/NetWare/config_H.wc b/NetWare/config_H.wc index a1f6bad..1991c43 100644 --- a/NetWare/config_H.wc +++ b/NetWare/config_H.wc @@ -1815,6 +1815,13 @@ #define SCHED_YIELD /**/ /*#define HAS_SCHED_YIELD /**/ +/* HAS_PTHREAD_ATTR_SETSCOPE: + * This symbol, if defined, indicates that the pthread_attr_setscope + * system call is available to set the contention scope attribute of + * a thread attribute object. + */ +/*#define HAS_PTHREAD_ATTR_SETSCOPE / **/ + /* HAS_READV: * This symbol, if defined, indicates that the readv routine is * available to do gather reads. You will also need diff --git a/configure.com b/configure.com index 518afb4..2734a9c 100644 --- a/configure.com +++ b/configure.com @@ -4582,6 +4582,11 @@ $ d_sched_yield="undef" $ sched_yield = " " $ ENDIF $! +$! Check for pthread_attr_setscope and PTHREAD_SCOPE_SYSTEM. +$! (The actual test is to be written.) +$! +$ d_pthread_attr_setscope="undef" +$! $! Check for generic pointer size $! $ echo4 "Checking to see how big your pointers are..." @@ -5388,6 +5393,7 @@ $ WC "d_pipe='define'" $ WC "d_poll='" + d_poll + "'" $ WC "d_procselfexe='undef'" $ WC "d_pthread_atfork='undef'" +$ WC "d_pthread_attr_setscope='" + d_pthread_attr_setscope + "'" $ WC "d_pthread_yield='" + d_pthread_yield + "'" $ WC "d_pthreads_created_joinable='" + d_pthreads_created_joinable + "'" $ WC "d_pwage='undef'" diff --git a/epoc/config.sh b/epoc/config.sh index 55e8d69..261ce4d 100644 --- a/epoc/config.sh +++ b/epoc/config.sh @@ -313,6 +313,7 @@ d_poll='undef' d_portable='undef' d_procselfexe='undef' d_pthread_atfork='undef' +d_pthread_attr_setscope='undef' d_pthread_yield='undef' d_pwage='undef' d_pwchange='undef' diff --git a/plan9/config.plan9 b/plan9/config.plan9 index 5b509c2..cbafb38 100644 --- a/plan9/config.plan9 +++ b/plan9/config.plan9 @@ -3927,6 +3927,13 @@ #define PROCSELFEXE_PATH /**/ #endif +/* HAS_PTHREAD_ATTR_SETSCOPE: + * This symbol, if defined, indicates that the pthread_attr_setscope + * system call is available to set the contention scope attribute of + * a thread attribute object. + */ +/*#define HAS_PTHREAD_ATTR_SETSCOPE / **/ + /* HAS_SIGPROCMASK: * This symbol, if defined, indicates that the sigprocmask * system call is available to examine or change the signal mask diff --git a/plan9/config_h.sample b/plan9/config_h.sample index 2134e45..1b3b26d 100644 --- a/plan9/config_h.sample +++ b/plan9/config_h.sample @@ -3872,6 +3872,13 @@ #define PROCSELFEXE_PATH /**/ #endif +/* HAS_PTHREAD_ATTR_SETSCOPE: + * This symbol, if defined, indicates that the pthread_attr_setscope + * system call is available to set the contention scope attribute of + * a thread attribute object. + */ +/*#define HAS_PTHREAD_ATTR_SETSCOPE / **/ + /* HAS_SIGPROCMASK: * This symbol, if defined, indicates that the sigprocmask * system call is available to examine or change the signal mask diff --git a/plan9/config_sh.sample b/plan9/config_sh.sample index 2b5abec..f0bc351 100644 --- a/plan9/config_sh.sample +++ b/plan9/config_sh.sample @@ -324,6 +324,7 @@ d_poll='undef' d_portable='define' d_procselfexe='undef' d_pthread_atfork='undef' +d_pthread_attr_setscope='undef' d_pthread_yield='undef' d_pwage='undef' d_pwchange='undef' diff --git a/uconfig.h b/uconfig.h index 1f7fa46..2489fd7 100644 --- a/uconfig.h +++ b/uconfig.h @@ -2670,6 +2670,13 @@ #define PROCSELFEXE_PATH /**/ #endif +/* HAS_PTHREAD_ATTR_SETSCOPE: + * This symbol, if defined, indicates that the pthread_attr_setscope + * system call is available to set the contention scope attribute of + * a thread attribute object. + */ +/*#define HAS_PTHREAD_ATTR_SETSCOPE / **/ + /* HAS_READV: * This symbol, if defined, indicates that the readv routine is * available to do gather reads. You will also need diff --git a/uconfig.sh b/uconfig.sh index 4156865..f64ec02 100755 --- a/uconfig.sh +++ b/uconfig.sh @@ -258,6 +258,7 @@ d_poll='undef' d_portable='undef' d_procselfexe='undef' d_pthread_atfork='undef' +d_pthread_attr_setscope='undef' d_pthread_yield='undef' d_pwage='undef' d_pwchange='undef' diff --git a/win32/config.bc b/win32/config.bc index f601e72..1389739 100644 --- a/win32/config.bc +++ b/win32/config.bc @@ -313,6 +313,7 @@ d_poll='undef' d_portable='define' d_procselfexe='undef' d_pthread_atfork='undef' +d_pthread_attr_setscope='undef' d_pthread_yield='undef' d_pwage='undef' d_pwchange='undef' diff --git a/win32/config.gc b/win32/config.gc index 43d0241..6e63d93 100644 --- a/win32/config.gc +++ b/win32/config.gc @@ -313,6 +313,7 @@ d_poll='undef' d_portable='define' d_procselfexe='undef' d_pthread_atfork='undef' +d_pthread_attr_setscope='undef' d_pthread_yield='undef' d_pwage='undef' d_pwchange='undef' diff --git a/win32/config.vc b/win32/config.vc index 7b15b75..e60b990 100644 --- a/win32/config.vc +++ b/win32/config.vc @@ -313,6 +313,7 @@ d_poll='undef' d_portable='define' d_procselfexe='undef' d_pthread_atfork='undef' +d_pthread_attr_setscope='undef' d_pthread_yield='undef' d_pwage='undef' d_pwchange='undef' diff --git a/win32/config.vc64 b/win32/config.vc64 index 0ed41ca..3ab5b13 100644 --- a/win32/config.vc64 +++ b/win32/config.vc64 @@ -313,6 +313,7 @@ d_poll='undef' d_portable='define' d_procselfexe='undef' d_pthread_atfork='undef' +d_pthread_attr_setscope='undef' d_pthread_yield='undef' d_pwage='undef' d_pwchange='undef' diff --git a/win32/config_H.bc b/win32/config_H.bc index 11c311c..b35ea8c 100644 --- a/win32/config_H.bc +++ b/win32/config_H.bc @@ -2670,6 +2670,13 @@ #define PROCSELFEXE_PATH /**/ #endif +/* HAS_PTHREAD_ATTR_SETSCOPE: + * This symbol, if defined, indicates that the pthread_attr_setscope + * system call is available to set the contention scope attribute of + * a thread attribute object. + */ +/*#define HAS_PTHREAD_ATTR_SETSCOPE / **/ + /* HAS_READV: * This symbol, if defined, indicates that the readv routine is * available to do gather reads. You will also need diff --git a/win32/config_H.gc b/win32/config_H.gc index 2392b0e..7ad75a8 100644 --- a/win32/config_H.gc +++ b/win32/config_H.gc @@ -2670,6 +2670,13 @@ #define PROCSELFEXE_PATH /**/ #endif +/* HAS_PTHREAD_ATTR_SETSCOPE: + * This symbol, if defined, indicates that the pthread_attr_setscope + * system call is available to set the contention scope attribute of + * a thread attribute object. + */ +/*#define HAS_PTHREAD_ATTR_SETSCOPE / **/ + /* HAS_READV: * This symbol, if defined, indicates that the readv routine is * available to do gather reads. You will also need diff --git a/win32/config_H.vc b/win32/config_H.vc index d51f70d..a46c731 100644 --- a/win32/config_H.vc +++ b/win32/config_H.vc @@ -2670,6 +2670,13 @@ #define PROCSELFEXE_PATH /**/ #endif +/* HAS_PTHREAD_ATTR_SETSCOPE: + * This symbol, if defined, indicates that the pthread_attr_setscope + * system call is available to set the contention scope attribute of + * a thread attribute object. + */ +/*#define HAS_PTHREAD_ATTR_SETSCOPE / **/ + /* HAS_READV: * This symbol, if defined, indicates that the readv routine is * available to do gather reads. You will also need diff --git a/win32/config_H.vc64 b/win32/config_H.vc64 index 5245268..32e93b7 100644 --- a/win32/config_H.vc64 +++ b/win32/config_H.vc64 @@ -2670,6 +2670,13 @@ #define PROCSELFEXE_PATH /**/ #endif +/* HAS_PTHREAD_ATTR_SETSCOPE: + * This symbol, if defined, indicates that the pthread_attr_setscope + * system call is available to set the contention scope attribute of + * a thread attribute object. + */ +/*#define HAS_PTHREAD_ATTR_SETSCOPE / **/ + /* HAS_READV: * This symbol, if defined, indicates that the readv routine is * available to do gather reads. You will also need diff --git a/wince/config.ce b/wince/config.ce index 8f90906..6500d74 100644 --- a/wince/config.ce +++ b/wince/config.ce @@ -296,6 +296,8 @@ d_pipe='undef' d_poll='undef' d_portable='define' d_procselfexe='undef' +d_pthread_atfork='undef' +d_pthread_attr_setscope='undef' d_pthread_yield='undef' d_pwage='undef' d_pwchange='undef' diff --git a/wince/config_H.ce b/wince/config_H.ce index 029ee4d..bded386 100644 --- a/wince/config_H.ce +++ b/wince/config_H.ce @@ -2008,6 +2008,12 @@ */ /*#define OLD_PTHREAD_CREATE_JOINABLE /**/ +/* HAS_PTHREAD_ATFORK: + * This symbol, if defined, indicates that the pthread_atfork routine + * is available to setup fork handlers. + */ +/*#define HAS_PTHREAD_ATFORK / **/ + /* HAS_PTHREAD_YIELD: * This symbol, if defined, indicates that the pthread_yield * routine is available to yield the execution of the current @@ -3795,6 +3801,13 @@ #define PROCSELFEXE_PATH /**/ #endif +/* HAS_PTHREAD_ATTR_SETSCOPE: + * This symbol, if defined, indicates that the pthread_attr_setscope + * system call is available to set the contention scope attribute of + * a thread attribute object. + */ +/*#define HAS_PTHREAD_ATTR_SETSCOPE / **/ + /* HAS_SIGPROCMASK: * This symbol, if defined, indicates that the sigprocmask * system call is available to examine or change the signal mask