/[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.232 Revision 1.233
1/* 1/*
2 * Copyright 2003-2007 Gentoo Foundation 2 * Copyright 2003-2007 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/scanelf.c,v 1.232 2011/09/27 22:20:07 vapier Exp $ 4 * $Header: /var/cvsroot/gentoo-projects/pax-utils/scanelf.c,v 1.233 2011/10/03 16:19:18 vapier Exp $
5 * 5 *
6 * Copyright 2003-2007 Ned Ludd - <solar@gentoo.org> 6 * Copyright 2003-2007 Ned Ludd - <solar@gentoo.org>
7 * Copyright 2004-2007 Mike Frysinger - <vapier@gentoo.org> 7 * Copyright 2004-2007 Mike Frysinger - <vapier@gentoo.org>
8 */ 8 */
9 9
10static const char rcsid[] = "$Id: scanelf.c,v 1.232 2011/09/27 22:20:07 vapier Exp $"; 10static const char rcsid[] = "$Id: scanelf.c,v 1.233 2011/10/03 16:19:18 vapier Exp $";
11const char argv0[] = "scanelf"; 11const char argv0[] = "scanelf";
12 12
13#include "paxinc.h" 13#include "paxinc.h"
14 14
15#define IS_MODIFIER(c) (c == '%' || c == '#' || c == '+') 15#define IS_MODIFIER(c) (c == '%' || c == '#' || c == '+')
1700 } 1700 }
1701 1701
1702 if (*path != '/') 1702 if (*path != '/')
1703 continue; 1703 continue;
1704 1704
1705 xarraypush(ldpaths, path, strlen(path)); 1705 xarraypush_str(ldpaths, path);
1706 } 1706 }
1707 free(path); 1707 free(path);
1708 1708
1709 fclose(fp); 1709 fclose(fp);
1710 1710
1745 } 1745 }
1746 1746
1747 while ((p = strsep(&b, ":"))) { 1747 while ((p = strsep(&b, ":"))) {
1748 if (*p == '\0') 1748 if (*p == '\0')
1749 continue; 1749 continue;
1750 xarraypush(ldpaths, p, strlen(p)); 1750 xarraypush_str(ldpaths, p);
1751 } 1751 }
1752 1752
1753 free(b); 1753 free(b);
1754 fclose(fp); 1754 fclose(fp);
1755 return i; 1755 return i;
1972 if (freopen(optarg, "w", stdout) == NULL) 1972 if (freopen(optarg, "w", stdout) == NULL)
1973 err("Could not open output stream '%s': %s", optarg, strerror(errno)); 1973 err("Could not open output stream '%s': %s", optarg, strerror(errno));
1974 break; 1974 break;
1975 } 1975 }
1976 case 'k': 1976 case 'k':
1977 xarraypush(find_section_arr, optarg, strlen(optarg)); 1977 xarraypush_str(find_section_arr, optarg);
1978 break; 1978 break;
1979 case 's': { 1979 case 's': {
1980 if (find_sym) warn("You prob don't want to specify -s twice"); 1980 if (find_sym) warn("You prob don't want to specify -s twice");
1981 find_sym = optarg; 1981 find_sym = optarg;
1982 break; 1982 break;
1983 } 1983 }
1984 case 'N': 1984 case 'N':
1985 xarraypush(find_lib_arr, optarg, strlen(optarg)); 1985 xarraypush_str(find_lib_arr, optarg);
1986 break; 1986 break;
1987 case 'F': { 1987 case 'F': {
1988 if (out_format) warn("You prob don't want to specify -F twice"); 1988 if (out_format) warn("You prob don't want to specify -F twice");
1989 out_format = optarg; 1989 out_format = optarg;
1990 break; 1990 break;

Legend:
Removed from v.1.232  
changed lines
  Added in v.1.233

  ViewVC Help
Powered by ViewVC 1.1.20