Page Menu
Home
FreeBSD
Search
Configure Global Search
Log In
Files
F153508322
D16797.id46925.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Flag For Later
Award Token
Size
1 KB
Referenced Files
None
Subscribers
None
D16797.id46925.diff
View Options
Index: head/lib/libc/string/memset.3
===================================================================
--- head/lib/libc/string/memset.3
+++ head/lib/libc/string/memset.3
@@ -32,7 +32,7 @@
.\" @(#)memset.3 8.1 (Berkeley) 6/4/93
.\" $FreeBSD$
.\"
-.Dd February 15, 2018
+.Dd August 19, 2018
.Dt MEMSET 3
.Os
.Sh NAME
@@ -44,6 +44,7 @@
.In string.h
.Ft void *
.Fn memset "void *dest" "int c" "size_t len"
+.Fd #define __STDC_WANT_LIB_EXT1__ 1
.Ft errno_t
.Fn memset_s "void *dest" "rsize_t destsz" "int c" "rsize_t len"
.Sh DESCRIPTION
@@ -82,7 +83,6 @@
is greater than
.Dv RSIZE_MAX ,
or
-.Sp
.Fa len
is greater than
.Fa destsz
@@ -93,10 +93,10 @@
.Xr explicit_bzero 3 ,
.Fn memset_s
is not removed through Dead Store Elimination (DSE), making it useful for
-clearing sensitve data.
+clearing sensitive data.
In contrast
.Fn memset
-function
+function
may be optimized away if the object modified by the function is not accessed
again.
To clear memory that will not subsequently be accessed it is advised to use
@@ -126,6 +126,6 @@
conforms to
.St -isoC .
.Fn memset_s
-conforms to:
+conforms to
.St -isoC-2011
K.3.7.4.1.
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Wed, Apr 22, 12:55 PM (3 h, 43 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
31980377
Default Alt Text
D16797.id46925.diff (1 KB)
Attached To
Mode
D16797: Provide set_constraint_handler_s(3) man page
Attached
Detach File
Event Timeline
Log In to Comment