imgact_elf.c (217160) | imgact_elf.c (218195) |
---|---|
1/*- 2 * Copyright (c) 2000 David O'Brien 3 * Copyright (c) 1995-1996 S�ren Schmidt 4 * Copyright (c) 1996 Peter Wemm 5 * All rights reserved. 6 * 7 * Redistribution and use in source and binary forms, with or without 8 * modification, are permitted provided that the following conditions --- 15 unchanged lines hidden (view full) --- 24 * NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, 25 * DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY 26 * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT 27 * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF 28 * THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. 29 */ 30 31#include <sys/cdefs.h> | 1/*- 2 * Copyright (c) 2000 David O'Brien 3 * Copyright (c) 1995-1996 S�ren Schmidt 4 * Copyright (c) 1996 Peter Wemm 5 * All rights reserved. 6 * 7 * Redistribution and use in source and binary forms, with or without 8 * modification, are permitted provided that the following conditions --- 15 unchanged lines hidden (view full) --- 24 * NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, 25 * DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY 26 * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT 27 * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF 28 * THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. 29 */ 30 31#include <sys/cdefs.h> |
32__FBSDID("$FreeBSD: head/sys/kern/imgact_elf.c 217160 2011-01-08 18:41:19Z kib $"); | 32__FBSDID("$FreeBSD: head/sys/kern/imgact_elf.c 218195 2011-02-02 16:35:10Z mdf $"); |
33 34#include "opt_compat.h" 35#include "opt_core.h" 36 37#include <sys/param.h> 38#include <sys/exec.h> 39#include <sys/fcntl.h> 40#include <sys/imgact.h> --- 1576 unchanged lines hidden (view full) --- 1617 EVENTHANDLER_INVOKE(app_coredump_error, td, 1618 "compress_core: length mismatch %x -> %x", 1619 chunk_len, len_compressed); 1620 error = EFAULT; 1621 break; 1622 } 1623 inbuf += chunk_len; 1624 len -= chunk_len; | 33 34#include "opt_compat.h" 35#include "opt_core.h" 36 37#include <sys/param.h> 38#include <sys/exec.h> 39#include <sys/fcntl.h> 40#include <sys/imgact.h> --- 1576 unchanged lines hidden (view full) --- 1617 EVENTHANDLER_INVOKE(app_coredump_error, td, 1618 "compress_core: length mismatch %x -> %x", 1619 chunk_len, len_compressed); 1620 error = EFAULT; 1621 break; 1622 } 1623 inbuf += chunk_len; 1624 len -= chunk_len; |
1625 if (ticks - PCPU_GET(switchticks) >= hogticks) 1626 uio_yield(); | 1625 maybe_yield(); |
1627 } 1628 1629 return (error); 1630} 1631#endif /* COMPRESS_USER_CORES */ 1632 1633static vm_prot_t 1634__elfN(trans_prot)(Elf_Word flags) --- 27 unchanged lines hidden --- | 1626 } 1627 1628 return (error); 1629} 1630#endif /* COMPRESS_USER_CORES */ 1631 1632static vm_prot_t 1633__elfN(trans_prot)(Elf_Word flags) --- 27 unchanged lines hidden --- |