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 /pspax.c
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 'pspax.c')
-rw-r--r--pspax.c13
1 files changed, 7 insertions, 6 deletions
diff --git a/pspax.c b/pspax.c
index 16370ef..de39ac9 100644
--- a/pspax.c
+++ b/pspax.c
@@ -12,6 +12,9 @@
* cc -o pspax pspax.c -DWANT_SYSCAP -lcap
*/
+static const char *rcsid = "$Id: pspax.c,v 1.38 2007/08/20 09:54:15 vapier Exp $";
+const char * const argv0 = "pspax";
+
#include "paxinc.h"
#include <grp.h>
@@ -24,8 +27,6 @@
#endif
#define PROC_DIR "/proc"
-static const char *rcsid = "$Id: pspax.c,v 1.37 2006/12/12 23:34:34 solar Exp $";
-#define argv0 "pspax"
@@ -79,8 +80,8 @@ static int get_proc_maps(pid_t pid)
continue;
/* 0x0-0x0 rwxp fffff000 00:00 0 */
/* 0x0-0x0 R+W+XP fffff000 00:00 0 */
- ++p; // ' '
- ++p; // r
+ ++p; /* ' ' */
+ ++p; /* r */
if (*p == '+')
++p;
/* FIXME: all of wx, w+, +x, ++ indicate w|x */
@@ -116,8 +117,8 @@ static int print_executable_mappings(pid_t pid)
continue;
/* 0x0-0x0 rwxp fffff000 00:00 0 */
/* 0x0-0x0 R+W+XP fffff000 00:00 0 */
- ++p; // ' '
- ++p; // r
+ ++p; /* ' ' */
+ ++p; /* r */
if (*p == '+')
++p;
/* FIXME: all of wx, w+, +x, ++ indicate w|x */