aboutsummaryrefslogtreecommitdiff
path: root/src/pies.h
diff options
context:
space:
mode:
authorSergey Poznyakoff <gray@gnu.org.ua>2016-02-25 16:17:36 +0200
committerSergey Poznyakoff <gray@gnu.org.ua>2016-02-25 16:17:36 +0200
commitc9abb69acae95a0136ee1b03dec8b08d9639005e (patch)
treefa5849647e6d9430289a71035630475a82f4cf54 /src/pies.h
parent1ec50721c1aa5959009f0c74afc8b7796f4ffd20 (diff)
downloadpies-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.h4
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);
546int sysvinit_set_runlevel (int newlevel); 546int sysvinit_set_runlevel (int newlevel);
547void sysvinit_parse_argv (int argc, char **argv); 547void sysvinit_parse_argv (int argc, char **argv);
548 548
549int sysvinit_envlocate (char const *name, char **value);
550int sysvinit_envdelete (char const *name);
551int sysvinit_envupdate (char const *var);
552
549extern char *sysvinit_environ_hint[]; 553extern char *sysvinit_environ_hint[];
550extern char *init_fifo; 554extern char *init_fifo;
551 555

Return to:

Send suggestions and report system problems to the System administrator.