/[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.79 Revision 1.80
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.79 2005/06/09 23:53:58 vapier Exp $ 4 * $Header: /var/cvsroot/gentoo-projects/pax-utils/scanelf.c,v 1.80 2005/06/13 03:09:51 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.79 2005/06/09 23:53:58 vapier Exp $"; 38static const char *rcsid = "$Id: scanelf.c,v 1.80 2005/06/13 03:09:51 vapier Exp $";
39#define argv0 "scanelf" 39#define argv0 "scanelf"
40 40
41#define IS_MODIFIER(c) (c == '%' || c == '#') 41#define IS_MODIFIER(c) (c == '%' || c == '#')
42 42
43 43
1010 opterr = 0; 1010 opterr = 0;
1011 while ((i=getopt_long(argc, argv, PARSE_FLAGS, long_opts, NULL)) != -1) { 1011 while ((i=getopt_long(argc, argv, PARSE_FLAGS, long_opts, NULL)) != -1) {
1012 switch (i) { 1012 switch (i) {
1013 1013
1014 case 'V': 1014 case 'V':
1015 printf("%s compiled %s\n%s\n" 1015 printf("pax-utils-%s: %s compiled %s\n%s\n"
1016 "%s written for Gentoo Linux by <solar and vapier @ gentoo.org>\n", 1016 "%s written for Gentoo by <solar and vapier @ gentoo.org>\n",
1017 __FILE__, __DATE__, rcsid, argv0); 1017 VERSION, __FILE__, __DATE__, rcsid, argv0);
1018 exit(EXIT_SUCCESS); 1018 exit(EXIT_SUCCESS);
1019 break; 1019 break;
1020 case 'h': usage(EXIT_SUCCESS); break; 1020 case 'h': usage(EXIT_SUCCESS); break;
1021 case 'f': 1021 case 'f':
1022 if (from_file) err("Don't specify -f twice"); 1022 if (from_file) err("Don't specify -f twice");

Legend:
Removed from v.1.79  
changed lines
  Added in v.1.80

  ViewVC Help
Powered by ViewVC 1.1.20