summaryrefslogtreecommitdiffstats
path: root/lib/libc/stdio
diff options
context:
space:
mode:
authorjmc <jmc@openbsd.org>2014-05-13 20:51:00 +0000
committerjmc <jmc@openbsd.org>2014-05-13 20:51:00 +0000
commit64a8fdb22167aa0f4ef94e08422e8e3b2b4a7024 (patch)
treecf7a42ee9b2a039f1f4ab83b47405302c7a1fceb /lib/libc/stdio
parent- document two escape sequences as extensions in STANDARDS (diff)
downloadwireguard-openbsd-64a8fdb22167aa0f4ef94e08422e8e3b2b4a7024.tar.xz
wireguard-openbsd-64a8fdb22167aa0f4ef94e08422e8e3b2b4a7024.zip
for non-valid combinations with `#', instead of trying to list them all,
simply say all other combinations are behaviour undefined; ok guenther, who reminded me to change these too;
Diffstat (limited to 'lib/libc/stdio')
-rw-r--r--lib/libc/stdio/printf.315
-rw-r--r--lib/libc/stdio/wprintf.310
2 files changed, 6 insertions, 19 deletions
diff --git a/lib/libc/stdio/printf.3 b/lib/libc/stdio/printf.3
index 8a2a76eebad..75e1949fe88 100644
--- a/lib/libc/stdio/printf.3
+++ b/lib/libc/stdio/printf.3
@@ -1,4 +1,4 @@
-.\" $OpenBSD: printf.3,v 1.68 2014/05/09 05:14:17 deraadt Exp $
+.\" $OpenBSD: printf.3,v 1.69 2014/05/13 20:51:00 jmc 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 $Mdocdate: May 9 2014 $
+.Dd $Mdocdate: May 13 2014 $
.Dt PRINTF 3
.Os
.Sh NAME
@@ -188,16 +188,6 @@ A hash
character
specifying that the value should be converted to an ``alternate form''.
For
-.Cm c ,
-.Cm d ,
-.Cm i ,
-.Cm n ,
-.Cm p ,
-.Cm s ,
-and
-.Cm u
-conversions, this option has no effect.
-For
.Cm o
conversions, the precision of the number is increased to force the first
character of the output string to a zero (except if a zero value is printed
@@ -232,6 +222,7 @@ and
.Cm G
conversions, trailing zeros are not removed from the result as they
would otherwise be.
+For all other formats, behaviour is undefined.
.It
A zero
.Sq Cm \&0
diff --git a/lib/libc/stdio/wprintf.3 b/lib/libc/stdio/wprintf.3
index b395f8526b0..a45aebe6459 100644
--- a/lib/libc/stdio/wprintf.3
+++ b/lib/libc/stdio/wprintf.3
@@ -1,4 +1,4 @@
-.\" $OpenBSD: wprintf.3,v 1.3 2011/09/03 22:59:07 jmc Exp $
+.\" $OpenBSD: wprintf.3,v 1.4 2014/05/13 20:51:00 jmc 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 $Mdocdate: September 3 2011 $
+.Dd $Mdocdate: May 13 2014 $
.Dt WPRINTF 3
.Os
.Sh NAME
@@ -135,11 +135,6 @@ Zero or more of the following flags:
The value should be converted to an
.Dq alternate form .
For
-.Cm c , d , i , n , p , s ,
-and
-.Cm u
-conversions, this option has no effect.
-For
.Cm o
conversions, the precision of the number is increased to force the first
character of the output string to a zero (except if a zero value is printed
@@ -168,6 +163,7 @@ and
.Cm G
conversions, trailing zeros are not removed from the result as they
would otherwise be.
+For all other formats, behaviour is undefined.
.It So Cm 0 Sc (zero)
Zero padding.
For all conversions except