Module Name: src Committed By: christos Date: Sat May 4 18:35:54 UTC 2013
Modified Files: src/lib/libc/stdio: printf.3 Log Message: _ss improvements To generate a diff of this commit: cvs rdiff -u -r1.61 -r1.62 src/lib/libc/stdio/printf.3 Please note that diffs are not public domain; they are subject to the copyright notices on the relevant files.
Modified files: Index: src/lib/libc/stdio/printf.3 diff -u src/lib/libc/stdio/printf.3:1.61 src/lib/libc/stdio/printf.3:1.62 --- src/lib/libc/stdio/printf.3:1.61 Sun Jan 20 06:01:17 2013 +++ src/lib/libc/stdio/printf.3 Sat May 4 14:35:53 2013 @@ -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 @@ write output to the given file descripto .Fa fd ; .Fn sprintf , .Fn snprintf , +.Fn snprintf_ss , .Fn vsprintf , .Fn vsnprintf , and @@ -128,9 +132,11 @@ string that specifies how subsequent arg .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