The NetBSD Project

CVS log for src/sys/fs/msdosfs/msdosfs_conv.c

[BACK] Up to [cvs.NetBSD.org] / src / sys / fs / msdosfs

Request diff between arbitrary revisions


Default branch: MAIN


Revision 1.9.12.1 / (download) - annotate - [select for diffs], Wed Nov 12 18:50:55 2014 UTC (2 weeks, 2 days ago) by snj
Branch: netbsd-7
Changes since 1.9: +57 -114 lines
Diff to previous 1.9 (colored) next main 1.10 (colored)

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.

Revision 1.10 / (download) - annotate - [select for diffs], Mon Sep 1 09:09:47 2014 UTC (2 months, 3 weeks ago) by martin
Branch: MAIN
CVS Tags: HEAD
Changes since 1.9: +57 -114 lines
Diff to previous 1.9 (colored)

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.

Revision 1.7.12.1 / (download) - annotate - [select for diffs], Thu May 22 11:41:00 2014 UTC (6 months, 1 week ago) by yamt
Branch: yamt-pagecache
Changes since 1.7: +25 -7 lines
Diff to previous 1.7 (colored) next main 1.8 (colored)

sync with head.

for a reference, the tree before this commit was tagged
as yamt-pagecache-tag8.

this commit was splitted into small chunks to avoid
a limitation of cvs.  ("Protocol error: too many arguments")

Revision 1.7.22.1 / (download) - annotate - [select for diffs], Mon Feb 25 00:29:47 2013 UTC (21 months ago) by tls
Branch: tls-maxphys
Changes since 1.7: +25 -7 lines
Diff to previous 1.7 (colored) next main 1.8 (colored)

resync with head

Revision 1.9 / (download) - annotate - [select for diffs], Sat Jan 26 16:51:51 2013 UTC (22 months ago) by christos
Branch: MAIN
CVS Tags: yamt-pagecache-base9, tls-maxphys-base, tls-earlyentropy-base, tls-earlyentropy, rmind-smpnet-nbase, rmind-smpnet-base, rmind-smpnet, riastradh-xf86-video-intel-2-7-1-pre-2-21-15, riastradh-drm2-base3, riastradh-drm2-base2, riastradh-drm2-base1, riastradh-drm2-base, riastradh-drm2, netbsd-7-base, khorben-n900, agc-symver-base, agc-symver
Branch point for: netbsd-7
Changes since 1.8: +16 -5 lines
Diff to previous 1.8 (colored)

more cross-compile friendly.

Revision 1.8 / (download) - annotate - [select for diffs], Sat Jan 26 00:21:49 2013 UTC (22 months ago) by christos
Branch: MAIN
Changes since 1.7: +12 -5 lines
Diff to previous 1.7 (colored)

expose more stuff if MAKEFS is defined for the headers, and arrange for
the source file to be compilable from userland.

Revision 1.5.90.1 / (download) - annotate - [select for diffs], Wed May 13 17:21:50 2009 UTC (5 years, 6 months ago) by jym
Branch: jym-xensuspend
Changes since 1.5: +11 -43 lines
Diff to previous 1.5 (colored) next main 1.6 (colored)

Sync with HEAD.

Commit is split, to avoid a "too many arguments" protocol error.

Revision 1.5.74.1 / (download) - annotate - [select for diffs], Mon May 4 08:13:43 2009 UTC (5 years, 6 months ago) by yamt
Branch: yamt-nfs-mp
Changes since 1.5: +11 -43 lines
Diff to previous 1.5 (colored) next main 1.6 (colored)

sync with head.

Revision 1.5.84.1 / (download) - annotate - [select for diffs], Tue Apr 28 07:36:53 2009 UTC (5 years, 7 months ago) by skrll
Branch: nick-hppapmap
Changes since 1.5: +11 -43 lines
Diff to previous 1.5 (colored) next main 1.6 (colored)

Sync with HEAD.

