diff options
author | Robert Mustacchi <rm@joyent.com> | 2015-04-07 09:59:42 -0700 |
---|---|---|
committer | Robert Mustacchi <rm@joyent.com> | 2015-04-12 16:04:38 -0700 |
commit | 9d12795f87b63c2e39e87bff369182edd34677d3 (patch) | |
tree | 38d6405120ac9b468e66d6e900ab228ea9c92110 /usr/src/man/man3c/bstring.3c | |
parent | 08344b293eab865a57e4629b178f2003dced397e (diff) | |
download | illumos-joyent-9d12795f87b63c2e39e87bff369182edd34677d3.tar.gz |
5830 want arc4random(3C) suite
5802 want getentropy(3C)
5803 want getrandom(2)
5804 want explicit_bzero(3C)
5805 want MC_INHERIT_ZERO
5806 uuid_generate can leak its cache in edge conditions
Reviewed by: Jerry Jelinek <jerry.jelinek@joyent.com>
Reviewed by: Joshua M. Clulow <josh@sysmgr.org>
Reviewed by: Josef 'Jeff' Sipek <josef.sipek@nexenta.com>
Reviewed by: Garrett D'Amore <garrett@damore.org>
Approved by: Garrett D'Amore <garrett@damore.org>
Diffstat (limited to 'usr/src/man/man3c/bstring.3c')
-rw-r--r-- | usr/src/man/man3c/bstring.3c | 28 |
1 files changed, 19 insertions, 9 deletions
diff --git a/usr/src/man/man3c/bstring.3c b/usr/src/man/man3c/bstring.3c index f65f221ac5..873c64fe80 100644 --- a/usr/src/man/man3c/bstring.3c +++ b/usr/src/man/man3c/bstring.3c @@ -1,11 +1,12 @@ '\" te .\" Copyright (c) 2002, Sun Microsystems, Inc. All Rights Reserved +.\" Copyright (c) 2015, Joyent, Inc. .\" The contents of this file are subject to the terms of the Common Development and Distribution License (the "License"). You may not use this file except in compliance with the License. .\" You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE or http://www.opensolaris.org/os/licensing. See the License for the specific language governing permissions and limitations under the License. .\" When distributing Covered Code, include this CDDL HEADER in each file and include the License file at usr/src/OPENSOLARIS.LICENSE. If applicable, add the following below this CDDL HEADER, with the fields enclosed by brackets "[]" replaced with your own identifying information: Portions Copyright [yyyy] [name of copyright owner] -.TH BSTRING 3C "Apr 15, 2002" +.TH BSTRING 3C "Dec 31, 2014" .SH NAME -bstring, bcopy, bcmp, bzero \- memory operations +bstring, bcopy, bcmp, bzero, explicit_bzero \- memory operations .SH SYNOPSIS .LP .nf @@ -24,8 +25,12 @@ bstring, bcopy, bcmp, bzero \- memory operations \fBvoid\fR \fBbzero\fR(\fBvoid *\fR\fIs\fR, \fBsize_t\fR \fIn\fR); .fi +.LP +.nf +\fBvoid\fR \fBexplicit_bzero\fR(\fBvoid *\fR\fIs\fR, \fBsize_t\fR \fIn\fR); +.fi + .SH DESCRIPTION -.sp .LP The \fBbcopy()\fR, \fBbcmp()\fR, and \fBbzero()\fR functions operate as efficiently as possible on memory areas (arrays of bytes bounded by a count, @@ -46,13 +51,15 @@ always returns 0 when \fIn\fR is 0. .LP The \fBbzero()\fR function sets the first \fIn\fR bytes in memory area \fIs\fR to 0. -.SH WARNINGS .sp .LP -The \fBbcopy()\fR function takes parameters backwards from \fBmemcmp()\fR. See -\fBmemory\fR(3C). +The \fBexplicit_bzero()\fR function behaves the same as \fBbzero()\fR, except it +should not be removed by the compiler's optimization passes. +.SH WARNINGS +.LP +The \fBbcopy()\fR and \fBexplicit_bzero()\fR functions take parameters backwards +from \fBmemcmp()\fR. See \fBmemory\fR(3C). .SH ATTRIBUTES -.sp .LP See \fBattributes\fR(5) for descriptions of the following attributes: .sp @@ -64,12 +71,15 @@ c | c l | l . ATTRIBUTE TYPE ATTRIBUTE VALUE _ -Interface Stability Standard +Interface Stability See NOTES _ MT-Level MT-Safe .TE .SH SEE ALSO -.sp .LP \fBmemory\fR(3C), \fBattributes\fR(5), \fBstandards\fR(5) +.SH NOTES +.LP +\fBbcopy\fR(), \fBbcmp\fR(), and \fBbzero\fR() are \fBSTANDARD\fR. +\fBexplicit_bzero\fR() is \fBCOMMITTED\fR. |