imgact_coff.c (28751) | imgact_coff.c (29653) |
---|---|
1/*- 2 * Copyright (c) 1994 Sean Eric Fagan 3 * Copyright (c) 1994 S�ren Schmidt 4 * All rights reserved. 5 * 6 * Redistribution and use in source and binary forms, with or without 7 * modification, are permitted provided that the following conditions 8 * are met: --- 12 unchanged lines hidden (view full) --- 21 * IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY DIRECT, INDIRECT, 22 * INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT 23 * NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, 24 * DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY 25 * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT 26 * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF 27 * THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. 28 * | 1/*- 2 * Copyright (c) 1994 Sean Eric Fagan 3 * Copyright (c) 1994 S�ren Schmidt 4 * All rights reserved. 5 * 6 * Redistribution and use in source and binary forms, with or without 7 * modification, are permitted provided that the following conditions 8 * are met: --- 12 unchanged lines hidden (view full) --- 21 * IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY DIRECT, INDIRECT, 22 * INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT 23 * NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, 24 * DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY 25 * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT 26 * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF 27 * THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. 28 * |
29 * $Id: imgact_coff.c,v 1.25 1997/07/20 09:39:51 bde Exp $ | 29 * $Id: imgact_coff.c,v 1.26 1997/08/25 22:14:57 bde Exp $ |
30 */ 31 32#include <sys/param.h> 33#include <sys/systm.h> 34#include <sys/mman.h> 35#include <sys/imgact.h> 36#include <sys/kernel.h> 37#include <sys/fcntl.h> --- 234 unchanged lines hidden (view full) --- 272 273 dealloc_and_fail: 274 if (vm_map_remove(kernel_map, 275 (vm_offset_t) ptr, 276 (vm_offset_t) ptr + PAGE_SIZE)) 277 panic(__FUNCTION__ " vm_map_remove failed"); 278 279 fail: | 30 */ 31 32#include <sys/param.h> 33#include <sys/systm.h> 34#include <sys/mman.h> 35#include <sys/imgact.h> 36#include <sys/kernel.h> 37#include <sys/fcntl.h> --- 234 unchanged lines hidden (view full) --- 272 273 dealloc_and_fail: 274 if (vm_map_remove(kernel_map, 275 (vm_offset_t) ptr, 276 (vm_offset_t) ptr + PAGE_SIZE)) 277 panic(__FUNCTION__ " vm_map_remove failed"); 278 279 fail: |
280 vput(nd.ni_vp); 281 FREE(nd.ni_cnd.cn_pnbuf, M_NAMEI); | 280 vput(nd.ni_vp); 281 zfree(namei_zone, nd.ni_cnd.cn_pnbuf); |
282 return error; 283} 284 285int 286exec_coff_imgact(imgp) 287 struct image_params *imgp; 288{ 289 const struct filehdr *fhdr = (const struct filehdr*)imgp->image_header; --- 189 unchanged lines hidden --- | 282 return error; 283} 284 285int 286exec_coff_imgact(imgp) 287 struct image_params *imgp; 288{ 289 const struct filehdr *fhdr = (const struct filehdr*)imgp->image_header; --- 189 unchanged lines hidden --- |