Revision 1.7 / (download) - annotate - [select for diffs], Sun Mar 15 17:15:57 2009 UTC (5 years, 8 months ago) by cegger
Branch: MAIN
CVS Tags: yamt-pagecache-tag8, yamt-pagecache-base8, yamt-pagecache-base7, yamt-pagecache-base6, yamt-pagecache-base5, yamt-pagecache-base4, yamt-pagecache-base3, yamt-pagecache-base2, yamt-pagecache-base, yamt-nfs-mp-base9, yamt-nfs-mp-base8, yamt-nfs-mp-base7, yamt-nfs-mp-base6, yamt-nfs-mp-base5, yamt-nfs-mp-base4, yamt-nfs-mp-base3, yamt-nfs-mp-base11, yamt-nfs-mp-base10, uebayasi-xip-base4, uebayasi-xip-base3, uebayasi-xip-base2, uebayasi-xip-base1, uebayasi-xip-base, uebayasi-xip, rmind-uvmplock-nbase, rmind-uvmplock-base, rmind-uvmplock, nick-hppapmap-base4, nick-hppapmap-base3, nick-hppapmap-base, netbsd-6-base, netbsd-6-1-RELEASE, netbsd-6-1-RC4, netbsd-6-1-RC3, netbsd-6-1-RC2, netbsd-6-1-RC1, netbsd-6-1-5-RELEASE, netbsd-6-1-4-RELEASE, netbsd-6-1-3-RELEASE, netbsd-6-1-2-RELEASE, netbsd-6-1-1-RELEASE, netbsd-6-1, netbsd-6-0-RELEASE, netbsd-6-0-RC2, netbsd-6-0-RC1, netbsd-6-0-6-RELEASE, netbsd-6-0-5-RELEASE, netbsd-6-0-4-RELEASE, netbsd-6-0-3-RELEASE, netbsd-6-0-2-RELEASE, netbsd-6-0-1-RELEASE, netbsd-6-0, netbsd-6, matt-premerge-20091211, matt-nb6-plus-nbase, matt-nb6-plus-base, matt-nb6-plus, matt-mips64-premerge-20101231, jymxensuspend-base, jym-xensuspend-nbase, jym-xensuspend-base, jruoho-x86intr-base, jruoho-x86intr, jmcneill-usbmp-pre-base2, jmcneill-usbmp-base9, jmcneill-usbmp-base8, jmcneill-usbmp-base7, jmcneill-usbmp-base6, jmcneill-usbmp-base5, jmcneill-usbmp-base4, jmcneill-usbmp-base3, jmcneill-usbmp-base2, jmcneill-usbmp-base10, jmcneill-usbmp-base, jmcneill-usbmp, jmcneill-audiomp3-base, jmcneill-audiomp3, cherry-xenmp-base, cherry-xenmp, bouyer-quota2-nbase, bouyer-quota2-base, bouyer-quota2
Branch point for: yamt-pagecache, tls-maxphys
Changes since 1.6: +4 -11 lines
Diff to previous 1.6 (colored)

ansify function definitions

Revision 1.6 / (download) - annotate - [select for diffs], Sat Mar 14 15:36:21 2009 UTC (5 years, 8 months ago) by dsl
Branch: MAIN
Changes since 1.5: +9 -34 lines
Diff to previous 1.5 (colored)

Change about 4500 of the K&R function definitions to ANSI ones.
There are still about 1600 left, but they have ',' or /* ... */
in the actual variable definitions - which my awk script doesn't handle.
There are also many that need () -> (void).
(The script does handle misordered arguments.)

Revision 1.3.4.1 / (download) - annotate - [select for diffs], Wed Jun 21 15:09:29 2006 UTC (8 years, 5 months ago) by yamt
Branch: yamt-lazymbuf
Changes since 1.3: +3 -3 lines
Diff to previous 1.3 (colored) next main 1.4 (colored)

sync with head.

