Source-Changes-HG archive

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

[src/trunk]: src/lib/libc/time Note that localtime_r() does not imply tzset()...



details:   https://anonhg.NetBSD.org/src/rev/4719cde2d03b
branches:  trunk
changeset: 494453:4719cde2d03b
user:      kleink <kleink%NetBSD.org@localhost>
date:      Thu Jul 06 16:19:15 2000 +0000

description:
Note that localtime_r() does not imply tzset(); inspired by a conversation
with Hal Murray in the trail of PR lib/10282.

diffstat:

 lib/libc/time/ctime.3 |  8 ++++++--
 1 files changed, 6 insertions(+), 2 deletions(-)

diffs (22 lines):

diff -r 746130d45c48 -r 4719cde2d03b lib/libc/time/ctime.3
--- a/lib/libc/time/ctime.3     Thu Jul 06 16:06:36 2000 +0000
+++ b/lib/libc/time/ctime.3     Thu Jul 06 16:19:15 2000 +0000
@@ -1,4 +1,4 @@
-.\"    $NetBSD: ctime.3,v 1.18 2000/07/06 12:44:31 hubertf Exp $
+.\"    $NetBSD: ctime.3,v 1.19 2000/07/06 16:19:15 kleink Exp $
 .TH CTIME 3
 .SH NAME
 asctime, asctime_r, ctime, ctime_r, difftime, gmtime, gmtime_r, localtime, localtime_r, mktime \- convert date and time to ASCII
@@ -83,7 +83,11 @@
 .I localtime\^
 differing in that the caller must supply a buffer area
 .IR result
-in which the result is stored.
+in which the result is stored; also,
+.I localtime_r\^
+does not imply initialization of the local time conversion information;
+the application may need to do so by calling
+.IR tzset .
 .PP
 .I Asctime\^
 converts a time value contained in a



Home | Main Index | Thread Index | Old Index