aboutsummaryrefslogtreecommitdiff
path: root/utils/ps.c
diff options
context:
space:
mode:
authorSamuel Thibault <samuel.thibault@ens-lyon.org>2020-11-23 02:00:58 +0100
committerSamuel Thibault <samuel.thibault@ens-lyon.org>2020-11-23 02:00:58 +0100
commit02bec9a7652b981ee00c5656e9235ee0cc897f99 (patch)
treeb571ca34e266506b4be83fefab6662af593ce106 /utils/ps.c
parent9e237b93a53bae03c31e0332b6a98f304157f20c (diff)
downloadhurd-02bec9a7652b981ee00c5656e9235ee0cc897f99.tar.gz
hurd-02bec9a7652b981ee00c5656e9235ee0cc897f99.tar.bz2
hurd-02bec9a7652b981ee00c5656e9235ee0cc897f99.zip
libps: support getting RPC names for WAIT output
* libps/Makefile (SRCS): Add ../utils/msgids.c. (../utils/msgids-CPPFLAGS): Add DATADIR macro. * libps/spec.c: Include "../utils/msgids.h". (get_rpc_name): Implement with msgid_info. * utils/msgids.c (parse_opt): Move end code to ... (msgids_scan_std): ... new function. * utils/msgids.h (msgids_scan_std): New prototype. * utils/ps.c (main): Call msgids_scan_std.
Diffstat (limited to 'utils/ps.c')
-rw-r--r--utils/ps.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/utils/ps.c b/utils/ps.c
index f5103239..2cf6e4bd 100644
--- a/utils/ps.c
+++ b/utils/ps.c
@@ -367,6 +367,8 @@ main(int argc, char *argv[])
/* Parse our command line. This shouldn't ever return an error. */
argp_parse (&argp, argc, argv, 0, 0, 0);
+ msgids_scan_std ();
+
err = proc_stat_list_create(context, &procset);
if (err)
error(1, err, "proc_stat_list_create");