-#define SCPYN(a, b) strncpy(a, b, sizeof(a))
-
-#define NMAX sizeof(utmp.ut_name)
-#define LMAX sizeof(utmp.ut_line)
-
-#define FALSE 0
-#define TRUE -1
-
-char nolog[] = "/etc/nologin";
-char qlog[] = ".hushlogin";
-char securetty[] = "/etc/securetty";
-char maildir[30] = "/usr/spool/mail/";
-char lastlog[] = "/usr/adm/lastlog";
-struct passwd nouser = {"", "nope", -1, -1, -1, "", "", "", "" };
-struct sgttyb ttyb;
-struct utmp utmp;
-char minusnam[16] = "-";
-
-char homedir[64] = "HOME=";
-char shell[64] = "SHELL=";
-char term[64] = "TERM=";
-char user[20] = "USER=";
-char *speeds[] =
- { "0", "50", "75", "110", "134", "150", "200", "300",
- "600", "1200", "1800", "2400", "4800", "9600", "19200", "38400" };
-#define NSPEEDS (sizeof (speeds) / sizeof (speeds[0]))
-
-char *envinit[] =
- {homedir, shell, "PATH=:/usr/ucb:/bin:/usr/bin", term, user, 0};
-
-struct passwd *pwd;
-struct passwd *getpwnam();
-char *strcat(), *rindex(), *index();
-int setpwent();
-char *ttyname();
-char *crypt();
-char *getpass();
-char *stypeof();
-extern char **environ;
-extern int errno;
-
-struct ttychars tc = {
- CERASE, CKILL, CINTR, CQUIT, CSTART,
- CSTOP, CEOF, CBRK, CSUSP, CDSUSP,
- CRPRNT, CFLUSH, CWERASE,CLNEXT
-};
+#define TTYGRPNAME "tty" /* name of group to own ttys */
+
+#define MOTDFILE "/etc/motd"
+#define MAILDIR "/usr/spool/mail"
+#define NOLOGIN "/etc/nologin"
+#define HUSHLOGIN ".hushlogin"
+#define LASTLOG "/usr/adm/lastlog"
+#define BSHELL "/bin/sh"