From 02bec9a7652b981ee00c5656e9235ee0cc897f99 Mon Sep 17 00:00:00 2001 From: Samuel Thibault Date: Mon, 23 Nov 2020 02:00:58 +0100 Subject: 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. --- utils/ps.c | 2 ++ 1 file changed, 2 insertions(+) (limited to 'utils/ps.c') 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"); -- cgit v1.2.3