1/* $FreeBSD: head/sys/fs/msdosfs/msdosfs_vnops.c 111741 2003-03-02 15:50:23Z des $ */
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(&dirbuf, dirbuf.d_reclen, uio);
1549 if (error)
1550 goto out;
1551 offset += sizeof(struct direntry);
1552 off = offset;
1553 if (cookies) {
1554 *cookies++ = offset;
1555 if (--ncookies <= 0)
1556 goto out;
--- 105 unchanged lines hidden (view full) ---
1662 else
1663 dirbuf.d_name[dirbuf.d_namlen] = 0;
1664 chksum = -1;
1665 dirbuf.d_reclen = GENERIC_DIRSIZ(&dirbuf);
1666 if (uio->uio_resid < dirbuf.d_reclen) {
1667 brelse(bp);
1668 goto out;
1669 }
1670 error = uiomove(&dirbuf, dirbuf.d_reclen, uio);
1671 if (error) {
1672 brelse(bp);
1673 goto out;
1674 }
1675 if (cookies) {
1676 *cookies++ = offset + sizeof(struct direntry);
1677 if (--ncookies <= 0) {
1678 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(&dirbuf, dirbuf.d_reclen, uio);
1549 if (error)
1550 goto out;
1551 offset += sizeof(struct direntry);
1552 off = offset;
1553 if (cookies) {
1554 *cookies++ = offset;
1555 if (--ncookies <= 0)
1556 goto out;
--- 105 unchanged lines hidden (view full) ---
1662 else
1663 dirbuf.d_name[dirbuf.d_namlen] = 0;
1664 chksum = -1;
1665 dirbuf.d_reclen = GENERIC_DIRSIZ(&dirbuf);
1666 if (uio->uio_resid < dirbuf.d_reclen) {
1667 brelse(bp);
1668 goto out;
1669 }
1670 error = uiomove(&dirbuf, dirbuf.d_reclen, uio);
1671 if (error) {
1672 brelse(bp);
1673 goto out;
1674 }
1675 if (cookies) {
1676 *cookies++ = offset + sizeof(struct direntry);
1677 if (--ncookies <= 0) {
1678 brelse(bp);
--- 194 unchanged lines hidden ---