path: root/src/pies.h
authorSergey Poznyakoff <>2016-02-25 14:17:36 (GMT)
committer Sergey Poznyakoff <>2016-02-25 14:17:36 (GMT)
commitc9abb69acae95a0136ee1b03dec8b08d9639005e (patch) (side-by-side diff)
treefa5849647e6d9430289a71035630475a82f4cf54 /src/pies.h
parent1ec50721c1aa5959009f0c74afc8b7796f4ffd20 (diff)
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') (more/less context) (ignore whitespace changes)
1 files changed, 4 insertions, 0 deletions
diff --git a/src/pies.h b/src/pies.h
index c858932..6fce820 100644
--- a/src/pies.h
+++ b/src/pies.h
@@ -546,6 +546,10 @@ void sysvinit_report (struct json_value *obj);
int sysvinit_set_runlevel (int newlevel);
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[];
extern char *init_fifo;

Return to:

Send suggestions and report system problems to the System administrator.