tech-kern archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

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, 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.
 > 
 > This is not in the kernel, this is in the bootloader. So you can
 > forget kgets.  I don't think we need to rename it; it remains close
 > to what some people may be used to seeing, and does differ that
 > much.

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.

Er, it was when I looked at it... or close enough

-- 
David A. Holland
dholland%netbsd.org@localhost


Home | Main Index | Thread Index | Old Index