Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/trunk]: src/lib/libc/stdio _ss improvements



details:   https://anonhg.NetBSD.org/src/rev/51daafabe9c9
branches:  trunk
changeset: 786638:51daafabe9c9
user:      christos <christos%NetBSD.org@localhost>
date:      Sat May 04 18:35:53 2013 +0000

description:
_ss improvements

diffstat:

 lib/libc/stdio/printf.3 |  14 ++++++++++----
 1 files changed, 10 insertions(+), 4 deletions(-)

diffs (57 lines):

diff -r 024182ee869b -r 51daafabe9c9 lib/libc/stdio/printf.3
--- a/lib/libc/stdio/printf.3   Sat May 04 18:31:47 2013 +0000
+++ b/lib/libc/stdio/printf.3   Sat May 04 18:35:53 2013 +0000
@@ -1,4 +1,4 @@
-.\"    $NetBSD: printf.3,v 1.61 2013/01/20 11:01:17 uwe Exp $
+.\"    $NetBSD: printf.3,v 1.62 2013/05/04 18:35:53 christos Exp $
 .\"
 .\" Copyright (c) 1990, 1991, 1993
 .\"    The Regents of the University of California.  All rights reserved.
@@ -33,7 +33,7 @@
 .\"
 .\"     @(#)printf.3   8.1 (Berkeley) 6/4/93
 .\"
-.Dd December 26, 2010
+.Dd May 4, 2013
 .Dt PRINTF 3
 .Os
 .Sh NAME
@@ -42,6 +42,7 @@
 .Nm dprintf
 .Nm sprintf ,
 .Nm snprintf ,
+.Nm snprintf_ss ,
 .Nm asprintf ,
 .Nm vprintf ,
 .Nm vfprintf ,
@@ -66,6 +67,8 @@
 .Ft int
 .Fn snprintf "char * restrict str" "size_t size" "const char * restrict format" ...
 .Ft int
+.Fn snprintf_ss "char * restrict str" "size_t size" "const char * restrict format" ...
+.Ft int
 .Fn asprintf "char ** restrict ret" "const char * restrict format" ...
 .In stdarg.h
 .Ft int
@@ -108,6 +111,7 @@
 .Fa fd ;
 .Fn sprintf ,
 .Fn snprintf ,
+.Fn snprintf_ss ,
 .Fn vsprintf ,
 .Fn vsnprintf ,
 and
@@ -128,9 +132,11 @@
 .Xr stdarg 3 )
 are converted for output.
 .Pp
+.Fn snprintf_ss
+and
 .Fn vsnprintf_ss
-is a signal-safe standalone version that does not handle
-floating point formats.
+are signal-safe standalone versions that does not handle
+floating point formats, positional arguments, and wide characters.
 .Pp
 .Fn asprintf
 and



Home | Main Index | Thread Index | Old Index