#include <minix/type.h>#include <sys/types.h>#include <sys/wait.h>#include <sys/stat.h>#include <sys/svrctl.h>#include <ttyent.h>#include <errno.h>#include <fcntl.h>#include <limits.h>#include <signal.h>#include <string.h>#include <time.h>#include <stdlib.h>#include <unistd.h>#include <utmp.h>Go to the source code of this file.
Classes | |
| struct | slotent |
Defines | |
| #define | PIDSLOTS 32 |
| #define | ERRCT_DISABLE 10 |
| #define | NO_PID 0 |
| #define | OPENFDS |
Functions | |
| void | tell (int fd, char *s) |
| void | report (int fd, char *label) |
| void | wtmp (int type, int linenr, char *line, pid_t pid) |
| void | startup (int linenr, struct ttyent *ttyp) |
| int | execute (char **cmd) |
| void | onhup (int sig) |
| void | onterm (int sig) |
| void | onabrt (int sig) |
| int | main (void) |
Variables | |
| char * | REBOOT_CMD [] = { "shutdown", "now", "CTRL-ALT-DEL", NULL } |
| struct ttyent | TT_REBOOT = { "console", "-", REBOOT_CMD, NULL } |
| char | PATH_UTMP [] = "/etc/utmp" |
| char | PATH_WTMP [] = "/usr/adm/wtmp" |
| struct slotent | slots [PIDSLOTS] |
| int | gothup = 0 |
| int | gotabrt = 0 |
| int | spawn = 1 |
| #define OPENFDS |
| char* REBOOT_CMD[] = { "shutdown", "now", "CTRL-ALT-DEL", NULL } |
1.5.8