Deleted Added
full compact
fdesc_vnops.c (66894) fdesc_vnops.c (71999)
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 *
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 66894 2000-10-09 20:06:13Z chris $
38 * $FreeBSD: head/sys/fs/fdescfs/fdesc_vnops.c 71999 2001-02-04 13:13:25Z phk $
39 */
40
41/*
42 * /dev/fd Filesystem
43 */
44
45#include <sys/param.h>
46#include <sys/systm.h>

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

101 struct proc *p;
102{
103 struct fdhashhead *fc;
104 struct fdescnode *fd;
105 int error = 0;
106
107 fc = FD_NHASH(ix);
108loop:
39 */
40
41/*
42 * /dev/fd Filesystem
43 */
44
45#include <sys/param.h>
46#include <sys/systm.h>

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

101 struct proc *p;
102{
103 struct fdhashhead *fc;
104 struct fdescnode *fd;
105 int error = 0;
106
107 fc = FD_NHASH(ix);
108loop:
109 for (fd = fc->lh_first; fd != 0; fd = fd->fd_hash.le_next) {
109 LIST_FOREACH(fd, fc, fd_hash) {
110 if (fd->fd_ix == ix && fd->fd_vnode->v_mount == mp) {
111 if (vget(fd->fd_vnode, 0, p))
112 goto loop;
113 *vpp = fd->fd_vnode;
114 return (error);
115 }
116 }
117

--- 457 unchanged lines hidden ---
110 if (fd->fd_ix == ix && fd->fd_vnode->v_mount == mp) {
111 if (vget(fd->fd_vnode, 0, p))
112 goto loop;
113 *vpp = fd->fd_vnode;
114 return (error);
115 }
116 }
117

--- 457 unchanged lines hidden ---