Deleted Added
full compact
brandelf.c (145807) brandelf.c (146466)
1/*-
2 * Copyright (c) 2000, 2001 David O'Brien
3 * Copyright (c) 1996 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:

--- 14 unchanged lines hidden (view full) ---

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
30#include <sys/cdefs.h>
1/*-
2 * Copyright (c) 2000, 2001 David O'Brien
3 * Copyright (c) 1996 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:

--- 14 unchanged lines hidden (view full) ---

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
30#include <sys/cdefs.h>
31__FBSDID("$FreeBSD: head/usr.bin/brandelf/brandelf.c 145807 2005-05-02 17:19:33Z green $");
31__FBSDID("$FreeBSD: head/usr.bin/brandelf/brandelf.c 146466 2005-05-21 09:55:10Z ru $");
32
33#include <sys/types.h>
34#include <sys/elf_common.h>
35#include <sys/errno.h>
36#include <err.h>
37#include <fcntl.h>
38#include <stdio.h>
39#include <stdlib.h>

--- 119 unchanged lines hidden (view full) ---

159 }
160
161 return retval;
162}
163
164static void
165usage(void)
166{
32
33#include <sys/types.h>
34#include <sys/elf_common.h>
35#include <sys/errno.h>
36#include <err.h>
37#include <fcntl.h>
38#include <stdio.h>
39#include <stdlib.h>

--- 119 unchanged lines hidden (view full) ---

159 }
160
161 return retval;
162}
163
164static void
165usage(void)
166{
167fprintf(stderr, "usage: brandelf [-f ELF ABI number] [-v] [-l] [-t string] file ...\n");
167 (void)fprintf(stderr,
168 "usage: brandelf [-lv] [-f ELF_ABI_number] [-t string] file ...\n");
168 exit(1);
169}
170
171static const char *
172iselftype(int etype)
173{
174 size_t elfwalk;
175

--- 34 unchanged lines hidden ---
169 exit(1);
170}
171
172static const char *
173iselftype(int etype)
174{
175 size_t elfwalk;
176

--- 34 unchanged lines hidden ---