From b0ca4831ea2646eb21790016384adeee0b35030a Mon Sep 17 00:00:00 2001 From: thorpej Date: Fri, 8 Dec 1995 07:45:31 +0000 Subject: [PATCH] Check in two changes I apparently overlooked the last time. "oops" --- sys/compat/hpux/hpux_tty.c | 19 +++++++++++-------- sys/compat/hpux/hpux_util.h | 10 +++++++++- 2 files changed, 20 insertions(+), 9 deletions(-) diff --git a/sys/compat/hpux/hpux_tty.c b/sys/compat/hpux/hpux_tty.c index d95e1731b5f7..64cf4c0efca3 100644 --- a/sys/compat/hpux/hpux_tty.c +++ b/sys/compat/hpux/hpux_tty.c @@ -1,4 +1,4 @@ -/* $NetBSD: hpux_tty.c,v 1.11 1995/10/07 06:26:40 mycroft Exp $ */ +/* $NetBSD: hpux_tty.c,v 1.12 1995/12/08 07:45:31 thorpej Exp $ */ /* * Copyright (c) 1988 University of Utah. @@ -469,26 +469,30 @@ hpuxtobsdbaud(hpux_speed) return(hpuxtobsdbaudtab[hpux_speed & TIO_CBAUD]); } -#ifdef COMPAT_HPUX_6X - int -compat_hpux_6x_sys_gtty(p, v, retval) +hpux_sys_stty_6x(p, v, retval) struct proc *p; void *v; register_t *retval; { - struct compat_hpux_6x_sys_gtty_args *uap = v; + struct hpux_sys_stty_6x_args /* { + syscallarg(int) fd; + syscallarg(caddr_t) arg; + } */ *uap = v; return (getsettty(p, SCARG(uap, fd), HPUXTIOCGETP, SCARG(uap, arg))); } int -compat_hpux_6x_sys_stty(p, v, retval) +hpux_sys_gtty_6x(p, v, retval) struct proc *p; void *v; register_t *retval; { - struct compat_hpux_6x_sys_stty_args *uap = v; + struct hpux_sys_gtty_6x_args /* { + syscallarg(int) fd; + syscallarg(caddr_t) arg; + } */ *uap = v; return (getsettty(p, SCARG(uap, fd), HPUXTIOCSETP, SCARG(uap, arg))); } @@ -545,4 +549,3 @@ getsettty(p, fdes, com, cmarg) } return (error); } -#endif diff --git a/sys/compat/hpux/hpux_util.h b/sys/compat/hpux/hpux_util.h index bd59abddaacb..319a2e579234 100644 --- a/sys/compat/hpux/hpux_util.h +++ b/sys/compat/hpux/hpux_util.h @@ -1,4 +1,4 @@ -/* $NetBSD: hpux_util.h,v 1.2 1995/06/24 20:17:57 christos Exp $ */ +/* $NetBSD: hpux_util.h,v 1.3 1995/12/08 07:45:34 thorpej Exp $ */ /* * Copyright (c) 1995 Christos Zoulas @@ -32,6 +32,14 @@ #include +extern const char hpux_emul_path[]; + +#define HPUX_CHECK_ALT_EXIST(p, sgp, path) \ + CHECK_ALT_EXIST(p, sgp, hpux_emul_path, path) + +#define HPUX_CHECK_ALT_CREAT(p, sgp, path) \ + CHECK_ALT_CREAT(p, sgp, hpux_emul_path, path) + #ifdef DEBUG_HPUX #define DPRINTF(a) printf a; #else