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

Diff of /pax-utils/scanmacho.c

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

Revision 1.6 Revision 1.7
1/* 1/*
2 * Copyright 2008 Gentoo Foundation 2 * Copyright 2008 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/scanmacho.c,v 1.6 2008/12/30 12:00:06 vapier Exp $ 4 * $Header: /var/cvsroot/gentoo-projects/pax-utils/scanmacho.c,v 1.7 2008/12/30 12:02:29 vapier Exp $
5 * 5 *
6 * based on scanelf by: 6 * based on scanelf by:
7 * Copyright 2003-2007 Ned Ludd - <solar@gentoo.org> 7 * Copyright 2003-2007 Ned Ludd - <solar@gentoo.org>
8 * Copyright 2004-2007 Mike Frysinger - <vapier@gentoo.org> 8 * Copyright 2004-2007 Mike Frysinger - <vapier@gentoo.org>
9 * for Darwin specific fun: 9 * for Darwin specific fun:
10 * 2008 Fabian Groffen - <grobian@gentoo.org> 10 * 2008 Fabian Groffen - <grobian@gentoo.org>
11 */ 11 */
12 12
13static const char *rcsid = "$Id: scanmacho.c,v 1.6 2008/12/30 12:00:06 vapier Exp $"; 13static const char *rcsid = "$Id: scanmacho.c,v 1.7 2008/12/30 12:02:29 vapier Exp $";
14const char * const argv0 = "scanmacho"; 14const char * const argv0 = "scanmacho";
15 15
16#include "paxinc.h" 16#include "paxinc.h"
17 17
18#define IS_MODIFIER(c) (c == '%' || c == '#' || c == '+') 18#define IS_MODIFIER(c) (c == '%' || c == '#' || c == '+')
154 *found_interp = 1; 154 *found_interp = 1;
155 free(lcmd); 155 free(lcmd);
156 return (be_wewy_wewy_quiet ? NULL : dylinker); 156 return (be_wewy_wewy_quiet ? NULL : dylinker);
157 } 157 }
158 } while (nextloadcmd(lcmd)); 158 } while (nextloadcmd(lcmd));
159 159
160 return NULL; 160 return NULL;
161} 161}
162 162
163static char *macho_file_soname(fatobj *fobj, char *found_soname) 163static char *macho_file_soname(fatobj *fobj, char *found_soname)
164{ 164{
186 *found_soname = 1; 186 *found_soname = 1;
187 free(lcmd); 187 free(lcmd);
188 return (be_wewy_wewy_quiet ? NULL : soname); 188 return (be_wewy_wewy_quiet ? NULL : soname);
189 } 189 }
190 } while (nextloadcmd(lcmd)); 190 } while (nextloadcmd(lcmd));
191 191
192 return NULL; 192 return NULL;
193} 193}
194 194
195 195
196/* scan a macho file and show all the fun stuff */ 196/* scan a macho file and show all the fun stuff */

Legend:
Removed from v.1.6  
changed lines
  Added in v.1.7

  ViewVC Help
Powered by ViewVC 1.1.20