NetBSD-Bugs archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
PR/49144 CVS commit: [netbsd-7] src
The following reply was made to PR bin/49144; it has been noted by GNATS.
From: "Soren Jacobsen" <snj%netbsd.org@localhost>
To: gnats-bugs%gnats.NetBSD.org@localhost
Cc:
Subject: PR/49144 CVS commit: [netbsd-7] src
Date: Wed, 12 Nov 2014 18:50:56 +0000
Module Name: src
Committed By: snj
Date: Wed Nov 12 18:50:56 UTC 2014
Modified Files:
src/share/man/man9 [netbsd-7]: todr.9
src/sys/arch/sh3/dev [netbsd-7]: rtc.c
src/sys/dev [netbsd-7]: clock_subr.c clock_subr.h
src/sys/fs/msdosfs [netbsd-7]: msdosfs_conv.c
src/tools/compat [netbsd-7]: compat_defs.h
src/usr.sbin/makefs/msdos [netbsd-7]: Makefile.inc
Added Files:
src/tools/compat/dev [netbsd-7]: clock_subr.h
Log Message:
Pull up following revision(s) (requested by martin in ticket #216):
share/man/man9/todr.9: revision 1.17
sys/arch/sh3/dev/rtc.c: revision 1.9
sys/dev/clock_subr.c: revision 1.17-1.22
sys/dev/clock_subr.h: revision 1.22
sys/fs/msdosfs/msdosfs_conv.c: revision 1.10
tools/compat/compat_defs.h: revision 1.98
tools/compat/dev/clock_subr.h: revision 1.1-1.2
usr.sbin/makefs/msdos/Makefile.inc: revision 1.6
clock_secs_to_ymdhms(9) takes seconds as a time_t, not int.
--
Make this compile- and usable from userland as well.
--
Add a slightly stripped down version of sys/dev/clock/clock_subr.h to make
this code available for tools.
--
Reformulate an overflow test so it can be used in tool builds (i.e. does
not depend on netbsd specific macros).
--
Make msdosfs time conversion use the y/m/d/h/m/s conversion functions
from clock_subr.c and compile that into the userland (and tools)
makefs as well.
--
Copy definitions of __type_min(t), __type_max(t), and some related macros,
from <sys/cdefs.h>, for use when building tools.
--
Revert previous; test secs > __type_max(time_t) again, now
that __type_max is available in tools/compat/compat_defs.h.
--
If HAVE_NBTOOL_CONFIG_H is set, then include "nbtool_config.h",
because this file is compiled as part of tools/makefs.
--
Counting leap years was fine while we had 32bit time_t - but now it
is not a good idea for dates far away in the future.
For dates in the year 2000 or later, use arithmetic instead (since the
repeating periods are well aligned). Should fix PR 49144.
--
Avoid overflowing the "year" value by making the field uint64_t. Adapt
arguments and local variables accordingly.
This now fixes PR 49144 for real.
--
Adapt formats for debug printfs to clock_subr type changes.
To generate a diff of this commit:
cvs rdiff -u -r1.16 -r1.16.26.1 src/share/man/man9/todr.9
cvs rdiff -u -r1.8 -r1.8.34.1 src/sys/arch/sh3/dev/rtc.c
cvs rdiff -u -r1.16 -r1.16.30.1 src/sys/dev/clock_subr.c
cvs rdiff -u -r1.21 -r1.21.38.1 src/sys/dev/clock_subr.h
cvs rdiff -u -r1.9 -r1.9.12.1 src/sys/fs/msdosfs/msdosfs_conv.c
cvs rdiff -u -r1.97 -r1.97.2.1 src/tools/compat/compat_defs.h
cvs rdiff -u -r0 -r1.2.2.2 src/tools/compat/dev/clock_subr.h
cvs rdiff -u -r1.5 -r1.5.12.1 src/usr.sbin/makefs/msdos/Makefile.inc
Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.
Home |
Main Index |
Thread Index |
Old Index