Re: gets in the kernel

2016-06-11 Thread David Holland
On Fri, Jun 10, 2016 at 03:13:43PM +, David Holland wrote: > > libsa is just made of many libc-like functions. getl and > > bounded_gets are not close to anything in userland. gets_s is, even > > though it is in annex K. > > It's more important not to let anyone take away the false

Re: gets in the kernel

2016-06-10 Thread David Holland
On Wed, Jun 08, 2016 at 12:52:33PM +0200, Maxime Villard wrote: > Le 07/06/2016 ? 18:04, Christos Zoulas a ?crit : > >On Jun 7, 3:20pm, dholland-t...@netbsd.org (David Holland) wrote: > >-- Subject: Re: gets in the kernel > > > >| On Tue, Jun 07, 2016 at 12:36

Re: gets in the kernel

2016-06-08 Thread Maxime Villard
Le 07/06/2016 à 18:04, Christos Zoulas a écrit : On Jun 7, 3:20pm, dholland-t...@netbsd.org (David Holland) wrote: -- Subject: Re: gets in the kernel | On Tue, Jun 07, 2016 at 12:36:54PM +0200, Maxime Villard wrote: | > >I noticed that gets_s (a bounded version of gets) was

Re: gets in the kernel

2016-06-07 Thread David Holland
On Tue, Jun 07, 2016 at 12:04:26PM -0400, Christos Zoulas wrote: > | How about not giving people the false impression it's part of Annex K? > | > | > gets is not gets either, and so far nobody has complained about it. > > Yes, that was my point. I also wanted to remove gets() in SA

Re: gets in the kernel

2016-06-07 Thread Christos Zoulas
On Jun 7, 3:20pm, dholland-t...@netbsd.org (David Holland) wrote: -- Subject: Re: gets in the kernel | On Tue, Jun 07, 2016 at 12:36:54PM +0200, Maxime Villard wrote: | > >I noticed that gets_s (a bounded version of gets) was added in the kernel. | > >While this iis nice,

Re: gets in the kernel

2016-06-07 Thread David Holland
On Tue, Jun 07, 2016 at 12:36:54PM +0200, Maxime Villard 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-07 Thread Maxime Villard
Le 05/06/2016 à 20:53, Christos Zoulas a écrit : 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()

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