diff options
author | 2001-11-27 05:27:11 +0000 | |
---|---|---|
committer | 2001-11-27 05:27:11 +0000 | |
commit | 5af79db257c43883165df4d19734148ccfcdd5e8 (patch) | |
tree | 1d787f45797cd1ab6c09e667f6b1a5a28e8351e5 /sys/kern/kern_exec.c | |
parent | Move the declaration of EH_DEBUG and ERRATA__XXX_USR to the kernel (diff) | |
download | wireguard-openbsd-5af79db257c43883165df4d19734148ccfcdd5e8.tar.xz wireguard-openbsd-5af79db257c43883165df4d19734148ccfcdd5e8.zip |
Merge in the unified buffer cache code as found in NetBSD 2001/03/10. The
code is written mostly by Chuck Silvers <chuq@chuq.com>/<chs@netbsd.org>.
Tested for the past few weeks by many developers, should be in a pretty stable
state, but will require optimizations and additional cleanups.
Diffstat (limited to 'sys/kern/kern_exec.c')
-rw-r--r-- | sys/kern/kern_exec.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/sys/kern/kern_exec.c b/sys/kern/kern_exec.c index 2d12034b386..9f621da43d2 100644 --- a/sys/kern/kern_exec.c +++ b/sys/kern/kern_exec.c @@ -1,4 +1,4 @@ -/* $OpenBSD: kern_exec.c,v 1.60 2001/11/12 01:26:09 art Exp $ */ +/* $OpenBSD: kern_exec.c,v 1.61 2001/11/27 05:27:11 art Exp $ */ /* $NetBSD: kern_exec.c,v 1.75 1996/02/09 18:59:28 christos Exp $ */ /*- @@ -150,6 +150,7 @@ check_exec(p, epp) goto bad1; /* now we have the file, get the exec header */ + uvn_attach(vp, VM_PROT_READ); error = vn_rdwr(UIO_READ, vp, epp->ep_hdr, epp->ep_hdrlen, 0, UIO_SYSSPACE, IO_NODELOCKED, p->p_ucred, &resid, p); if (error) |