diff options
author | Bret Lambert <blambert@cvs.openbsd.org> | 2009-04-17 15:17:28 +0000 |
---|---|---|
committer | Bret Lambert <blambert@cvs.openbsd.org> | 2009-04-17 15:17:28 +0000 |
commit | e09e61cc3a2210ade819c0ce0a1624d7132275ec (patch) | |
tree | dba2d22162e9b31b5964c4f7577dcf4265da35d4 | |
parent | 449162d78a9766b57b15a3f5d6fbd7a56abd1b51 (diff) |
Remove unused function proc_isunder()
"go for it" tedu@
-rw-r--r-- | sys/kern/vfs_getcwd.c | 18 | ||||
-rw-r--r-- | sys/sys/proc.h | 4 |
2 files changed, 2 insertions, 20 deletions
diff --git a/sys/kern/vfs_getcwd.c b/sys/kern/vfs_getcwd.c index d0b516127b9..398fc673e96 100644 --- a/sys/kern/vfs_getcwd.c +++ b/sys/kern/vfs_getcwd.c @@ -1,4 +1,4 @@ -/* $OpenBSD: vfs_getcwd.c,v 1.13 2008/06/26 05:42:20 ray Exp $ */ +/* $OpenBSD: vfs_getcwd.c,v 1.14 2009/04/17 15:17:27 blambert Exp $ */ /* $NetBSD: vfs_getcwd.c,v 1.3.2.3 1999/07/11 10:24:09 sommerfeld Exp $ */ /* @@ -387,22 +387,6 @@ out: return (error); } -/* True if p1's root directory is equal to or under p2's root directory */ -int -proc_isunder(struct proc *p1, struct proc *p2) -{ - struct vnode *r1 = p1->p_fd->fd_rdir; - struct vnode *r2 = p2->p_fd->fd_rdir; - - if (r1 == NULL) - return (r2 == NULL); - - if (r2 == NULL) - return (1); - - return (vn_isunder(r1, r2, p2)); -} - /* Find pathname of a process's current directory */ int sys___getcwd(struct proc *p, void *v, register_t *retval) diff --git a/sys/sys/proc.h b/sys/sys/proc.h index a2c5b4869a4..9b004d7cf7e 100644 --- a/sys/sys/proc.h +++ b/sys/sys/proc.h @@ -1,4 +1,4 @@ -/* $OpenBSD: proc.h,v 1.116 2009/04/14 09:13:25 art Exp $ */ +/* $OpenBSD: proc.h,v 1.117 2009/04/17 15:17:27 blambert Exp $ */ /* $NetBSD: proc.h,v 1.44 1996/04/22 01:23:21 christos Exp $ */ /*- @@ -464,8 +464,6 @@ int msleep(void *, struct mutex *, int, const char*, int); void proc_trampoline_mp(void); /* XXX */ #endif -int proc_isunder(struct proc *, struct proc *); - /* * functions to handle sets of cpus. * |