Hi guys, I have attached 3 new patches. The first one is the porting of ad's work and fix of pthread_condattr_getclock. I did some changes to ad's work to make it work for the netbsd-current. The second one is the reimplementation of bsd signal. The third one is the missing kernel logic for _SC_SEM_NSEMS_MAX. I have tested 3 of these patches using posix benchmark suite, and they worked. I will add formal unit tests and man pages later. Please provide comments if you have. Thanks, Charles. 2016-05-26 15:27 GMT-07:00 Charles Cui <charles.cui1984%gmail.com@localhost>: > Yes, I can do 2 and 5, and fix 3. > I am now in the progress of porting ad's patch, let's complete it. > Once I have verified the porting part is done (compile new kernel , run > benchmarks, see errors does not exist), > I will return to complete 2, 5 and fix 3, sounds good? > Of course, I will send you guys the patch of the porting work shortly. > > > 2016-05-26 15:02 GMT-07:00 Christos Zoulas <christos%zoulas.com@localhost>: > >> On May 26, 2:08pm, charles.cui1984%gmail.com@localhost (Charles Cui) wrote: >> -- Subject: Re: pthread library related >> >> 1. SIGRTMIN/SIGRTMAX should not be exposed (the kernel does not support >> the functionality). >> 2. I guess the bsd_signal is ok, but I don't like it :-) >> >> http://pubs.opengroup.org/onlinepubs/009695399/functions/bsd_signal.html >> 3. The pthread_condattr_getclock() prototype is wrong: >> >> http://pubs.opengroup.org/onlinepubs/009695399/functions/pthread_condattr_getclock.html >> 4. pthread_barrierattr_{get,set}pshared. I am ambivalent about that one >> because >> I am afraid programs might discover it and think erroneously that we >> support >> it. Let's wait on that. >> 5. _SC_SEM_NSEMS_MAX, although that's not the real limit, good enough. >> >> So let's not do 1, lets do 2, 5, fix 3 and wait for 4 until we understand >> it better. >> >> christos >> > >
Attachment:
0001-ad-work-and-getclock-fix.patch
Description: Binary data
Attachment:
0001-change-style-of-bsd_signal.patch
Description: Binary data
Attachment:
0001-_SC_SEM_NSEMS_MAX-fix.patch
Description: Binary data