/[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.7 Revision 1.8
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.7 2008/12/30 12:02:29 vapier Exp $ 4 * $Header: /var/cvsroot/gentoo-projects/pax-utils/scanmacho.c,v 1.8 2008/12/30 12:34:28 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.7 2008/12/30 12:02:29 vapier Exp $"; 13static const char *rcsid = "$Id: scanmacho.c,v 1.8 2008/12/30 12:34:28 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 == '+')
190 } while (nextloadcmd(lcmd)); 190 } while (nextloadcmd(lcmd));
191 191
192 return NULL; 192 return NULL;
193} 193}
194 194
195
196/* scan a macho file and show all the fun stuff */ 195/* scan a macho file and show all the fun stuff */
197#define prints(str) write(fileno(stdout), str, strlen(str)) 196#define prints(str) write(fileno(stdout), str, strlen(str))
198static int scanmacho_fatobj(fatobj *fobj) 197static int scanmacho_fatobj(fatobj *fobj)
199{ 198{
200 unsigned long i; 199 unsigned long i;
520 } 519 }
521 if (fp != stdin) 520 if (fp != stdin)
522 fclose(fp); 521 fclose(fp);
523 return ret; 522 return ret;
524} 523}
525
526 524
527/* scan env PATH for paths */ 525/* scan env PATH for paths */
528static void scanelf_envpath(void) 526static void scanelf_envpath(void)
529{ 527{
530 char *path, *p; 528 char *path, *p;

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

  ViewVC Help
Powered by ViewVC 1.1.20