Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 19 Aug 2018 14:25:28 +0000 (UTC)
From:      Konstantin Belousov <kib@FreeBSD.org>
To:        src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org
Subject:   svn commit: r338049 - head/lib/libc/string
Message-ID:  <201808191425.w7JEPSBQ053914@repo.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: kib
Date: Sun Aug 19 14:25:28 2018
New Revision: 338049
URL: https://svnweb.freebsd.org/changeset/base/338049

Log:
  Clarify that memset_s(3) requires __STDC_WANT_LIB_EXT1__ for visibility.
  Fix typos and other nits.
  
  Submitted by:	Yuri Pankov <yuripv@yuripv.net>
  MFC after:	3 days
  Differential revision:	https://reviews.freebsd.org/D16797

Modified:
  head/lib/libc/string/memset.3

Modified: head/lib/libc/string/memset.3
==============================================================================
--- head/lib/libc/string/memset.3	Sun Aug 19 14:22:45 2018	(r338048)
+++ head/lib/libc/string/memset.3	Sun Aug 19 14:25:28 2018	(r338049)
@@ -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 @@ or
 is greater than
 .Dv RSIZE_MAX ,
 or
-.Sp
 .Fa len
 is greater than
 .Fa destsz
@@ -93,10 +93,10 @@ Like
 .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 @@ function
 conforms to
 .St -isoC .
 .Fn memset_s
-conforms to:
+conforms to
 .St -isoC-2011
 K.3.7.4.1.



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201808191425.w7JEPSBQ053914>