Re: pthread library related

2016-06-23 Thread Christos Zoulas
| > Yes, but should we commit the proposed ENOSYS stubs in the meantime just >> | > to have the functions available? I am not sure... >> | >> | No, that would do more harm than good. >> >> I agree; I have ifdef'ed them out in the code. The new proposed patch

Re: pthread library related

2016-06-23 Thread Joerg Sonnenberger
tions available? I am not sure... > | > | No, that would do more harm than good. > > I agree; I have ifdef'ed them out in the code. The new proposed patch is: > > http://www.netbsd.org/~christos/pts-20160623.diff I'd add a comment in the header about the lack of implemen

Re: pthread library related

2016-06-23 Thread Christos Zoulas
I have ifdef'ed them out in the code. The new proposed patch is: http://www.netbsd.org/~christos/pts-20160623.diff christos

Re: PTHREAD_STACK_MIN support

2016-06-23 Thread Christos Zoulas
On Jun 23, 7:27pm, jo...@bec.de (Joerg Sonnenberger) wrote: -- Subject: Re: PTHREAD_STACK_MIN support | On Thu, Jun 23, 2016 at 03:29:02PM +, Christos Zoulas wrote: | > In article , | > Kamil Rytarowski wrote: | > >On 08.06.2016 09:09, Martin Husemann wrote: | > >> Maybe a minor nit: | > >>

Re: PTHREAD_STACK_MIN support

2016-06-23 Thread Joerg Sonnenberger
On Thu, Jun 23, 2016 at 03:29:02PM +, Christos Zoulas wrote: > In article , > Kamil Rytarowski wrote: > >On 08.06.2016 09:09, Martin Husemann wrote: > >> Maybe a minor nit: > >> > >> case _SC_THREAD_STACK_MIN: > >> - return _getpagesize(); > >> + return P

Re: pthread library related

2016-06-23 Thread Joerg Sonnenberger
On Thu, Jun 23, 2016 at 03:33:08PM +, Christos Zoulas wrote: > In article <20160520091545.ga30...@britannica.bec.de>, > Joerg Sonnenberger wrote: > >On Thu, May 19, 2016 at 01:36:29PM -0400, Christos Zoulas wrote: > >> You can see how FreeBSD is implementing them; it is a lot of code to do >

Re: pthread library related

2016-06-23 Thread Christos Zoulas
In article <20160520091545.ga30...@britannica.bec.de>, Joerg Sonnenberger wrote: >On Thu, May 19, 2016 at 01:36:29PM -0400, Christos Zoulas wrote: >> You can see how FreeBSD is implementing them; it is a lot of code to do >> this and would require some architectural review. The relevant files are

Re: PTHREAD_STACK_MIN support

2016-06-23 Thread Christos Zoulas
In article , Kamil Rytarowski wrote: >On 08.06.2016 09:09, Martin Husemann wrote: >> Maybe a minor nit: >> >> case _SC_THREAD_STACK_MIN: >> - return _getpagesize(); >> + return PTHREAD_STACK_MIN; >> >> >> I would make that the max() of the two values, and a