msdosfs_conv.c (8876) | msdosfs_conv.c (11921) |
---|---|
1/* $Id: msdosfs_conv.c,v 1.4 1995/03/29 18:48:06 ache Exp $ */ | 1/* $Id: msdosfs_conv.c,v 1.5 1995/05/30 08:07:36 rgrimes Exp $ */ |
2/* $NetBSD: msdosfs_conv.c,v 1.6.2.1 1994/08/30 02:27:57 cgd Exp $ */ 3 4/* 5 * Written by Paul Popelka (paulp@uts.amdahl.com) 6 * 7 * You can do anything you want with this software, just don't say you wrote 8 * it, and don't remove this notice. 9 * --- 126 unchanged lines hidden (view full) --- 136 */ 137void 138dos2unixtime(dd, dt, tsp) 139 u_short dd; 140 u_short dt; 141 struct timespec *tsp; 142{ 143 u_long seconds; | 2/* $NetBSD: msdosfs_conv.c,v 1.6.2.1 1994/08/30 02:27:57 cgd Exp $ */ 3 4/* 5 * Written by Paul Popelka (paulp@uts.amdahl.com) 6 * 7 * You can do anything you want with this software, just don't say you wrote 8 * it, and don't remove this notice. 9 * --- 126 unchanged lines hidden (view full) --- 136 */ 137void 138dos2unixtime(dd, dt, tsp) 139 u_short dd; 140 u_short dt; 141 struct timespec *tsp; 142{ 143 u_long seconds; |
144 u_long m, month; 145 u_long y, year; | 144 u_long month; 145 u_long year; |
146 u_long days; 147 u_short *months; 148 149 seconds = (((dt & DT_2SECONDS_MASK) >> DT_2SECONDS_SHIFT) << 1) 150 + ((dt & DT_MINUTES_MASK) >> DT_MINUTES_SHIFT) * 60 151 + ((dt & DT_HOURS_MASK) >> DT_HOURS_SHIFT) * 3600; 152 /* 153 * If the year, month, and day from the last conversion are the --- 203 unchanged lines hidden --- | 146 u_long days; 147 u_short *months; 148 149 seconds = (((dt & DT_2SECONDS_MASK) >> DT_2SECONDS_SHIFT) << 1) 150 + ((dt & DT_MINUTES_MASK) >> DT_MINUTES_SHIFT) * 60 151 + ((dt & DT_HOURS_MASK) >> DT_HOURS_SHIFT) * 3600; 152 /* 153 * If the year, month, and day from the last conversion are the --- 203 unchanged lines hidden --- |