summaryrefslogtreecommitdiffstats
path: root/lib/libc/time
diff options
context:
space:
mode:
authortedu <tedu@openbsd.org>2013-06-05 03:39:22 +0000
committertedu <tedu@openbsd.org>2013-06-05 03:39:22 +0000
commit64d4e9871d1af4e50715ace8f2f237ff8e4d36e0 (patch)
tree90569bb16bd247c9a0433830994a6bc333a5a4f9 /lib/libc/time
parentm_defrag(9) wasnt documented. (diff)
downloadwireguard-openbsd-64d4e9871d1af4e50715ace8f2f237ff8e4d36e0.tar.xz
wireguard-openbsd-64d4e9871d1af4e50715ace8f2f237ff8e4d36e0.zip
Use the fancy .In macro for includes. From Jan Klemkow. ok jmc schwarze
Diffstat (limited to 'lib/libc/time')
-rw-r--r--lib/libc/time/ctime.38
-rw-r--r--lib/libc/time/strftime.36
-rw-r--r--lib/libc/time/strptime.36
-rw-r--r--lib/libc/time/time2posix.38
-rw-r--r--lib/libc/time/tzset.36
-rw-r--r--lib/libc/time/wcsftime.36
6 files changed, 20 insertions, 20 deletions
diff --git a/lib/libc/time/ctime.3 b/lib/libc/time/ctime.3
index 0796ed997d2..c4d5a83c3da 100644
--- a/lib/libc/time/ctime.3
+++ b/lib/libc/time/ctime.3
@@ -1,7 +1,7 @@
-.\" $OpenBSD: ctime.3,v 1.38 2012/09/13 11:14:20 millert Exp $
+.\" $OpenBSD: ctime.3,v 1.39 2013/06/05 03:39:23 tedu Exp $
.\"
.\"
-.Dd $Mdocdate: September 13 2012 $
+.Dd $Mdocdate: June 5 2013 $
.Dt CTIME 3
.Os
.Sh NAME
@@ -19,8 +19,8 @@
.Nm timelocal
.Nd convert date and time to ASCII
.Sh SYNOPSIS
-.Fd #include <sys/types.h>
-.Fd #include <time.h>
+.In sys/types.h
+.In time.h
.Pp
.Fd extern char *tzname[2];
.Ft "char *"
diff --git a/lib/libc/time/strftime.3 b/lib/libc/time/strftime.3
index fae70c0cdf0..0a31a68fd56 100644
--- a/lib/libc/time/strftime.3
+++ b/lib/libc/time/strftime.3
@@ -30,16 +30,16 @@
.\" SUCH DAMAGE.
.\"
.\" from: @(#)strftime.3 5.12 (Berkeley) 6/29/91
-.\" $OpenBSD: strftime.3,v 1.30 2013/01/05 12:55:10 krw Exp $
+.\" $OpenBSD: strftime.3,v 1.31 2013/06/05 03:39:23 tedu Exp $
.\"
-.Dd $Mdocdate: January 5 2013 $
+.Dd $Mdocdate: June 5 2013 $
.Dt STRFTIME 3
.Os
.Sh NAME
.Nm strftime
.Nd format date and time
.Sh SYNOPSIS
-.Fd #include <time.h>
+.In time.h
.Ft size_t
.Fn strftime "char *buf" "size_t maxsize" "const char *format" "const struct tm *timeptr"
.Sh DESCRIPTION
diff --git a/lib/libc/time/strptime.3 b/lib/libc/time/strptime.3
index b7533be2fe5..00f508987b9 100644
--- a/lib/libc/time/strptime.3
+++ b/lib/libc/time/strptime.3
@@ -1,4 +1,4 @@
-.\" $OpenBSD: strptime.3,v 1.21 2012/08/18 16:25:20 jmc Exp $
+.\" $OpenBSD: strptime.3,v 1.22 2013/06/05 03:39:23 tedu Exp $
.\"
.\" Copyright (c) 1997, 1998, 2005, 2008 The NetBSD Foundation, Inc.
.\" All rights reserved.
@@ -26,14 +26,14 @@
.\" ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
.\" POSSIBILITY OF SUCH DAMAGE.
.\"
-.Dd $Mdocdate: August 18 2012 $
+.Dd $Mdocdate: June 5 2013 $
.Dt STRPTIME 3
.Os
.Sh NAME
.Nm strptime
.Nd converts a character string to a time value
.Sh SYNOPSIS
-.Fd #include <time.h>
+.In time.h
.Ft char *
.Fn strptime "const char *buf" "const char *format" "struct tm *tm"
.Sh DESCRIPTION
diff --git a/lib/libc/time/time2posix.3 b/lib/libc/time/time2posix.3
index c469805c676..7b135811cef 100644
--- a/lib/libc/time/time2posix.3
+++ b/lib/libc/time/time2posix.3
@@ -1,5 +1,5 @@
-.\" $OpenBSD: time2posix.3,v 1.18 2012/09/13 11:14:20 millert Exp $
-.Dd $Mdocdate: September 13 2012 $
+.\" $OpenBSD: time2posix.3,v 1.19 2013/06/05 03:39:23 tedu Exp $
+.Dd $Mdocdate: June 5 2013 $
.Dt TIME2POSIX 3
.Os
.Sh NAME
@@ -7,8 +7,8 @@
.Nm posix2time
.Nd convert seconds since the Epoch
.Sh SYNOPSIS
-.Fd #include <sys/types.h>
-.Fd #include <time.h>
+.In sys/types.h
+.In time.h
.Ft time_t
.Fn time2posix "time_t t"
.Ft time_t
diff --git a/lib/libc/time/tzset.3 b/lib/libc/time/tzset.3
index 760dc44d2a4..af18bf43650 100644
--- a/lib/libc/time/tzset.3
+++ b/lib/libc/time/tzset.3
@@ -1,12 +1,12 @@
-.\" $OpenBSD: tzset.3,v 1.19 2012/09/13 11:14:20 millert Exp $
-.Dd $Mdocdate: September 13 2012 $
+.\" $OpenBSD: tzset.3,v 1.20 2013/06/05 03:39:23 tedu Exp $
+.Dd $Mdocdate: June 5 2013 $
.Dt TZSET 3
.Os
.Sh NAME
.Nm tzset
.Nd initialize time conversion information
.Sh SYNOPSIS
-.Fd #include <time.h>
+.In time.h
.Ft void
.Fn tzset "void"
.Sh DESCRIPTION
diff --git a/lib/libc/time/wcsftime.3 b/lib/libc/time/wcsftime.3
index 9e668515feb..2c5ce8c8ca0 100644
--- a/lib/libc/time/wcsftime.3
+++ b/lib/libc/time/wcsftime.3
@@ -1,4 +1,4 @@
-.\" $OpenBSD: wcsftime.3,v 1.2 2012/02/26 19:15:20 haesbaert Exp $
+.\" $OpenBSD: wcsftime.3,v 1.3 2013/06/05 03:39:23 tedu Exp $
.\" Copyright (c) 2011 Marc Espie <espie@openbsd.org>
.\"
.\" Permission to use, copy, modify, and distribute this software for any
@@ -13,14 +13,14 @@
.\" ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF
.\" OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
.\"
-.Dd $Mdocdate: February 26 2012 $
+.Dd $Mdocdate: June 5 2013 $
.Dt WCSFTIME 3
.Os
.Sh NAME
.Nm wcsftime
.Nd format date and time to wide characters string
.Sh SYNOPSIS
-.Fd #include <wchar.h>
+.In wchar.h
.Ft size_t
.Fn wcsftime "wchar_t *buf" "size_t maxsize" "const wchar_t *format" "const struct tm *timeptr"
.Sh DESCRIPTION