diff options
author | Lennart Poettering <lennart@poettering.net> | 2023-07-03 14:36:14 +0200 |
---|---|---|
committer | Luca Boccassi <luca.boccassi@gmail.com> | 2023-07-04 02:05:02 +0200 |
commit | c86a95082b032fc6a0ff83b732f70ff53e45e4b6 (patch) | |
tree | 02209224e447ccd68e5a94762b768c9b2f3ce6b5 /src/systemctl/systemctl-whoami.h | |
parent | test: wait for the interface to become routable after reconfiguring (diff) | |
download | systemd-c86a95082b032fc6a0ff83b732f70ff53e45e4b6.tar.xz systemd-c86a95082b032fc6a0ff83b732f70ff53e45e4b6.zip |
systemctl: implement a new "whoami" verb, that just returns unit of caller/PID
Diffstat (limited to 'src/systemctl/systemctl-whoami.h')
-rw-r--r-- | src/systemctl/systemctl-whoami.h | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/systemctl/systemctl-whoami.h b/src/systemctl/systemctl-whoami.h new file mode 100644 index 0000000000..abdd13b34f --- /dev/null +++ b/src/systemctl/systemctl-whoami.h @@ -0,0 +1,4 @@ +/* SPDX-License-Identifier: LGPL-2.1-or-later */ +#pragma once + +int verb_whoami(int argc, char *argv[], void *userdata); |