+
Thu Jun 13 22:14:24 1996 Tom Yu <tlyu@voltage-multiplier.mit.edu>
* configure.in: remove ref to ET_RULES
+
+Thu Jun 13 14:12:16 1996 Sam Hartman <hartmans@mit.edu>
+
+ * update_wtmp.c (ptyint_update_wtmp): Only update wtmpx if we have
+ updwtmpx. This probably should be more general, but I'm not
+ really sure of HP caviats.
+
+ * configure.in : check for updwtmpx
+
+ * getpty.c (pty_getpty): Actually check for 256 ptys on SunOS and
+ other old-style systems.
Tue Apr 16 22:06:36 1996 Ken Raeburn <raeburn@cygnus.com>
* dump-utmp.c: New file. Not automatically used by anything, but
AC_FUNC_CHECK(logwtmp,AC_DEFINE(HAVE_LOGWTMP))
AC_CHECK_HEADERS(unistd.h stdlib.h string.h utmpx.h utmp.h sys/filio.h sys/sockio.h sys/label.h sys/tty.h ttyent.h lastlog.h sys/select.h sys/ptyvar.h)
AC_CHECK_HEADERS(sys/wait.h)
-AC_CHECK_FUNCS(waitpid)
+AC_CHECK_FUNCS(waitpid updwtmpx)
DECLARE_SYS_ERRLIST
KRB5_SIGTYPE
CHECK_SIGNALS
int slavelength;
int *fd; char *slave;
{
- char c;
+ char *cp;
char *p;
int i,ptynum;
struct stat stb;
#else /*HAVE_OPENPTY*/
#ifdef HAVE__GETPTY
/* This code is included for Irix; as of version 5.3, Irix has /dev/ptmx,
- * but it fails to work properly; even cafter calling unlockpt,
+ * but it fails to work properly; even after calling unlockpt,
* root gets permission denied opening the pty.
* The code to support _getpty should be removed if Irix gets working
* streams ptys in favor of maintaining the least needed code
} else {
- for (c = 'p'; c <= 's'; c++) {
+ for (cp = "pqrstuvwxyzPQRST";*cp; cp++) {
sprintf(slavebuf,"/dev/ptyXX");
- slavebuf[strlen("/dev/pty")] = c;
+ slavebuf[strlen("/dev/pty")] = *cp;
slavebuf[strlen("/dev/ptyp")] = '0';
if (stat(slavebuf, &stb) < 0)
break;
/*
- * pty_open_slave: open slave side of terminal, clearing for use.
+ * pty_init_slave: open slave side of terminal, clearing for use.
*
* Copyright 1995, 1996 by the Massachusetts Institute of Technology.
*
struct utmp ut;
struct stat statb;
int fd;
-#ifdef HAVE_SETUTXENT
+#ifdef HAVE_UPDWTMPX
struct utmpx utx;
getutmpx(ent, &utx);
#endif
#ifdef HAVE_UPDWTMP
-#ifndef HAVE_SETUTXENT
+#ifndef HAVE_UPDWTMPX
/* This is already performed byupdwtmpx if present.*/
updwtmp(WTMP_FILE, ent);
-#endif /* HAVE_SETUTXENT*/
+#endif /* HAVE_UPDWTMPX*/
#else /* HAVE_UPDWTMP */
if ((fd = open(WTMP_FILE, O_WRONLY|O_APPEND, 0)) >= 0) {