projects
/
oweals
/
busybox.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
hush: fix a bug in argv restoration after sourcing a file
[oweals/busybox.git]
/
procps
/
pmap.c
diff --git
a/procps/pmap.c
b/procps/pmap.c
index bb5f9e7c2172c29eb06b4592d6e4691cd986da39..aa221cfb89530971d740a9705daa55f8145ada3b 100644
(file)
--- a/
procps/pmap.c
+++ b/
procps/pmap.c
@@
-8,22
+8,22
@@
* for details.
*/
* for details.
*/
-//applet:IF_PMAP(APPLET(pmap, _BB_DIR_USR_BIN, _BB_SUID_DROP))
-//kbuild:lib-$(CONFIG_PMAP) += pmap.o
-
//config:config PMAP
//config: bool "pmap"
//config: default y
//config: help
//config: Display processes' memory mappings.
//config:config PMAP
//config: bool "pmap"
//config: default y
//config: help
//config: Display processes' memory mappings.
+//applet:IF_PMAP(APPLET(pmap, BB_DIR_USR_BIN, BB_SUID_DROP))
+//kbuild:lib-$(CONFIG_PMAP) += pmap.o
+
//usage:#define pmap_trivial_usage
//usage:#define pmap_trivial_usage
-//usage: "[-x
][-
q] PID"
+//usage: "[-xq] PID"
//usage:#define pmap_full_usage "\n\n"
//usage:#define pmap_full_usage "\n\n"
-//usage: "Display
detailed precesses' memory usage\n
"
-//usage:
"\nOptions:
"
-//usage:
"\n -x s
how details"
-//usage:
"\n -q q
uiet"
+//usage: "Display
process memory usage
"
+//usage:
"\n
"
+//usage:
"\n -x S
how details"
+//usage:
"\n -q Q
uiet"
#include "libbb.h"
#include "libbb.h"
@@
-66,7
+66,7
@@
static int procps_get_maps(pid_t pid, unsigned opt)
int ret;
char buf[256];
int ret;
char buf[256];
- read_cmdline(buf, sizeof(buf), pid,
"no such process"
);
+ read_cmdline(buf, sizeof(buf), pid,
NULL
);
printf("%u: %s\n", (int)pid, buf);
if (!(opt & OPT_q) && (opt & OPT_x))
printf("%u: %s\n", (int)pid, buf);
if (!(opt & OPT_q) && (opt & OPT_x))