1/* 2 * Copyright (c) 1992, 1993 3 * The Regents of the University of California. All rights reserved. 4 * 5 * This code is derived from software donated to Berkeley by 6 * Jan-Simon Pendry. 7 * 8 * Redistribution and use in source and binary forms, with or without --- 21 unchanged lines hidden (view full) --- 30 * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) 31 * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT 32 * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY 33 * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF 34 * SUCH DAMAGE. 35 * 36 * @(#)fdesc_vnops.c 8.9 (Berkeley) 1/21/94 37 * |
38 * $FreeBSD: head/sys/fs/fdescfs/fdesc_vnops.c 111741 2003-03-02 15:50:23Z des $ |
39 */ 40 41/* 42 * /dev/fd Filesystem 43 */ 44 45#include <sys/param.h> 46#include <sys/systm.h> --- 424 unchanged lines hidden (view full) --- 471 dp->d_type = DT_UNKNOWN; 472 dp->d_fileno = i + FD_DESC; 473 break; 474 } 475 /* 476 * And ship to userland 477 */ 478 FILEDESC_UNLOCK(fdp); |
479 error = uiomove(dp, UIO_MX, uio); |
480 if (error) 481 goto done; 482 FILEDESC_LOCK(fdp); 483 i++; 484 fcnt++; 485 } 486 FILEDESC_UNLOCK(fdp); 487 --- 70 unchanged lines hidden --- |