- (djm) NeXT tweaks from Ben Lindstrom <mouring@pconline.com>

This commit is contained in:
Damien Miller 2000-08-29 14:30:37 +11:00
parent 6d8c11f627
commit e5192fafbf
5 changed files with 12 additions and 35 deletions

View File

@ -4,6 +4,7 @@
Garrick James <garrick@james.net> Garrick James <garrick@james.net>
- (djm) Check for SCO pty naming style (ptyp%d/ttyp%d). Based on fix from - (djm) Check for SCO pty naming style (ptyp%d/ttyp%d). Based on fix from
Bastian Trompetter <btrompetter@firemail.de> Bastian Trompetter <btrompetter@firemail.de>
- (djm) NeXT tweaks from Ben Lindstrom <mouring@pconline.com>
- More OpenBSD updates: - More OpenBSD updates:
- deraadt@cvs.openbsd.org 2000/08/24 15:46:59 - deraadt@cvs.openbsd.org 2000/08/24 15:46:59
[scp.c] [scp.c]

4
TODO
View File

@ -9,10 +9,6 @@
- Cleanup configure.in - Cleanup configure.in
- Next now has sigaction() based on sigvec(). But it sill does not
seem to act correctly. Ctrl-C and Ctrl-Z don't return echo to the
underlying shell.
- utmp/wtmp logging does not work on NeXT - utmp/wtmp logging does not work on NeXT
- Complete Tru64 SIA support - Complete Tru64 SIA support

View File

@ -122,15 +122,13 @@ case "$host" in
need_dash_r=1 need_dash_r=1
;; ;;
*-next-*) *-next-*)
# hardwire lastlog location (can't detect it on some versions)
conf_lastlog_location="/usr/adm/lastlog" conf_lastlog_location="/usr/adm/lastlog"
conf_utmp_location=/etc/utmp conf_utmp_location=/etc/utmp
conf_wtmp_location=/usr/adm/wtmp
MAIL=/usr/spool/mail
AC_DEFINE(HAVE_NEXT) AC_DEFINE(HAVE_NEXT)
CFLAGS="$CFLAGS -I/usr/local/include" CFLAGS="$CFLAGS -I/usr/local/include"
MAIL=/usr/spool/mail
AC_MSG_WARN([*** Tested: PA-RISC/m68k Untested: Sparc/Intel]) AC_MSG_WARN([*** Tested: PA-RISC/m68k Untested: Sparc/Intel])
AC_MSG_WARN([*** Expect 'scp' to fail!])
AC_MSG_WARN([*** Please report any problems, thanks])
;; ;;
*-*-solaris*) *-*-solaris*)
CFLAGS="$CFLAGS -I/usr/local/include" CFLAGS="$CFLAGS -I/usr/local/include"

View File

@ -132,25 +132,26 @@
/** /**
** TODO: ** TODO:
** homegrown ttyslot()q ** homegrown ttyslot()
** test, test, test ** test, test, test
** **
** Platform status: ** Platform status:
** ---------------- ** ----------------
** **
** Known good: ** Known good:
** Linux (Redhat 6.2, need more variants) ** Linux (Redhat 6.2, Debian)
** Solaris
** HP-UX 10.20 (gcc only) ** HP-UX 10.20 (gcc only)
** IRIX ** IRIX
** NeXT - M68k/HPPA (4.2/3.3)
** **
** Testing required: Please send reports! ** Testing required: Please send reports!
** Solaris
** NetBSD ** NetBSD
** HP-UX 11 ** HP-UX 11
** AIX ** AIX
** **
** Platforms with known problems: ** Platforms with known problems:
** NeXT ** Some variants of Slackware Linux
** **
**/ **/
@ -160,7 +161,7 @@
#include "xmalloc.h" #include "xmalloc.h"
#include "loginrec.h" #include "loginrec.h"
RCSID("$Id: loginrec.c,v 1.21 2000/08/18 04:08:38 djm Exp $"); RCSID("$Id: loginrec.c,v 1.22 2000/08/29 03:30:37 djm Exp $");
/** /**
** prototypes for helper functions in this file ** prototypes for helper functions in this file
@ -724,7 +725,7 @@ utmp_write_direct(struct logininfo *li, struct utmp *ut)
/* FIXME: (ATL) ttyslot() needs local implementation */ /* FIXME: (ATL) ttyslot() needs local implementation */
#if defined(SUNOS4) && defined(HAVE_GETTTYENT) #if defined(HAVE_GETTTYENT)
register struct ttyent *ty; register struct ttyent *ty;
tty=0; tty=0;
@ -745,7 +746,7 @@ utmp_write_direct(struct logininfo *li, struct utmp *ut)
tty = ttyslot(); /* seems only to work for /dev/ttyp? style names */ tty = ttyslot(); /* seems only to work for /dev/ttyp? style names */
#endif /* SUNOS4 && HAVE_GETTTYENT */ #endif /* HAVE_GETTTYENT */
if (tty > 0 && (fd = open(UTMP_FILE, O_RDWR|O_CREAT, 0644)) >= 0) { if (tty > 0 && (fd = open(UTMP_FILE, O_RDWR|O_CREAT, 0644)) >= 0) {
(void)lseek(fd, (off_t)(tty * sizeof(struct utmp)), SEEK_SET); (void)lseek(fd, (off_t)(tty * sizeof(struct utmp)), SEEK_SET);

View File

@ -1,26 +1,7 @@
#include "config.h" #include "config.h"
#ifdef HAVE_NEXT #ifdef HAVE_NEXT
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <errno.h> #include <errno.h>
#include <unistd.h>
#include <sys/types.h>
#include <sys/stat.h>
#include <fcntl.h>
#include <sys/fcntl.h>
#include <sys/ioctl.h>
#include <sys/time.h>
#include <sys/file.h>
#include <errno.h>
#include <termios.h>
#include <sys/wait.h>
#include "xmalloc.h"
#include "ssh.h"
#include "next-posix.h" #include "next-posix.h"
int int