Deleted Added
full compact
pseudofs_vnops.c (95984) pseudofs_vnops.c (96886)
1/*-
2 * Copyright (c) 2001 Dag-Erling Co�dan Sm�rgrav
3 * All rights reserved.
4 *
5 * Redistribution and use in source and binary forms, with or without
6 * modification, are permitted provided that the following conditions
7 * are met:
8 * 1. Redistributions of source code must retain the above copyright

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

20 * IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY DIRECT, INDIRECT,
21 * INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT
22 * NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
23 * DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
24 * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
25 * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF
26 * THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
27 *
1/*-
2 * Copyright (c) 2001 Dag-Erling Co�dan Sm�rgrav
3 * All rights reserved.
4 *
5 * Redistribution and use in source and binary forms, with or without
6 * modification, are permitted provided that the following conditions
7 * are met:
8 * 1. Redistributions of source code must retain the above copyright

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

20 * IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY DIRECT, INDIRECT,
21 * INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT
22 * NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
23 * DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
24 * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
25 * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF
26 * THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
27 *
28 * $FreeBSD: head/sys/fs/pseudofs/pseudofs_vnops.c 95984 2002-05-03 14:58:25Z des $
28 * $FreeBSD: head/sys/fs/pseudofs/pseudofs_vnops.c 96886 2002-05-19 00:14:50Z jhb $
29 */
30
31#include <sys/param.h>
32#include <sys/kernel.h>
33#include <sys/systm.h>
34#include <sys/ctype.h>
35#include <sys/dirent.h>
36#include <sys/fcntl.h>

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

81
82 if (pn->pn_flags & PFS_DISABLED)
83 PFS_RETURN (0);
84
85 r = 1;
86 if (pid != NO_PID) {
87 if ((proc = pfind(pid)) == NULL)
88 PFS_RETURN (0);
29 */
30
31#include <sys/param.h>
32#include <sys/kernel.h>
33#include <sys/systm.h>
34#include <sys/ctype.h>
35#include <sys/dirent.h>
36#include <sys/fcntl.h>

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

81
82 if (pn->pn_flags & PFS_DISABLED)
83 PFS_RETURN (0);
84
85 r = 1;
86 if (pid != NO_PID) {
87 if ((proc = pfind(pid)) == NULL)
88 PFS_RETURN (0);
89 if (p_cansee(td->td_proc, proc) != 0 ||
89 if (p_cansee(td, proc) != 0 ||
90 (pn->pn_vis != NULL && !(pn->pn_vis)(td, proc, pn)))
91 r = 0;
92 PROC_UNLOCK(proc);
93 }
94 PFS_RETURN (r);
95}
96
97/*

--- 719 unchanged lines hidden ---
90 (pn->pn_vis != NULL && !(pn->pn_vis)(td, proc, pn)))
91 r = 0;
92 PROC_UNLOCK(proc);
93 }
94 PFS_RETURN (r);
95}
96
97/*

--- 719 unchanged lines hidden ---