Re: C tty/tcsetattrs question

2016-05-26 Thread David Holland
On Thu, May 26, 2016 at 07:30:05PM +0200, Manuel Bouyer wrote: > I have a GPS device connected to a serial port. It defaults to 9600bps > NMEA messages, but I need to switch it to 4800bps. There are NMEA > commands for this, and I can properly do this using cu(1). > > Now I'm trying to write

Re: pthread library related

2016-05-26 Thread Kamil Rytarowski
On 27.05.2016 00:02, Christos Zoulas wrote: > 5. _SC_SEM_NSEMS_MAX, although that's not the real limit, good enough. Is it the same (indirectly) SEM_VALUE_MAX? #define SEM_VALUE_MAX (~0U) It's located in . I think we should go for LONG_MAX: 1. We will be able to return it via sysconf(3) 2.

Re: pthread library related

2016-05-26 Thread Christos Zoulas
On May 26, 3:27pm, charles.cui1...@gmail.com (Charles Cui) wrote: -- Subject: Re: pthread library related | 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 | benchmark

Re: pthread library related

2016-05-26 Thread Charles Cui
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 guy

Re: pthread library related

2016-05-26 Thread Christos Zoulas
On May 26, 3:05pm, charles.cui1...@gmail.com (Charles Cui) wrote: -- Subject: Re: pthread library related | This is really helpful, actually, I searched _SC_TIMER_MAX and | _POSIX_TIMER_MAX in nxr, | but the results cannot indicate where these logics can be found. | One more question, does other

Re: pthread library related

2016-05-26 Thread Christos Zoulas
On May 26, 2:08pm, charles.cui1...@gmail.com (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

Re: pthread library related

2016-05-26 Thread Charles Cui
Hi Christos, I am studying the pthread libraries in netbsd, and have several patches completed. I have attached all of them, which is pretty easy, but can fix some problems in user land. Note that some of them needs to add more logic. If you can, please give me some comments on them. For the p

Re: pthread library related

2016-05-26 Thread Christos Zoulas
On May 26, 2:08pm, charles.cui1...@gmail.com (Charles Cui) wrote: -- Subject: Re: pthread library related | Hi Christos, | |I am studying the pthread libraries in netbsd, and have several patches | completed. | I have attached all of them, which is pretty easy, but can fix some | problems in

C tty/tcsetattrs question

2016-05-26 Thread Manuel Bouyer
Hello, I have a GPS device connected to a serial port. It defaults to 9600bps NMEA messages, but I need to switch it to 4800bps. There are NMEA commands for this, and I can properly do this using cu(1). Now I'm trying to write a program to do this at boot time. First I need to determine if the GPS