/[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.13 Revision 1.14
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/Attic/scanmacho.c,v 1.13 2008/12/30 13:34:46 vapier Exp $ 4 * $Header: /var/cvsroot/gentoo-projects/pax-utils/Attic/scanmacho.c,v 1.14 2009/03/15 08:56:14 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.13 2008/12/30 13:34:46 vapier Exp $"; 13static const char *rcsid = "$Id: scanmacho.c,v 1.14 2009/03/15 08:56:14 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 == '+')
150 150
151 return NULL; 151 return NULL;
152} 152}
153 153
154/* scan a macho file and show all the fun stuff */ 154/* scan a macho file and show all the fun stuff */
155#define prints(str) write(fileno(stdout), str, strlen(str)) 155#define prints(str) ({ ssize_t ret = write(fileno(stdout), str, strlen(str)); ret; })
156static int scanmacho_fatobj(fatobj *fobj) 156static int scanmacho_fatobj(fatobj *fobj)
157{ 157{
158 unsigned long i; 158 unsigned long i;
159 char found_needed, found_interp, found_soname, found_lib, found_file; 159 char found_needed, found_interp, found_soname, found_lib, found_file;
160 static char *out_buffer = NULL; 160 static char *out_buffer = NULL;

Legend:
Removed from v.1.13  
changed lines
  Added in v.1.14

  ViewVC Help
Powered by ViewVC 1.1.20