msdosfs_conv.c (8fa0b743820f61c661ba5f3ea0e3be0dc137910e) msdosfs_conv.c (a2098fea6ddaa8a24cb676c63cadbfa1b8fb0da8)
1/* $FreeBSD$ */
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).

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

769 }
770
771 if (unlen > WIN_MAXLEN)
772 return 0;
773 return howmany(unlen, WIN_CHARS);
774}
775
776/*
1/* $FreeBSD$ */
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).

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

769 }
770
771 if (unlen > WIN_MAXLEN)
772 return 0;
773 return howmany(unlen, WIN_CHARS);
774}
775
776/*
777 * Determine the number of bytes neccesary for Win95 names
777 * Determine the number of bytes neccessary for Win95 names
778 */
779size_t
780winLenFixup(un, unlen)
781 const u_char* un;
782 size_t unlen;
783{
784 for (un += unlen; unlen > 0; unlen--)
785 if (*--un != ' ' && *un != '.')

--- 303 unchanged lines hidden ---
778 */
779size_t
780winLenFixup(un, unlen)
781 const u_char* un;
782 size_t unlen;
783{
784 for (un += unlen; unlen > 0; unlen--)
785 if (*--un != ' ' && *un != '.')

--- 303 unchanged lines hidden ---