summaryrefslogtreecommitdiff
path: root/loginrec.c
diff options
context:
space:
mode:
authorDamien Miller <djm@mindrot.org>2000-08-29 14:30:37 +1100
committerDamien Miller <djm@mindrot.org>2000-08-29 14:30:37 +1100
commite5192fafbfbc49afaa64c7b9f3c8d90efe2f1297 (patch)
tree865a8be1325fd1881b13f3e570d288d406484756 /loginrec.c
parent6d8c11f627d75f5e48dfcb23c0fe9e65a7b522eb (diff)
- (djm) NeXT tweaks from Ben Lindstrom <mouring@pconline.com>
Diffstat (limited to 'loginrec.c')
-rw-r--r--loginrec.c15
1 files changed, 8 insertions, 7 deletions
diff --git a/loginrec.c b/loginrec.c
index 2c6330a04..61bceb180 100644
--- a/loginrec.c
+++ b/loginrec.c
@@ -132,25 +132,26 @@
132 132
133/** 133/**
134 ** TODO: 134 ** TODO:
135 ** homegrown ttyslot()q 135 ** homegrown ttyslot()
136 ** test, test, test 136 ** test, test, test
137 ** 137 **
138 ** Platform status: 138 ** Platform status:
139 ** ---------------- 139 ** ----------------
140 ** 140 **
141 ** Known good: 141 ** Known good:
142 ** Linux (Redhat 6.2, need more variants) 142 ** Linux (Redhat 6.2, Debian)
143 ** Solaris
143 ** HP-UX 10.20 (gcc only) 144 ** HP-UX 10.20 (gcc only)
144 ** IRIX 145 ** IRIX
146 ** NeXT - M68k/HPPA (4.2/3.3)
145 ** 147 **
146 ** Testing required: Please send reports! 148 ** Testing required: Please send reports!
147 ** Solaris
148 ** NetBSD 149 ** NetBSD
149 ** HP-UX 11 150 ** HP-UX 11
150 ** AIX 151 ** AIX
151 ** 152 **
152 ** Platforms with known problems: 153 ** Platforms with known problems:
153 ** NeXT 154 ** Some variants of Slackware Linux
154 ** 155 **
155 **/ 156 **/
156 157
@@ -160,7 +161,7 @@
160#include "xmalloc.h" 161#include "xmalloc.h"
161#include "loginrec.h" 162#include "loginrec.h"
162 163
163RCSID("$Id: loginrec.c,v 1.21 2000/08/18 04:08:38 djm Exp $"); 164RCSID("$Id: loginrec.c,v 1.22 2000/08/29 03:30:37 djm Exp $");
164 165
165/** 166/**
166 ** prototypes for helper functions in this file 167 ** prototypes for helper functions in this file
@@ -724,7 +725,7 @@ utmp_write_direct(struct logininfo *li, struct utmp *ut)
724 725
725 /* FIXME: (ATL) ttyslot() needs local implementation */ 726 /* FIXME: (ATL) ttyslot() needs local implementation */
726 727
727#if defined(SUNOS4) && defined(HAVE_GETTTYENT) 728#if defined(HAVE_GETTTYENT)
728 register struct ttyent *ty; 729 register struct ttyent *ty;
729 730
730 tty=0; 731 tty=0;
@@ -745,7 +746,7 @@ utmp_write_direct(struct logininfo *li, struct utmp *ut)
745 746
746 tty = ttyslot(); /* seems only to work for /dev/ttyp? style names */ 747 tty = ttyslot(); /* seems only to work for /dev/ttyp? style names */
747 748
748#endif /* SUNOS4 && HAVE_GETTTYENT */ 749#endif /* HAVE_GETTTYENT */
749 750
750 if (tty > 0 && (fd = open(UTMP_FILE, O_RDWR|O_CREAT, 0644)) >= 0) { 751 if (tty > 0 && (fd = open(UTMP_FILE, O_RDWR|O_CREAT, 0644)) >= 0) {
751 (void)lseek(fd, (off_t)(tty * sizeof(struct utmp)), SEEK_SET); 752 (void)lseek(fd, (off_t)(tty * sizeof(struct utmp)), SEEK_SET);