tech-toolchain archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
explicit_bzero(Linux 3) -> explicit_memset(3)
For example xorg libXau (I'm working on debugging X11 stuff; this is
why...) uses explicit_bzero(Linux 3) that NetBSD does not provide
(legitimately: bzero(3) has been deprecated in POSIX since there is
memset(3)).
But there is explicit_memset(3) to avoid compiler optimizing the
zeroing away.
Is there some policy concerning this, i.e. mapping explicit_bzero(3)
to explicit_memset(3) in external code? (I could also propose a patch
upstream to have a feature macro to use explicit_memset(3) when
available).
--
Thierry Laronde <tlaronde +AT+ kergis +dot+ com>
http://www.kergis.com/
http://kertex.kergis.com/
Key fingerprint = 0FF7 E906 FBAF FE95 FD89 250D 52B1 AE95 6006 F40C
Home |
Main Index |
Thread Index |
Old Index