Revision 1.5 / (download) - annotate - [select for diffs], Sun Dec 11 12:24:25 2005 UTC (8 years, 11 months ago) by christos
Branch: MAIN
CVS Tags: yamt-x86pmap-base4, yamt-x86pmap-base3, yamt-x86pmap-base2, yamt-x86pmap-base, yamt-x86pmap, yamt-uio_vmspace-base5, yamt-uio_vmspace, yamt-splraiseipl-base5, yamt-splraiseipl-base4, yamt-splraiseipl-base3, yamt-splraiseipl-base2, yamt-splraiseipl-base, yamt-splraiseipl, yamt-pf42-baseX, yamt-pf42-base4, yamt-pf42-base3, yamt-pf42-base2, yamt-pf42-base, yamt-pf42, yamt-pdpolicy-base9, yamt-pdpolicy-base8, yamt-pdpolicy-base7, yamt-pdpolicy-base6, yamt-pdpolicy-base5, yamt-pdpolicy-base4, yamt-pdpolicy-base3, yamt-pdpolicy-base2, yamt-pdpolicy-base, yamt-pdpolicy, yamt-nfs-mp-base2, yamt-nfs-mp-base, yamt-lazymbuf-base15, yamt-lazymbuf-base14, yamt-kmem-base3, yamt-kmem-base2, yamt-kmem-base, yamt-kmem, yamt-idlelwp-base8, yamt-idlelwp, wrstuden-revivesa-base-4, wrstuden-revivesa-base-3, wrstuden-revivesa-base-2, wrstuden-revivesa-base-1, wrstuden-revivesa-base, wrstuden-revivesa, wrstuden-fixsa-newbase, wrstuden-fixsa-base-1, wrstuden-fixsa-base, wrstuden-fixsa, vmlocking2-base3, vmlocking2-base2, vmlocking2-base1, vmlocking2, vmlocking-nbase, vmlocking-base, vmlocking, thorpej-atomic-base, thorpej-atomic, simonb-wapbl-nbase, simonb-wapbl-base, simonb-wapbl, simonb-timecounters-base, simonb-timecounters, simonb-timcounters-final, rpaulo-netinet-merge-pcb-base, rpaulo-netinet-merge-pcb, reinoud-bufcleanup-nbase, reinoud-bufcleanup-base, reinoud-bufcleanup, post-newlock2-merge, peter-altq-base, peter-altq, nick-net80211-sync-base, nick-net80211-sync, nick-hppapmap-base2, nick-csl-alignment-base5, nick-csl-alignment-base, nick-csl-alignment, newlock2-nbase, newlock2-base, newlock2, netbsd-5-base, netbsd-5-2-RELEASE, netbsd-5-2-RC1, netbsd-5-2-3-RELEASE, netbsd-5-2-2-RELEASE, netbsd-5-2-1-RELEASE, netbsd-5-2, netbsd-5-1-RELEASE, netbsd-5-1-RC4, netbsd-5-1-RC3, netbsd-5-1-RC2, netbsd-5-1-RC1, netbsd-5-1-5-RELEASE, netbsd-5-1-4-RELEASE, netbsd-5-1-3-RELEASE, netbsd-5-1-2-RELEASE, netbsd-5-1-1-RELEASE, netbsd-5-1, netbsd-5-0-RELEASE, netbsd-5-0-RC4, netbsd-5-0-RC3, netbsd-5-0-RC2, netbsd-5-0-RC1, netbsd-5-0-2-RELEASE, netbsd-5-0-1-RELEASE, netbsd-5-0, netbsd-5, netbsd-4-base, netbsd-4-0-RELEASE, netbsd-4-0-RC5, netbsd-4-0-RC4, netbsd-4-0-RC3, netbsd-4-0-RC2, netbsd-4-0-RC1, netbsd-4-0-1-RELEASE, netbsd-4-0, netbsd-4, mjf-ufs-trans-base, mjf-ufs-trans, mjf-devfs2-base, mjf-devfs2, mjf-devfs-base, mjf-devfs, matt-nb5-pq3-base, matt-nb5-pq3, matt-nb5-mips64-u2-k2-k4-k7-k8-k9, matt-nb5-mips64-u1-k1-k5, matt-nb5-mips64-premerge-20101231, matt-nb5-mips64-premerge-20091211, matt-nb5-mips64-k15, matt-nb5-mips64, matt-nb4-mips64-k7-u2a-k9b, matt-nb4-arm-base, matt-nb4-arm, matt-mips64-base2, matt-mips64-base, matt-mips64, matt-armv6-prevmlocking, matt-armv6-nbase, matt-armv6-base, matt-armv6, keiichi-mipv6-nbase, keiichi-mipv6-base, keiichi-mipv6, jmcneill-pm-base, jmcneill-pm, jmcneill-base, hpcarm-cleanup-nbase, hpcarm-cleanup-base, hpcarm-cleanup, haad-nbase2, haad-dm-base2, haad-dm-base1, haad-dm-base, haad-dm, gdamore-uart-base, gdamore-uart, elad-kernelauth-base, elad-kernelauth, cube-autoconf-base, cube-autoconf, chap-midi-nbase, chap-midi-base, chap-midi, bouyer-xeni386-nbase, bouyer-xeni386-merge1, bouyer-xeni386-base, bouyer-xeni386, bouyer-xenamd64-base2, bouyer-xenamd64-base, bouyer-xenamd64, ad-socklock-base1, ad-audiomp2-base, ad-audiomp2, ad-audiomp-base, ad-audiomp, abandoned-netbsd-4-base, abandoned-netbsd-4
Branch point for: yamt-nfs-mp, nick-hppapmap, jym-xensuspend
Changes since 1.4: +2 -2 lines
Diff to previous 1.4 (colored)

