aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMike Frysinger <vapier@gentoo.org>2007-08-20 09:54:15 +0000
committerMike Frysinger <vapier@gentoo.org>2007-08-20 09:54:15 +0000
commiteadbddb031aa17d85d3e38921588c0b9a79c8b54 (patch)
tree64ef2f52bd4519b28d0891f6527eb1b8ea8fe9f5 /paxinc.h
parentas pointed out by swegner, dont scan PHDRs that dont actually have a filesize... (diff)
downloadpax-utils-eadbddb031aa17d85d3e38921588c0b9a79c8b54.tar.gz
pax-utils-eadbddb031aa17d85d3e38921588c0b9a79c8b54.tar.bz2
pax-utils-eadbddb031aa17d85d3e38921588c0b9a79c8b54.zip
split xfuncs off into a sep file for all utils to use, cleanup misc things, and add some more comments
Diffstat (limited to 'paxinc.h')
-rw-r--r--paxinc.h8
1 files changed, 6 insertions, 2 deletions
diff --git a/paxinc.h b/paxinc.h
index 41fcefa..00d3779 100644
--- a/paxinc.h
+++ b/paxinc.h
@@ -1,7 +1,7 @@
/*
* Copyright 2005-2007 Gentoo Foundation
* Distributed under the terms of the GNU General Public License v2
- * $Header: /var/cvsroot/gentoo-projects/pax-utils/paxinc.h,v 1.9 2007/05/23 22:27:27 solar Exp $
+ * $Header: /var/cvsroot/gentoo-projects/pax-utils/paxinc.h,v 1.10 2007/08/20 09:54:15 vapier Exp $
*
* Copyright 2005-2007 Ned Ludd - <solar@gentoo.org>
* Copyright 2005-2007 Mike Frysinger - <vapier@gentoo.org>
@@ -13,6 +13,7 @@
#define _PAX_INC_H
#include "porting.h"
+#include "xfuncs.h"
#ifndef VERSION
# define VERSION "cvs"
@@ -56,7 +57,7 @@ typedef struct {
char mode[8];
char size[10];
char magic[2];
- } formated;
+ } formatted;
} buf;
#endif
} archive_member;
@@ -95,6 +96,9 @@ archive_member *ar_next(archive_handle *);
#define RED COLOR("31", "01")
#define YELLOW COLOR("33", "01")
+/* constant pointer to a constant buffer ... each program needs to set this */
+extern const char * const argv0;
+
/* we need the space before the last comma or we trigger a bug in gcc-2 :( */
#define warn(fmt, args...) \
fprintf(stderr, "%s%s%s: " fmt "\n", RED, argv0, NORM , ## args)