[PATCH] for SIGSEGV, compilation error in gcc 4.6

2011-02-09 Thread jojelino
2011-02-10 * environ.cc (getwinenv,getwinenveq,build_env):Add __attribute__ ((regparm (x))) in function definition. (pfnenv):Define. (findenv_func):Use it. (environ_init):Ditto. * syscalls.cc (stat_worker):Add __attribute__ ((regparm (x))) in function definition. * wi

Re: provide __xpg_strerror_r

2011-02-09 Thread Eric Blake
On 02/06/2011 02:54 AM, Corinna Vinschen wrote: >> We already provide our own strerror() (it provides a better experience >> for out-of-range values that the newlib interface), but we're currently >> using the newlib strerror_r() (in spite of its truncation flaw). >> >> How should I rework this pat

Re: provide __xpg_strerror_r

2011-02-09 Thread Christopher Faylor
On Wed, Feb 09, 2011 at 05:20:59PM -0700, Eric Blake wrote: >On 02/06/2011 02:54 AM, Corinna Vinschen wrote: >>> We already provide our own strerror() (it provides a better experience >>> for out-of-range values that the newlib interface), but we're currently >>> using the newlib strerror_r() (in s

[PATCH] pthread_yield

2011-02-09 Thread Yaakov (Cygwin/X)
pthread_yield(3) was part of the POSIX.1c drafts but never made it into the final standard. Nevertheless, it is provided by Linux[1], FreeBSD[2], OpenBSD[3], AIX[4], and possibly other *NIXes. "On Linux, this function is implemented as a call to sched_yield(2)." Patch attached. Yaakov [1] h

Re: [PATCH] pthread_yield

2011-02-09 Thread Christopher Faylor
On Wed, Feb 09, 2011 at 11:49:58PM -0600, Yaakov (Cygwin/X) wrote: >pthread_yield(3) was part of the POSIX.1c drafts but never made it into >the final standard. Nevertheless, it is provided by Linux[1], >FreeBSD[2], OpenBSD[3], AIX[4], and possibly other *NIXes. > >"On Linux, this function is im