Changeset View
Changeset View
Standalone View
Standalone View
lib/libc/string/bzero.3
Show First 20 Lines • Show All 56 Lines • ▼ Show 20 Lines | |||||
If | If | ||||
.Fa len | .Fa len | ||||
is zero, | is zero, | ||||
.Fn bzero | .Fn bzero | ||||
does nothing. | does nothing. | ||||
.Pp | .Pp | ||||
The | The | ||||
.Fn explicit_bzero | .Fn explicit_bzero | ||||
variant behaves the same, but will not be removed by a compiler's dead store | variant is the same, but has correct flags to force the call to occur, | ||||
wblockUnsubmitted Not Done Inline Actionswblock: ```variant is the same, but has flags to force the call to occur even
if the compiler thinks it… | |||||
optimization pass, making it useful for clearing sensitive memory such as a | no matter if the compiler thinks it is pointless, or not, making it | ||||
password. | useful for clearing sensitive memory such as a password. | ||||
.Sh SEE ALSO | .Sh SEE ALSO | ||||
.Xr memset 3 , | .Xr memset 3 , | ||||
.Xr swab 3 | .Xr swab 3 | ||||
.Sh HISTORY | .Sh HISTORY | ||||
A | A | ||||
.Fn bzero | .Fn bzero | ||||
function | function | ||||
appeared in | appeared in | ||||
Show All 23 Lines |