Deleted Added
full compact
msdosfs_conv.c (33872) msdosfs_conv.c (35210)
1/* $Id: msdosfs_conv.c,v 1.24 1998/02/26 06:45:43 msmith Exp $ */
1/* $Id: msdosfs_conv.c,v 1.25 1998/02/27 12:22:22 msmith Exp $ */
2/* $NetBSD: msdosfs_conv.c,v 1.25 1997/11/17 15:36:40 ws Exp $ */
3
4/*-
5 * Copyright (C) 1995, 1997 Wolfgang Solfrank.
6 * Copyright (C) 1995, 1997 TooLs GmbH.
7 * All rights reserved.
8 * Original code by Paul Popelka (paulp@uts.amdahl.com) (see below).
9 *

--- 73 unchanged lines hidden (view full) ---

83 * Variables used to remember parts of the last time conversion. Maybe we
84 * can avoid a full conversion.
85 */
86static u_long lasttime;
87static u_long lastday;
88static u_short lastddate;
89static u_short lastdtime;
90
2/* $NetBSD: msdosfs_conv.c,v 1.25 1997/11/17 15:36:40 ws Exp $ */
3
4/*-
5 * Copyright (C) 1995, 1997 Wolfgang Solfrank.
6 * Copyright (C) 1995, 1997 TooLs GmbH.
7 * All rights reserved.
8 * Original code by Paul Popelka (paulp@uts.amdahl.com) (see below).
9 *

--- 73 unchanged lines hidden (view full) ---

83 * Variables used to remember parts of the last time conversion. Maybe we
84 * can avoid a full conversion.
85 */
86static u_long lasttime;
87static u_long lastday;
88static u_short lastddate;
89static u_short lastdtime;
90
91static inline u_int8_t find_lcode __P((u_int16_t code, u_int16_t *u2w));
91static __inline u_int8_t find_lcode __P((u_int16_t code, u_int16_t *u2w));
92
93/*
94 * Convert the unix version of time to dos's idea of time to be used in
95 * file timestamps. The passed in unix time is assumed to be in GMT.
96 */
97void
98unix2dostime(tsp, ddp, dtp, dhp)
99 struct timespec *tsp;

--- 625 unchanged lines hidden (view full) ---

725
726done:
727 *wcp++ = 0;
728 *wcp++ = 0;
729 wep->weCnt |= WIN_LAST;
730 return 0;
731}
732
92
93/*
94 * Convert the unix version of time to dos's idea of time to be used in
95 * file timestamps. The passed in unix time is assumed to be in GMT.
96 */
97void
98unix2dostime(tsp, ddp, dtp, dhp)
99 struct timespec *tsp;

--- 625 unchanged lines hidden (view full) ---

725
726done:
727 *wcp++ = 0;
728 *wcp++ = 0;
729 wep->weCnt |= WIN_LAST;
730 return 0;
731}
732
733static inline u_int8_t
733static __inline u_int8_t
734find_lcode(code, u2w)
735 u_int16_t code;
736 u_int16_t *u2w;
737{
738 int i;
739
740 for (i = 0; i < 128; i++)
741 if (u2w[i] == code)

--- 298 unchanged lines hidden ---
734find_lcode(code, u2w)
735 u_int16_t code;
736 u_int16_t *u2w;
737{
738 int i;
739
740 for (i = 0; i < 128; i++)
741 if (u2w[i] == code)

--- 298 unchanged lines hidden ---