Module Name: src
Committed By: christos
Date: Wed Nov 21 17:18:11 UTC 2012
Modified Files:
src/share/man/man9: kprintf.9
Log Message:
document change in {,v}snprintf() behavior.
To generate a diff of this commit:
cvs rdiff -u -r1.31 -r1.32 src/share/man/man9/kprintf.9
Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.
Modified files:
Index: src/share/man/man9/kprintf.9
diff -u src/share/man/man9/kprintf.9:1.31 src/share/man/man9/kprintf.9:1.32
--- src/share/man/man9/kprintf.9:1.31 Sun Jul 17 16:54:35 2011
+++ src/share/man/man9/kprintf.9 Wed Nov 21 12:18:11 2012
@@ -1,4 +1,4 @@
-.\" $NetBSD: kprintf.9,v 1.31 2011/07/17 20:54:35 joerg Exp $
+.\" $NetBSD: kprintf.9,v 1.32 2012/11/21 17:18:11 christos Exp $
.\"
.\" Copyright (c) 1998, 2002, 2007, 2011 The NetBSD Foundation, Inc.
.\" All rights reserved.
@@ -27,7 +27,7 @@
.\" ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
.\" POSSIBILITY OF SUCH DAMAGE.
.\"
-.Dd January 21, 2011
+.Dd November 21, 2012
.Dt KPRINTF 9
.Os
.Sh NAME
@@ -250,9 +250,13 @@ The
.Fn snprintf
and
.Fn vsnprintf
-functions return the number of characters placed in the buffer
+functions return the number of characters that would have been placed
+in the buffer
.Fa buf .
-This is different to the user-space functions of the same name.
+if there was enough space in the buffer, not including the trailing
+.Dv NUL
+character used to terminate output strings like the user-space functions
+of the same name.
.Pp
The
.Fn tprintf_open