diff options
author | Sergey Poznyakoff <gray@gnu.org.ua> | 2016-02-25 16:17:36 +0200 |
---|---|---|
committer | Sergey Poznyakoff <gray@gnu.org.ua> | 2016-02-25 16:17:36 +0200 |
commit | c9abb69acae95a0136ee1b03dec8b08d9639005e (patch) | |
tree | fa5849647e6d9430289a71035630475a82f4cf54 /src/pies.h | |
parent | 1ec50721c1aa5959009f0c74afc8b7796f4ffd20 (diff) | |
download | pies-c9abb69acae95a0136ee1b03dec8b08d9639005e.tar.gz pies-c9abb69acae95a0136ee1b03dec8b08d9639005e.tar.bz2 |
Implement "telinit environ" ctl command
* src/ctl.c: New endpoint "environ"
* src/pies.h (sysvinit_envlocate)
(sysvinit_envdelete)
(sysvinit_envupdate): New protos.
* src/piesctl.c: New subcommand "telinit environ".
* src/sysvinit.c (sysvinit_envlocate)
(sysvinit_envdelete)
(sysvinit_envupdate): New functions.
(sysvinit_begin): Create allocated copies of
instance and pies_master_argv to avoid them being
rewritten by calls to mf_proctitle_format
Diffstat (limited to 'src/pies.h')
-rw-r--r-- | src/pies.h | 4 |
1 files changed, 4 insertions, 0 deletions
@@ -548,2 +548,6 @@ void sysvinit_parse_argv (int argc, char **argv); +int sysvinit_envlocate (char const *name, char **value); +int sysvinit_envdelete (char const *name); +int sysvinit_envupdate (char const *var); + extern char *sysvinit_environ_hint[]; |