diff options
author | Sergey Poznyakoff <gray@gnu.org.ua> | 2013-01-05 11:56:51 +0200 |
---|---|---|
committer | Sergey Poznyakoff <gray@gnu.org.ua> | 2013-01-05 11:56:51 +0200 |
commit | 4f7c28158308563dcad912d87a0031d095d4690a (patch) | |
tree | f8badf11119135268fb58b77e86667b12d0f090c /src/pies.h | |
parent | d8221ce9bdd2d7ae6162bed0e1c85e9f7a3ff8f2 (diff) | |
download | pies-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')
-rw-r--r-- | src/pies.h | 11 |
1 files changed, 9 insertions, 2 deletions
@@ -458,4 +458,11 @@ 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); |