summaryrefslogtreecommitdiffabout
path: root/src/pies.h
authorSergey Poznyakoff <gray@gnu.org.ua>2013-01-05 09:56:51 (GMT)
committer Sergey Poznyakoff <gray@gnu.org.ua>2013-01-05 09:56:51 (GMT)
commit4f7c28158308563dcad912d87a0031d095d4690a (patch) (side-by-side diff)
treef8badf11119135268fb58b77e86667b12d0f090c /src/pies.h
parentd8221ce9bdd2d7ae6162bed0e1c85e9f7a3ff8f2 (diff)
downloadpies-4f7c28158308563dcad912d87a0031d095d4690a.tar.gz
pies-4f7c28158308563dcad912d87a0031d095d4690a.tar.bz2
Write utmp/wtmp records in sysvinit mode.
* configure.ac: Check for utmp.h, utmpx.h * src/utmp.c: New file. * src/Makefile.am: Add utmp.c * src/pies.h (sysvinit_acct): New proto. * src/progman.c (prog_start, progman_cleanup): Call sysvinit_acct. * src/sysvinit.c (inittrans): Call sysvinit_acct. Set proctitle.
Diffstat (limited to 'src/pies.h') (more/less context) (ignore whitespace changes)
-rw-r--r--src/pies.h11
1 files changed, 9 insertions, 2 deletions
diff --git a/src/pies.h b/src/pies.h
index fc4f59c..e7ad1c6 100644
--- a/src/pies.h
+++ b/src/pies.h
@@ -456,6 +456,13 @@ struct inetd_builtin *inetd_builtin_lookup (const char *service, int socktype);
void sysvinit_begin (void);
int inittrans (void);
int is_comp_wait (struct component *comp);
-
-
+
+/* utmp.c */
+#define SYSV_ACCT_BOOT 0
+#define SYSV_ACCT_RUNLEVEL 1
+#define SYSV_ACCT_PROC_START 2
+#define SYSV_ACCT_PROC_STOP 3
+
+void sysvinit_acct (int what, const char *user, const char *id, pid_t pid,
+ const char *line);

Return to:

Send suggestions and report system problems to the System administrator.