Re: MP-safe ifnet with psz & psref

2016-06-05 Thread Ryota Ozaki
Hi, So I prepared patches: http://www.netbsd.org/~ozaki-r/m_set_rcvif.diff http://www.netbsd.org/~ozaki-r/m_get_rcvif.diff The first patch introduces m_set_rcvif and m_reset_rcvif that provide consistency API against m_get_rcvif, hide internal of rcvif operation, and reduce the diff of the

Re: gets in the kernel

2016-06-05 Thread David Holland
On Mon, Jun 06, 2016 at 04:57:02AM +1000, matthew green wrote: > > I noticed that gets_s (a bounded version of gets) was added in the kernel. > > While this iis nice, it conflicts with the c-11 "Annex K" which has a > > different prototype (takes rsize_t instead of size_t). Perhaps we should >

re: gets in the kernel

2016-06-05 Thread matthew green
Christos Zoulas writes: > > Hi, > > I noticed that gets_s (a bounded version of gets) was added in the kernel. > While this iis nice, it conflicts with the c-11 "Annex K" which has a > different prototype (takes rsize_t instead of size_t). Perhaps we should > rename this to kgets() or getl() now

gets in the kernel

2016-06-05 Thread Christos Zoulas
Hi, I noticed that gets_s (a bounded version of gets) was added in the kernel. While this iis nice, it conflicts with the c-11 "Annex K" which has a different prototype (takes rsize_t instead of size_t). Perhaps we should rename this to kgets() or getl() now before it causes problems. Opinions?

Re: Unused functions in kernels

2016-06-05 Thread Izumi Tsutsui
Krister Walfridsson wrote: > On Sun, 5 Jun 2016, Izumi Tsutsui wrote: > > > It should be static instead? (note fpu_cordic.c was added in 2013) > > https://nxr.netbsd.org/search?q=fpu_cordit2=src > > It is only used when CORDIC_BOOTSTRAP is defined (i.e. when running as a > standalone