merge ktrace-lwp.

Revision 1.1.4.5 / (download) - annotate - [select for diffs], Thu Nov 10 14:09:27 2005 UTC (9 years ago) by skrll
Branch: ktrace-lwp
Changes since 1.1.4.4: +3 -3 lines
Diff to previous 1.1.4.4 (colored) to branchpoint 1.1 (colored) next main 1.2 (colored)

Sync with HEAD. Here we go again...

Revision 1.4 / (download) - annotate - [select for diffs], Mon Sep 12 16:24:41 2005 UTC (9 years, 2 months ago) by christos
Branch: MAIN
CVS Tags: yamt-vop-base3, yamt-vop-base2, yamt-vop-base, yamt-vop, yamt-readahead-pervnode, yamt-readahead-perfile, yamt-readahead-base3, yamt-readahead-base2, yamt-readahead-base, yamt-readahead, thorpej-vnode-attr-base, thorpej-vnode-attr, ktrace-lwp-base
Changes since 1.3: +3 -3 lines
Diff to previous 1.3 (colored)

Use nanotime() to update the time fields in filesystems. Convert the code
from macros to real functions. Original patch and review from chuq.
Note: ext2fs only keeps seconds in the on-disk inode, and msdosfs does not
have enough precision for all fields, so this is not very useful for those
two.

Revision 1.2.8.1 / (download) - annotate - [select for diffs], Fri Apr 29 11:29:22 2005 UTC (9 years, 7 months ago) by kent
Branch: kent-audio2
Changes since 1.2: +3 -3 lines
Diff to previous 1.2 (colored) next main 1.3 (colored)

sync with -current

Revision 1.2.10.1 / (download) - annotate - [select for diffs], Sat Mar 19 08:36:10 2005 UTC (9 years, 8 months ago) by yamt
Branch: yamt-km
Changes since 1.2: +3 -3 lines
Diff to previous 1.2 (colored) next main 1.3 (colored)

sync with head.  xen and whitespace.  xen part is not finished.

Revision 1.1.4.4 / (download) - annotate - [select for diffs], Fri Mar 4 16:51:45 2005 UTC (9 years, 8 months ago) by skrll
Branch: ktrace-lwp
Changes since 1.1.4.3: +3 -3 lines
Diff to previous 1.1.4.3 (colored) to branchpoint 1.1 (colored)

Sync with HEAD.

Hi Perry!

Revision 1.3 / (download) - annotate - [select for diffs], Sat Feb 26 22:58:55 2005 UTC (9 years, 9 months ago) by perry
Branch: MAIN
CVS Tags: yamt-km-base4, yamt-km-base3, netbsd-3-base, netbsd-3-1-RELEASE, netbsd-3-1-RC4, netbsd-3-1-RC3, netbsd-3-1-RC2, netbsd-3-1-RC1, netbsd-3-1-1-RELEASE, netbsd-3-1, netbsd-3-0-RELEASE, netbsd-3-0-RC6, netbsd-3-0-RC5, netbsd-3-0-RC4, netbsd-3-0-RC3, netbsd-3-0-RC2, netbsd-3-0-RC1, netbsd-3-0-3-RELEASE, netbsd-3-0-2-RELEASE, netbsd-3-0-1-RELEASE, netbsd-3-0, netbsd-3, kent-audio2-base
Branch point for: yamt-lazymbuf
Changes since 1.2: +3 -3 lines
Diff to previous 1.2 (colored)

