summaryrefslogtreecommitdiffstats
path: root/lib/libc
diff options
context:
space:
mode:
authorschwarze <schwarze@openbsd.org>2019-07-19 18:58:03 +0000
committerschwarze <schwarze@openbsd.org>2019-07-19 18:58:03 +0000
commite43bcddd8f14f50bc86a6ef070aed300d32cbc72 (patch)
treed429b5ff2b08142b663bee763fc01cc44207c56b /lib/libc
parentlock(1): remove default timeout (diff)
downloadwireguard-openbsd-e43bcddd8f14f50bc86a6ef070aed300d32cbc72.tar.xz
wireguard-openbsd-e43bcddd8f14f50bc86a6ef070aed300d32cbc72.zip
Update POSIX reference to the 2008 version and correct the list of
conversion specifications that are extensions; issues reported by Andras Farkas <deepbluemistake at gmail dot com> on misc@. While here, note that alternative conversion modifiers have no effect and that flags and field width specifications are not supported.
Diffstat (limited to 'lib/libc')
-rw-r--r--lib/libc/time/strptime.317
1 files changed, 11 insertions, 6 deletions
diff --git a/lib/libc/time/strptime.3 b/lib/libc/time/strptime.3
index 1d670523a1d..58c7cc21968 100644
--- a/lib/libc/time/strptime.3
+++ b/lib/libc/time/strptime.3
@@ -1,4 +1,4 @@
-.\" $OpenBSD: strptime.3,v 1.29 2019/05/16 13:35:17 schwarze Exp $
+.\" $OpenBSD: strptime.3,v 1.30 2019/07/19 18:58:03 schwarze Exp $
.\"
.\" Copyright (c) 1997, 1998, 2005, 2008 The NetBSD Foundation, Inc.
.\" All rights reserved.
@@ -26,7 +26,7 @@
.\" ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
.\" POSSIBILITY OF SUCH DAMAGE.
.\"
-.Dd $Mdocdate: May 16 2019 $
+.Dd $Mdocdate: July 19 2019 $
.Dt STRPTIME 3
.Os
.Sh NAME
@@ -250,6 +250,7 @@ The
.Ox
implementation always uses the C locale and ignores the
global locale and the thread-specific locale.
+Alternative conversion modifiers have no effect.
.Pp
There is no way to specify whether Daylight Saving Time is in effect when
calling
@@ -291,16 +292,20 @@ Otherwise, a null pointer is returned.
.Sh STANDARDS
The
.Fn strptime
-function conforms to
-.St -xpg4.2 .
+function conforms to the X/Open System Interfaces option of
+.St -p1003.1-2008 ,
+except that flags and field width specifications are not supported.
.Pp
The
-.Ql \&%G ,
+.Ql \&%F ,
.Ql \&%g ,
+.Ql \&%G ,
+.Ql \&%k ,
+.Ql \&%l ,
.Ql \&%s ,
.Ql \&%u ,
.Ql \&%V ,
-.Ql \&%Y ,
+.Ql \&%z ,
and
.Ql \&%Z
conversion specifications are extensions.