/[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.183 Revision 1.184
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.183 2007/06/29 19:49:26 solar Exp $ 4 * $Header: /var/cvsroot/gentoo-projects/pax-utils/scanelf.c,v 1.184 2007/08/12 16:35:25 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
10#include "paxinc.h" 10#include "paxinc.h"
11 11
12static const char *rcsid = "$Id: scanelf.c,v 1.183 2007/06/29 19:49:26 solar Exp $"; 12static const char *rcsid = "$Id: scanelf.c,v 1.184 2007/08/12 16:35:25 vapier Exp $";
13#define argv0 "scanelf" 13#define argv0 "scanelf"
14 14
15#define IS_MODIFIER(c) (c == '%' || c == '#' || c == '+') 15#define IS_MODIFIER(c) (c == '%' || c == '#' || c == '+')
16 16
17/* prototypes */ 17/* prototypes */
1546} 1546}
1547 1547
1548#endif 1548#endif
1549 1549
1550/* scan /etc/ld.so.conf for paths */ 1550/* scan /etc/ld.so.conf for paths */
1551static void scanelf_ldpath() 1551static void scanelf_ldpath(void)
1552{ 1552{
1553 char scan_l, scan_ul, scan_ull; 1553 char scan_l, scan_ul, scan_ull;
1554 int i = 0; 1554 int i = 0;
1555 1555
1556 if (!ldpaths[0]) 1556 if (!ldpaths[0])
1570 if (!scan_ul) scanelf_dir("/usr/lib"); 1570 if (!scan_ul) scanelf_dir("/usr/lib");
1571 if (!scan_ull) scanelf_dir("/usr/local/lib"); 1571 if (!scan_ull) scanelf_dir("/usr/local/lib");
1572} 1572}
1573 1573
1574/* scan env PATH for paths */ 1574/* scan env PATH for paths */
1575static void scanelf_envpath() 1575static void scanelf_envpath(void)
1576{ 1576{
1577 char *path, *p; 1577 char *path, *p;
1578 1578
1579 path = getenv("PATH"); 1579 path = getenv("PATH");
1580 if (!path) 1580 if (!path)
1962 /* don't want to free(env) as it contains the memory that backs 1962 /* don't want to free(env) as it contains the memory that backs
1963 * the envvals array of strings */ 1963 * the envvals array of strings */
1964 return envvals; 1964 return envvals;
1965} 1965}
1966 1966
1967static void parseenv() 1967static void parseenv(void)
1968{ 1968{
1969 qa_textrels = get_split_env("QA_TEXTRELS"); 1969 qa_textrels = get_split_env("QA_TEXTRELS");
1970 qa_execstack = get_split_env("QA_EXECSTACK"); 1970 qa_execstack = get_split_env("QA_EXECSTACK");
1971 qa_wx_load = get_split_env("QA_WX_LOAD"); 1971 qa_wx_load = get_split_env("QA_WX_LOAD");
1972} 1972}
1973 1973
1974#ifdef __PAX_UTILS_CLEANUP 1974#ifdef __PAX_UTILS_CLEANUP
1975static void cleanup() 1975static void cleanup(void)
1976{ 1976{
1977 free(out_format); 1977 free(out_format);
1978 free(qa_textrels); 1978 free(qa_textrels);
1979 free(qa_execstack); 1979 free(qa_execstack);
1980 free(qa_wx_load); 1980 free(qa_wx_load);

Legend:
Removed from v.1.183  
changed lines
  Added in v.1.184

  ViewVC Help
Powered by ViewVC 1.1.20