b71a1d488b
example MAKE_ENV+=FOO=${BAR} is changed to MAKE_ENV+=FOO=${BAR:Q}. Some other changes are outlined in http://mail-index.netbsd.org/tech-pkg/2005/12/02/0034.html
66 lines
1.5 KiB
Text
66 lines
1.5 KiB
Text
$NetBSD: patch-ab,v 1.3 2005/12/05 20:49:55 rillig Exp $
|
|
|
|
--- tty.c.orig 1995-01-29 15:24:55.000000000 -0500
|
|
+++ tty.c
|
|
@@ -26,7 +26,7 @@
|
|
# define TTYDEV "/dev/pty/ttyxx"
|
|
#else /* !hpux */
|
|
# define PTYCHAR1 "pqrstuvwxyzPQRSTUVWXYZ"
|
|
-# define PTYCHAR2 "0123456789abcdef"
|
|
+# define PTYCHAR2 "0123456789abcdefghijklmnopqrstuv"
|
|
# define PTYDEV "/dev/ptyxx"
|
|
# define TTYDEV "/dev/ttyxx"
|
|
#endif /* !hpux */
|
|
@@ -39,6 +39,10 @@ extern char *ptsname();
|
|
# include <sys/utsname.h>
|
|
#endif
|
|
|
|
+#ifdef __INTERIX
|
|
+# define setpgrp() setpgid(0, 0)
|
|
+#endif
|
|
+
|
|
static char ptydev[32];
|
|
static char ttydev[32];
|
|
static int pty_search();
|
|
@@ -61,7 +65,7 @@ int get_pty (pty)
|
|
return 0;
|
|
#endif /* SYSV && SYSV386 */
|
|
|
|
-#if (defined(att) || defined(ATT)) && (!defined(_SEQUENT_))
|
|
+#if (defined(att) || defined(ATT) || defined(__INTERIX)) && (!defined(_SEQUENT_))
|
|
{
|
|
if ((*pty = open ("/dev/ptmx", O_RDWR)) < 0)
|
|
return 1;
|
|
@@ -414,7 +418,10 @@ void make_raw(oldtermptr, newtermptr)
|
|
|
|
/******************************* UTMP stuffs *******************************/
|
|
|
|
+#ifndef __INTERIX
|
|
#include <utmp.h>
|
|
+#endif
|
|
+
|
|
#ifdef HAS_UTMPX
|
|
|
|
# include <utmpx.h>
|
|
@@ -428,6 +435,10 @@ void make_raw(oldtermptr, newtermptr)
|
|
# define getutid getutxid
|
|
# define pututline pututxline
|
|
|
|
+# ifdef __INTERIX
|
|
+# define ut_xtime ut_tv.tv_sec
|
|
+# endif
|
|
+
|
|
#endif
|
|
|
|
#ifdef USE_SYSV_UTMP
|
|
@@ -507,8 +518,10 @@ void addutmp()
|
|
utmp.ut_pid = getpid();
|
|
|
|
# ifdef HAS_UTMPX
|
|
+# ifndef __INTERIX
|
|
utmpx.ut_syslen = 1;
|
|
utmpx.ut_session = getsid(0);
|
|
+# endif
|
|
utmpx.ut_tv.tv_usec = 0;
|
|
# endif
|
|
|