]> git.ipfire.org Git - thirdparty/man-pages.git/blobdiff - man3/bzero.3
ld.so.8: srcfix
[thirdparty/man-pages.git] / man3 / bzero.3
index 0247c44c7d63f343257e6201457853d56b33badf..f4df255adc706defafdeb1432a070999db1af1b7 100644 (file)
@@ -22,7 +22,7 @@
 .\" the source, must acknowledge the copyright and authors of this work.
 .\" %%%LICENSE_END
 .\"
-.TH BZERO 3  2017-05-03 "Linux" "Linux Programmer's Manual"
+.TH BZERO 3  2019-03-06 "Linux" "Linux Programmer's Manual"
 .SH NAME
 bzero, explicit_bzero \- zero a byte string
 .SH SYNOPSIS
@@ -30,7 +30,7 @@ bzero, explicit_bzero \- zero a byte string
 .B #include <strings.h>
 .PP
 .BI "void bzero(void *" s ", size_t " n );
-
+.PP
 .B #include <string.h>
 .PP
 .BI "void explicit_bzero(void *" s ", size_t " n );
@@ -42,8 +42,8 @@ function erases the data in the
 .I n
 bytes of the memory starting at the location pointed to by
 .IR s ,
-by writing zeroes (bytes containing \(aq\\0\(aq) to that area.
-
+by writing zeros (bytes containing \(aq\e0\(aq) to that area.
+.PP
 The
 .BR explicit_bzero ()
 function performs the same task as
@@ -82,7 +82,7 @@ POSIX.1-2008 removes the specification of
 The
 .BR bzero ()
 function first appeared in 4.3BSD.
-
+.PP
 The
 .BR explicit_bzero ()
 function is a nonstandard extension that is also present on some of the BSDs.
@@ -110,7 +110,7 @@ by an incorrect or compromised program.
 Calls to
 .BR explicit_bzero ()
 are never optimized away by the compiler.
-
+.PP
 The
 .BR explicit_bzero ()
 function does not solve all problems associated with erasing sensitive data:
@@ -159,7 +159,7 @@ Indeed, it will make them worse, since, for example,
 it may force a variable that would otherwise have been optimized
 into a register to instead be maintained in (more vulnerable)
 RAM for its entire lifetime.
-
+.PP
 Notwithstanding the above details, for security-conscious applications, using
 .BR explicit_bzero ()
 is generally preferable to not using it.