/[gentoo-projects]/pax-utils/scanelf.c
Gentoo

Diff of /pax-utils/scanelf.c

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

Revision 1.145 Revision 1.146
1/* 1/*
2 * Copyright 2003-2006 Gentoo Foundation 2 * Copyright 2003-2006 Gentoo Foundation
3 * Distributed under the terms of the GNU General Public License v2 3 * Distributed under the terms of the GNU General Public License v2
4 * $Header: /var/cvsroot/gentoo-projects/pax-utils/Attic/scanelf.c,v 1.145 2006/05/14 19:08:56 kevquinn Exp $ 4 * $Header: /var/cvsroot/gentoo-projects/pax-utils/Attic/scanelf.c,v 1.146 2006/05/14 21:04:25 vapier Exp $
5 * 5 *
6 * Copyright 2003-2006 Ned Ludd - <solar@gentoo.org> 6 * Copyright 2003-2006 Ned Ludd - <solar@gentoo.org>
7 * Copyright 2004-2006 Mike Frysinger - <vapier@gentoo.org> 7 * Copyright 2004-2006 Mike Frysinger - <vapier@gentoo.org>
8 */ 8 */
9 9
13#endif 13#endif
14#if defined(__FreeBSD__) || defined(__DragonFly__) 14#if defined(__FreeBSD__) || defined(__DragonFly__)
15 #include <elf-hints.h> 15 #include <elf-hints.h>
16#endif 16#endif
17 17
18static const char *rcsid = "$Id: scanelf.c,v 1.145 2006/05/14 19:08:56 kevquinn Exp $"; 18static const char *rcsid = "$Id: scanelf.c,v 1.146 2006/05/14 21:04:25 vapier Exp $";
19#define argv0 "scanelf" 19#define argv0 "scanelf"
20 20
21#define IS_MODIFIER(c) (c == '%' || c == '#' || c == '+') 21#define IS_MODIFIER(c) (c == '%' || c == '#' || c == '+')
22 22
23#define do_state(option, flag) \ 23#define do_state(option, flag) \
1654 break; 1654 break;
1655 case 'M': 1655 case 'M':
1656 match_bits = atoi(optarg); 1656 match_bits = atoi(optarg);
1657 break; 1657 break;
1658 case 'o': { 1658 case 'o': {
1659 FILE *fp = NULL;
1660 if ((fp = freopen(optarg, "w", stdout)) == NULL) 1659 if (freopen(optarg, "w", stdout) == NULL)
1661 err("Could not open output stream '%s': %s", optarg, strerror(errno)); 1660 err("Could not open output stream '%s': %s", optarg, strerror(errno));
1662 SET_STDOUT(fp);
1663 break; 1661 break;
1664 } 1662 }
1665 case 'k': 1663 case 'k':
1666 if (find_section) warn("You prob don't want to specify -k twice"); 1664 if (find_section) warn("You prob don't want to specify -k twice");
1667 find_section = optarg; 1665 find_section = optarg;

Legend:
Removed from v.1.145  
changed lines
  Added in v.1.146

  ViewVC Help
Powered by ViewVC 1.1.20