1/* $FreeBSD: head/sys/fs/msdosfs/msdosfs_vnops.c 111119 2003-02-19 05:47:46Z imp $ */
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 *
--- 1530 unchanged lines hidden (view full) ---
1540 case 1:
1541 dirbuf.d_namlen = 2;
1542 strcpy(dirbuf.d_name, "..");
1543 break;
1544 }
1545 dirbuf.d_reclen = GENERIC_DIRSIZ(&dirbuf);
1546 if (uio->uio_resid < dirbuf.d_reclen)
1547 goto out;
1548 error = uiomove((caddr_t) &dirbuf,
1549 dirbuf.d_reclen, uio);
1550 if (error)
1551 goto out;
1552 offset += sizeof(struct direntry);
1553 off = offset;
1554 if (cookies) {
1555 *cookies++ = offset;
1556 if (--ncookies <= 0)
1557 goto out;
--- 105 unchanged lines hidden (view full) ---
1663 else
1664 dirbuf.d_name[dirbuf.d_namlen] = 0;
1665 chksum = -1;
1666 dirbuf.d_reclen = GENERIC_DIRSIZ(&dirbuf);
1667 if (uio->uio_resid < dirbuf.d_reclen) {
1668 brelse(bp);
1669 goto out;
1670 }
1671 error = uiomove((caddr_t) &dirbuf,
1672 dirbuf.d_reclen, uio);
1673 if (error) {
1674 brelse(bp);
1675 goto out;
1676 }
1677 if (cookies) {
1678 *cookies++ = offset + sizeof(struct direntry);
1679 if (--ncookies <= 0) {
1680 brelse(bp);
--- 194 unchanged lines hidden ---
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 *
--- 1530 unchanged lines hidden (view full) ---
1540 case 1:
1541 dirbuf.d_namlen = 2;
1542 strcpy(dirbuf.d_name, "..");
1543 break;
1544 }
1545 dirbuf.d_reclen = GENERIC_DIRSIZ(&dirbuf);
1546 if (uio->uio_resid < dirbuf.d_reclen)
1547 goto out;
1548 error = uiomove((caddr_t) &dirbuf,
1549 dirbuf.d_reclen, uio);
1550 if (error)
1551 goto out;
1552 offset += sizeof(struct direntry);
1553 off = offset;
1554 if (cookies) {
1555 *cookies++ = offset;
1556 if (--ncookies <= 0)
1557 goto out;
--- 105 unchanged lines hidden (view full) ---
1663 else
1664 dirbuf.d_name[dirbuf.d_namlen] = 0;
1665 chksum = -1;
1666 dirbuf.d_reclen = GENERIC_DIRSIZ(&dirbuf);
1667 if (uio->uio_resid < dirbuf.d_reclen) {
1668 brelse(bp);
1669 goto out;
1670 }
1671 error = uiomove((caddr_t) &dirbuf,
1672 dirbuf.d_reclen, uio);
1673 if (error) {
1674 brelse(bp);
1675 goto out;
1676 }
1677 if (cookies) {
1678 *cookies++ = offset + sizeof(struct direntry);
1679 if (--ncookies <= 0) {
1680 brelse(bp);
--- 194 unchanged lines hidden ---