nuke trailing whitespace

Revision 1.1.4.3 / (download) - annotate - [select for diffs], Tue Sep 21 13:35:01 2004 UTC (10 years, 2 months ago) by skrll
Branch: ktrace-lwp
Changes since 1.1.4.2: +2 -2 lines
Diff to previous 1.1.4.2 (colored) to branchpoint 1.1 (colored)

Fix the sync with head I botched.

Revision 1.1.4.2 / (download) - annotate - [select for diffs], Sat Sep 18 14:52:49 2004 UTC (10 years, 2 months ago) by skrll
Branch: ktrace-lwp
Changes since 1.1.4.1: +0 -0 lines
Diff to previous 1.1.4.1 (colored) to branchpoint 1.1 (colored)

Sync with HEAD.

Revision 1.1.4.1 / (download) - annotate - [select for diffs], Tue Aug 3 10:52:42 2004 UTC (10 years, 3 months ago) by skrll
Branch: ktrace-lwp
Changes since 1.1: +9 -8 lines
Diff to previous 1.1 (colored)

Sync with HEAD

Revision 1.2 / (download) - annotate - [select for diffs], Sun Sep 7 22:09:11 2003 UTC (11 years, 2 months ago) by itojun
Branch: MAIN
CVS Tags: yamt-km-base2, yamt-km-base, netbsd-2-base, netbsd-2-1-RELEASE, netbsd-2-1-RC6, netbsd-2-1-RC5, netbsd-2-1-RC4, netbsd-2-1-RC3, netbsd-2-1-RC2, netbsd-2-1-RC1, netbsd-2-1, netbsd-2-0-base, netbsd-2-0-RELEASE, netbsd-2-0-RC5, netbsd-2-0-RC4, netbsd-2-0-RC3, netbsd-2-0-RC2, netbsd-2-0-RC1, netbsd-2-0-3-RELEASE, netbsd-2-0-2-RELEASE, netbsd-2-0-1-RELEASE, netbsd-2-0, netbsd-2, matt-timespec, kent-audio1-beforemerge, kent-audio1-base, kent-audio1
Branch point for: yamt-km, kent-audio2
Changes since 1.1: +9 -8 lines
Diff to previous 1.1 (colored)

add -t option for gmt time offset (normally MS-DOS filesystem has timestamp
in localtime, not GMT).  PR kern/22717

Revision 1.1.2.2 / (download) - annotate - [select for diffs], Sun Dec 29 19:56:00 2002 UTC (11 years, 11 months ago) by thorpej
Branch: nathanw_sa
CVS Tags: nathanw_sa_end
Changes since 1.1.2.1: +856 -0 lines
Diff to previous 1.1.2.1 (colored) to branchpoint 1.1 (colored) next main 1.2 (colored)

With with HEAD.

Revision 1.1.2.1, Thu Dec 26 12:31:34 2002 UTC (11 years, 11 months ago) by thorpej
Branch: nathanw_sa
Changes since 1.1: +0 -856 lines
FILE REMOVED

file msdosfs_conv.c was added on branch nathanw_sa on 2002-12-29 19:56:00 +0000

Revision 1.1 / (download) - annotate - [select for diffs], Thu Dec 26 12:31:34 2002 UTC (11 years, 11 months ago) by jdolecek
Branch: MAIN
CVS Tags: nathanw_sa_before_merge, nathanw_sa_base, fvdl_fs64_base
Branch point for: nathanw_sa, ktrace-lwp

move msdosfs code from sys/msdosfs to sys/fs/msdosfs

This form allows you to request diff's between any two revisions of a file. You may select a symbolic revision name using the selection box or you may type in a numeric name using the type-in text box.




CVSweb <webmaster@jp.NetBSD.org>