msdosfs_vnops.c (108686) | msdosfs_vnops.c (109623) |
---|---|
1/* $FreeBSD: head/sys/fs/msdosfs/msdosfs_vnops.c 108686 2003-01-04 22:10:36Z phk $ */ | 1/* $FreeBSD: head/sys/fs/msdosfs/msdosfs_vnops.c 109623 2003-01-21 08:56:16Z alfred $ */ |
2/* $NetBSD: msdosfs_vnops.c,v 1.68 1998/02/10 14:10:04 mrg Exp $ */ 3 4/*- 5 * Copyright (C) 1994, 1995, 1997 Wolfgang Solfrank. 6 * Copyright (C) 1994, 1995, 1997 TooLs GmbH. 7 * All rights reserved. 8 * Original code by Paul Popelka (paulp@uts.amdahl.com) (see below). 9 * --- 1519 unchanged lines hidden (view full) --- 1529 off = offset = uio->uio_offset; 1530 if (uio->uio_resid < sizeof(struct direntry) || 1531 (offset & (sizeof(struct direntry) - 1))) 1532 return (EINVAL); 1533 1534 if (ap->a_ncookies) { 1535 ncookies = uio->uio_resid / 16; 1536 MALLOC(cookies, u_long *, ncookies * sizeof(u_long), M_TEMP, | 2/* $NetBSD: msdosfs_vnops.c,v 1.68 1998/02/10 14:10:04 mrg Exp $ */ 3 4/*- 5 * Copyright (C) 1994, 1995, 1997 Wolfgang Solfrank. 6 * Copyright (C) 1994, 1995, 1997 TooLs GmbH. 7 * All rights reserved. 8 * Original code by Paul Popelka (paulp@uts.amdahl.com) (see below). 9 * --- 1519 unchanged lines hidden (view full) --- 1529 off = offset = uio->uio_offset; 1530 if (uio->uio_resid < sizeof(struct direntry) || 1531 (offset & (sizeof(struct direntry) - 1))) 1532 return (EINVAL); 1533 1534 if (ap->a_ncookies) { 1535 ncookies = uio->uio_resid / 16; 1536 MALLOC(cookies, u_long *, ncookies * sizeof(u_long), M_TEMP, |
1537 M_WAITOK); | 1537 0); |
1538 *ap->a_cookies = cookies; 1539 *ap->a_ncookies = ncookies; 1540 } 1541 1542 dirsperblk = pmp->pm_BytesPerSec / sizeof(struct direntry); 1543 1544 /* 1545 * If they are reading from the root directory then, we simulate --- 362 unchanged lines hidden --- | 1538 *ap->a_cookies = cookies; 1539 *ap->a_ncookies = ncookies; 1540 } 1541 1542 dirsperblk = pmp->pm_BytesPerSec / sizeof(struct direntry); 1543 1544 /* 1545 * If they are reading from the root directory then, we simulate --- 362 unchanged lines hidden --- |