svn commit: r272673 - in head: include lib/libc/string sys/conf sys/libkern sys/sys
Dag-Erling Smørgrav
des at des.no
Tue Oct 7 07:33:44 UTC 2014
Xin LI <delphij at FreeBSD.org> writes:
> Log:
> Add explicit_bzero(3) and its kernel counterpart.
I would much prefer that we add memset_s(3) from C11, which predates
explicit_bzero(3) by either three or five years (depending on whether
you count from the publication date or the proposal date). In the
longer term, we should also consider adding the rest of annex K.
Here's a patch for NetBSD (which was never accepted):
https://mail-index.netbsd.org/tech-userlevel/2012/02/24/msg006125.html
I realize that these extensions are controversial, but I still believe
that having them is better than not having them. As the WG points out,
the intention with gets_s(3) and scanf_s(3) is not to encourage the use
of those interfaces, but to make it easier to retrofit code that uses
gets(3) and scanf(3).
DES
--
Dag-Erling Smørgrav - des at des.no
More information about the svn-src-all
mailing list