msdosfs_conv.c (22975) | msdosfs_conv.c (33181) |
---|---|
1/* $Id$ */ | 1/* $Id: msdosfs_conv.c,v 1.13 1997/02/22 09:40:46 peter 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 * --- 36 unchanged lines hidden (view full) --- 46 31, 60, 91, 121, 152, 182, 47 213, 244, 274, 305, 335, 366 48}; 49 50/* 51 * Variables used to remember parts of the last time conversion. Maybe we 52 * can avoid a full conversion. 53 */ | 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 * --- 36 unchanged lines hidden (view full) --- 46 31, 60, 91, 121, 152, 182, 47 213, 244, 274, 305, 335, 366 48}; 49 50/* 51 * Variables used to remember parts of the last time conversion. Maybe we 52 * can avoid a full conversion. 53 */ |
54u_long lasttime; 55u_long lastday; 56u_short lastddate; 57u_short lastdtime; | 54static u_long lasttime; 55static u_long lastday; 56static u_short lastddate; 57static u_short lastdtime; |
58 59/* 60 * Convert the unix version of time to dos's idea of time to be used in 61 * file timestamps. The passed in unix time is assumed to be in GMT. 62 */ 63void 64unix2dostime(tsp, ddp, dtp) 65 struct timespec *tsp; --- 56 unchanged lines hidden (view full) --- 122} 123 124/* 125 * The number of seconds between Jan 1, 1970 and Jan 1, 1980. In that 126 * interval there were 8 regular years and 2 leap years. 127 */ 128#define SECONDSTO1980 (((8 * 365) + (2 * 366)) * (24 * 60 * 60)) 129 | 58 59/* 60 * Convert the unix version of time to dos's idea of time to be used in 61 * file timestamps. The passed in unix time is assumed to be in GMT. 62 */ 63void 64unix2dostime(tsp, ddp, dtp) 65 struct timespec *tsp; --- 56 unchanged lines hidden (view full) --- 122} 123 124/* 125 * The number of seconds between Jan 1, 1970 and Jan 1, 1980. In that 126 * interval there were 8 regular years and 2 leap years. 127 */ 128#define SECONDSTO1980 (((8 * 365) + (2 * 366)) * (24 * 60 * 60)) 129 |
130u_short lastdosdate; 131u_long lastseconds; | 130static u_short lastdosdate; 131static u_long lastseconds; |
132 133/* 134 * Convert from dos' idea of time to unix'. This will probably only be 135 * called from the stat(), and fstat() system calls and so probably need 136 * not be too efficient. 137 */ 138void 139dos2unixtime(dd, dt, tsp) --- 219 unchanged lines hidden --- | 132 133/* 134 * Convert from dos' idea of time to unix'. This will probably only be 135 * called from the stat(), and fstat() system calls and so probably need 136 * not be too efficient. 137 */ 138void 139dos2unixtime(dd, dt, tsp) --- 219 unchanged lines hidden --- |