/[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.174 Revision 1.175
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/scanelf.c,v 1.174 2007/01/18 08:12:55 solar Exp $ 4 * $Header: /var/cvsroot/gentoo-projects/pax-utils/scanelf.c,v 1.175 2007/01/18 08:15:16 solar 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
10#include "paxinc.h" 10#include "paxinc.h"
11 11
12static const char *rcsid = "$Id: scanelf.c,v 1.174 2007/01/18 08:12:55 solar Exp $"; 12static const char *rcsid = "$Id: scanelf.c,v 1.175 2007/01/18 08:15:16 solar 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 */
75caddr_t ldcache = 0; 75caddr_t ldcache = 0;
76size_t ldcache_size = 0; 76size_t ldcache_size = 0;
77unsigned long setpax = 0UL; 77unsigned long setpax = 0UL;
78 78
79int has_objdump = 0; 79int has_objdump = 0;
80
80/* find the path to a file by name */ 81/* find the path to a file by name */
81static char *which(const char *fname) 82static char *which(const char *fname)
82{ 83{
83 static char fullpath[BUFSIZ]; 84 static char fullpath[BUFSIZ];
84 char *path, *p; 85 char *path, *p;
98 } 99 }
99 free(path); 100 free(path);
100 return NULL; 101 return NULL;
101} 102}
102 103
103/* 1 on failue. 0 otherwise */ 104/* 1 on failure. 0 otherwise */
104static int rematch(const char *regex, const char *match, int cflags) 105static int rematch(const char *regex, const char *match, int cflags)
105{ 106{
106 regex_t preg; 107 regex_t preg;
107 int ret; 108 int ret;
108 109

Legend:
Removed from v.1.174  
changed lines
  Added in v.1.175

  ViewVC Help
Powered by ViewVC 1.1.20