/[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.64 Revision 1.65
1/* 1/*
2 * Copyright 2003-2005 Gentoo Foundation 2 * Copyright 2003-2005 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.64 2005/05/29 19:42:09 solar Exp $ 4 * $Header: /var/cvsroot/gentoo-projects/pax-utils/scanelf.c,v 1.65 2005/05/30 03:23:07 vapier Exp $
5 * 5 *
6 ******************************************************************** 6 ********************************************************************
7 * This program is free software; you can redistribute it and/or 7 * This program is free software; you can redistribute it and/or
8 * modify it under the terms of the GNU General Public License as 8 * modify it under the terms of the GNU General Public License as
9 * published by the Free Software Foundation; either version 2 of the 9 * published by the Free Software Foundation; either version 2 of the
33#include <dirent.h> 33#include <dirent.h>
34#include <getopt.h> 34#include <getopt.h>
35#include <assert.h> 35#include <assert.h>
36#include "paxelf.h" 36#include "paxelf.h"
37 37
38static const char *rcsid = "$Id: scanelf.c,v 1.64 2005/05/29 19:42:09 solar Exp $"; 38static const char *rcsid = "$Id: scanelf.c,v 1.65 2005/05/30 03:23:07 vapier Exp $";
39#define argv0 "scanelf" 39#define argv0 "scanelf"
40 40
41 41
42 42
43/* prototypes */ 43/* prototypes */
796 break; 796 break;
797 case 'o': { 797 case 'o': {
798 FILE *fp = NULL; 798 FILE *fp = NULL;
799 if ((fp = freopen(optarg, "w", stdout)) == NULL) 799 if ((fp = freopen(optarg, "w", stdout)) == NULL)
800 err("Could not open output stream '%s': %s", optarg, strerror(errno)); 800 err("Could not open output stream '%s': %s", optarg, strerror(errno));
801 stdout = fp; 801 SET_STDOUT(fp);
802 break; 802 break;
803 } 803 }
804 804
805 case 's': { 805 case 's': {
806 size_t len; 806 size_t len;

Legend:
Removed from v.1.64  
changed lines
  Added in v.1.65

  ViewVC Help
Powered by ViewVC 1.1.20