nlist.c (165903) | nlist.c (200150) |
---|---|
1/* 2 * Copyright (c) 1989, 1993 3 * The Regents of the University of California. 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 --- 17 unchanged lines hidden (view full) --- 26 * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF 27 * SUCH DAMAGE. 28 */ 29 30#if defined(LIBC_SCCS) && !defined(lint) 31static char sccsid[] = "@(#)nlist.c 8.1 (Berkeley) 6/4/93"; 32#endif /* LIBC_SCCS and not lint */ 33#include <sys/cdefs.h> | 1/* 2 * Copyright (c) 1989, 1993 3 * The Regents of the University of California. 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 --- 17 unchanged lines hidden (view full) --- 26 * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF 27 * SUCH DAMAGE. 28 */ 29 30#if defined(LIBC_SCCS) && !defined(lint) 31static char sccsid[] = "@(#)nlist.c 8.1 (Berkeley) 6/4/93"; 32#endif /* LIBC_SCCS and not lint */ 33#include <sys/cdefs.h> |
34__FBSDID("$FreeBSD: head/lib/libc/gen/nlist.c 165903 2007-01-09 00:28:16Z imp $"); | 34__FBSDID("$FreeBSD: head/lib/libc/gen/nlist.c 200150 2009-12-05 19:31:38Z ed $"); |
35 36#include "namespace.h" 37#include <sys/param.h> 38#include <sys/mman.h> 39#include <sys/stat.h> 40#include <sys/file.h> 41#include <arpa/inet.h> 42 --- 161 unchanged lines hidden (view full) --- 204/* 205 * __elf_is_okay__ - Determine if ehdr really 206 * is ELF and valid for the target platform. 207 * 208 * WARNING: This is NOT an ELF ABI function and 209 * as such its use should be restricted. 210 */ 211int | 35 36#include "namespace.h" 37#include <sys/param.h> 38#include <sys/mman.h> 39#include <sys/stat.h> 40#include <sys/file.h> 41#include <arpa/inet.h> 42 --- 161 unchanged lines hidden (view full) --- 204/* 205 * __elf_is_okay__ - Determine if ehdr really 206 * is ELF and valid for the target platform. 207 * 208 * WARNING: This is NOT an ELF ABI function and 209 * as such its use should be restricted. 210 */ 211int |
212__elf_is_okay__(ehdr) 213 Elf_Ehdr *ehdr; | 212__elf_is_okay__(Elf_Ehdr *ehdr) |
214{ 215 int retval = 0; 216 /* 217 * We need to check magic, class size, endianess, 218 * and version before we look at the rest of the 219 * Elf_Ehdr structure. These few elements are 220 * represented in a machine independant fashion. 221 */ --- 191 unchanged lines hidden --- | 213{ 214 int retval = 0; 215 /* 216 * We need to check magic, class size, endianess, 217 * and version before we look at the rest of the 218 * Elf_Ehdr structure. These few elements are 219 * represented in a machine independant fashion. 220 */ --- 191 unchanged lines hidden --- |