Merge with 4.4-Lite.
This commit is contained in:
parent
4d7a245049
commit
48dd63215d
|
@ -0,0 +1,7 @@
|
|||
# $Id: Makefile,v 1.1 1994/05/23 08:04:11 mycroft Exp $
|
||||
|
||||
hpux_sysent.c hpux_syscalls.c hpux_syscall.h: makesyscalls.sh syscalls.master
|
||||
-mv -f hpux_sysent.c hpux_sysent.c.bak
|
||||
-mv -f hpux_syscalls.c hpux_syscalls.c.bak
|
||||
-mv -f hpux_syscall.h hpux_syscall.h.bak
|
||||
sh makesyscalls.sh syscalls.master
|
|
@ -1,7 +1,7 @@
|
|||
/*
|
||||
* Copyright (c) 1988 University of Utah.
|
||||
* Copyright (c) 1990 The Regents of the University of California.
|
||||
* All rights reserved.
|
||||
* Copyright (c) 1990, 1993
|
||||
* The Regents of the University of California. All rights reserved.
|
||||
*
|
||||
* This code is derived from software contributed to Berkeley by
|
||||
* the Systems Programming Group of the University of Utah Computer
|
||||
|
@ -35,12 +35,13 @@
|
|||
* OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
|
||||
* SUCH DAMAGE.
|
||||
*
|
||||
* from: Utah Hdr: hpux.h 1.18 91/02/09
|
||||
* from: @(#)hpux.h 7.4 (Berkeley) 5/7/91
|
||||
* $Id: hpux.h,v 1.5 1994/01/08 15:09:01 cgd Exp $
|
||||
* from: Utah $Hdr: hpux.h 1.33 93/08/05$
|
||||
*
|
||||
* from: @(#)hpux.h 8.4 (Berkeley) 2/13/94
|
||||
* $Id: hpux.h,v 1.6 1994/05/23 08:04:13 mycroft Exp $
|
||||
*/
|
||||
|
||||
#include "hpux_exec.h"
|
||||
#include <hp300/hpux/hpux_exec.h>
|
||||
|
||||
/* HP-UX style UTSNAME struct used by uname syscall */
|
||||
|
||||
|
@ -82,6 +83,8 @@ struct hpux_sgttyb {
|
|||
#define HPUXTIOCSPGRP _IOW('T', 29, int)
|
||||
#define HPUXTIOCGPGRP _IOR('T', 30, int)
|
||||
#define HPUXTIOCCONS _IO('t', 104)
|
||||
#define HPUXTIOCSWINSZ _IOW('t', 106, struct winsize)
|
||||
#define HPUXTIOCGWINSZ _IOR('t', 107, struct winsize)
|
||||
|
||||
/* non-blocking IO--doesn't interfere with O_NDELAY */
|
||||
#define HPUXFIOSNBIO _IOW('f', 126, int)
|
||||
|
@ -98,7 +101,7 @@ struct hpux_stat {
|
|||
u_short hst_uid;
|
||||
u_short hst_gid;
|
||||
long hst_rdev;
|
||||
off_t hst_size;
|
||||
long hst_size;
|
||||
time_t hst_atime;
|
||||
int hst_spare1;
|
||||
time_t hst_mtime;
|
||||
|
@ -151,7 +154,7 @@ struct hpux_user {
|
|||
u_char whocares3[HU_PAD3]; /* +0x0BE */
|
||||
struct hpux_exec hpuxu_exdata; /* +0x93A */
|
||||
u_char whocares4[HU_PAD4]; /* +0x95E */
|
||||
struct hpuxfp { /* +0xA66 */
|
||||
struct hpux_fp { /* +0xA66 */
|
||||
int hpfp_save[54];
|
||||
int hpfp_ctrl[3];
|
||||
int hpfp_reg[24];
|
||||
|
@ -160,12 +163,59 @@ struct hpux_user {
|
|||
};
|
||||
|
||||
/* HP-UX compat file flags */
|
||||
#define HPUXNDELAY 00000004
|
||||
#define HPUXFCREAT 00000400
|
||||
#define HPUXFTRUNC 00001000
|
||||
#define HPUXFEXCL 00002000
|
||||
#define HPUXFSYNCIO 00100000
|
||||
#define HPUXNONBLOCK 00200000
|
||||
#define HPUXFREMOTE 01000000
|
||||
#define FUSECACHE 04000000
|
||||
|
||||
/* HP-UX fcntl file locking */
|
||||
struct hpux_flock {
|
||||
short hl_type;
|
||||
short hl_whence;
|
||||
long hl_start;
|
||||
long hl_len;
|
||||
long hl_pid;
|
||||
};
|
||||
|
||||
#define HPUXF_GETLK 7
|
||||
#define HPUXF_SETLK 8
|
||||
#define HPUXF_SETLKW 9
|
||||
|
||||
#define HPUXF_RDLCK 1
|
||||
#define HPUXF_WRLCK 2
|
||||
#define HPUXF_UNLCK 3
|
||||
|
||||
/* HP-UX only sysV shmctl() commands */
|
||||
#define SHM_LOCK 3 /* Lock segment in core */
|
||||
#define SHM_UNLOCK 4 /* Unlock segment */
|
||||
|
||||
/* SHM stuff reflecting POSIX types */
|
||||
struct hpux_ipc_perm {
|
||||
long uid; /* owner's user id */
|
||||
long gid; /* owner's group id */
|
||||
long cuid; /* creator's user id */
|
||||
long cgid; /* creator's group id */
|
||||
u_short mode; /* access modes */
|
||||
u_short seq; /* slot usage sequence number */
|
||||
long key; /* key */
|
||||
};
|
||||
|
||||
struct hpux_shmid_ds {
|
||||
struct hpux_ipc_perm shm_perm; /* operation permission struct */
|
||||
int shm_segsz; /* segment size (bytes) */
|
||||
struct pte *shm_ptbl; /* ptr to associated page table */
|
||||
long shm_lpid; /* pid of last shmop */
|
||||
long shm_cpid; /* pid of creator */
|
||||
u_short shm_nattch; /* current # attached */
|
||||
u_short shm_cnattch; /* in memory # attached */
|
||||
time_t shm_atime; /* last shmat time */
|
||||
time_t shm_dtime; /* last shmdt time */
|
||||
time_t shm_ctime; /* last change time */
|
||||
/* actually longer */
|
||||
};
|
||||
|
||||
/* HP-UX rtprio values */
|
||||
#define RTPRIO_MIN 0
|
||||
|
@ -206,3 +256,32 @@ struct hpux_sigaction {
|
|||
#define HPUXSIG_BLOCK 0 /* block specified signal set */
|
||||
#define HPUXSIG_UNBLOCK 1 /* unblock specified signal set */
|
||||
#define HPUXSIG_SETMASK 2 /* set specified signal set */
|
||||
|
||||
/* sysconf stuff */
|
||||
#define HPUX_SYSCONF_CLKTICK 2
|
||||
#define HPUX_SYSCONF_OPENMAX 4
|
||||
#define HPUX_SYSCONF_CPUTYPE 10001
|
||||
#define HPUX_SYSCONF_CPUM020 0x20C
|
||||
#define HPUX_SYSCONF_CPUM030 0x20D
|
||||
#define HPUX_SYSCONF_CPUM040 0x20E
|
||||
#define HPUX_SYSCONF_CPUPA10 0x20B
|
||||
#define HPUX_SYSCONF_CPUPA11 0x210
|
||||
|
||||
/* mmap stuff */
|
||||
#define HPUXMAP_FIXED 0x04
|
||||
#define HPUXMAP_REPLACE 0x08
|
||||
#define HPUXMAP_ANON 0x10
|
||||
|
||||
/* rlimit stuff */
|
||||
#define HPUXRLIMIT_NOFILE 6
|
||||
|
||||
/*
|
||||
* In BSD EAGAIN and EWOULDBLOCK are the same error code.
|
||||
* However, for HP-UX we must split them out to seperate codes.
|
||||
* The easiest way to do this was to check the return value of
|
||||
* BSD routines which are known to return EAGAIN (but never
|
||||
* EWOULDBLOCK) and change it to the pseudo-code OEAGAIN when
|
||||
* we see it. The error translation table will them map that
|
||||
* code to the HP-UX EAGAIN value.
|
||||
*/
|
||||
#define OEAGAIN 82
|
||||
|
|
File diff suppressed because it is too large
Load Diff
|
@ -1,7 +1,7 @@
|
|||
/*
|
||||
* Copyright (c) 1988 University of Utah.
|
||||
* Copyright (c) 1990 The Regents of the University of California.
|
||||
* All rights reserved.
|
||||
* Copyright (c) 1990, 1993
|
||||
* The Regents of the University of California. All rights reserved.
|
||||
*
|
||||
* This code is derived from software contributed to Berkeley by
|
||||
* the Systems Programming Group of the University of Utah Computer
|
||||
|
@ -35,9 +35,10 @@
|
|||
* OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
|
||||
* SUCH DAMAGE.
|
||||
*
|
||||
* from: Utah Hdr: hpux_exec.h 1.1 90/07/09
|
||||
* from: @(#)hpux_exec.h 7.2 (Berkeley) 10/24/90
|
||||
* $Id: hpux_exec.h,v 1.3 1993/08/01 19:24:55 mycroft Exp $
|
||||
* from: Utah $Hdr: hpux_exec.h 1.6 92/01/20$
|
||||
*
|
||||
* from: @(#)hpux_exec.h 8.1 (Berkeley) 6/10/93
|
||||
* $Id: hpux_exec.h,v 1.4 1994/05/23 08:04:17 mycroft Exp $
|
||||
*/
|
||||
|
||||
/*
|
||||
|
@ -47,7 +48,7 @@ struct hpux_exec {
|
|||
long ha_magic; /* magic number */
|
||||
short ha_version; /* version ID */
|
||||
short ha_pad0; /* doesn't matter */
|
||||
long ha_pad1; /* ditto */
|
||||
long ha_misc; /* misc. info */
|
||||
unsigned long ha_text; /* size of text segment */
|
||||
unsigned long ha_data; /* size of initialized data */
|
||||
unsigned long ha_bss; /* size of uninitialized data */
|
||||
|
@ -56,8 +57,6 @@ unsigned long ha_entry; /* entry point */
|
|||
unsigned long ha_pad3[4]; /* doesn't matter */
|
||||
};
|
||||
|
||||
/*
|
||||
* If the HPUX object file version number is BSDVNUM the file was built
|
||||
* with the HPUX SGS but linked with the BSD libraries.
|
||||
*/
|
||||
#define BSDVNUM 0x2BAD
|
||||
#define HPUXM_VALID 0x00000001
|
||||
#define HPUXM_STKWT 0x02000000
|
||||
#define HPUXM_DATAWT 0x04000000
|
||||
|
|
|
@ -1,7 +1,7 @@
|
|||
/*
|
||||
* Copyright (c) 1988 University of Utah.
|
||||
* Copyright (c) 1990 The Regents of the University of California.
|
||||
* All rights reserved.
|
||||
* Copyright (c) 1990, 1993
|
||||
* The Regents of the University of California. All rights reserved.
|
||||
*
|
||||
* This code is derived from software contributed to Berkeley by
|
||||
* the Systems Programming Group of the University of Utah Computer
|
||||
|
@ -35,28 +35,30 @@
|
|||
* OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
|
||||
* SUCH DAMAGE.
|
||||
*
|
||||
* from: Utah Hdr: hpux_net.c 1.33 89/08/23
|
||||
* from: @(#)hpux_net.c 7.7 (Berkeley) 2/13/91
|
||||
* $Id: hpux_net.c,v 1.5 1994/05/04 04:09:36 mycroft Exp $
|
||||
* from: Utah $Hdr: hpux_net.c 1.8 93/08/02$
|
||||
*
|
||||
* from: @(#)hpux_net.c 8.2 (Berkeley) 9/9/93
|
||||
* $Id: hpux_net.c,v 1.6 1994/05/23 08:04:18 mycroft Exp $
|
||||
*/
|
||||
|
||||
/*
|
||||
* Network related HP-UX compatibility routines
|
||||
*/
|
||||
|
||||
#include "sys/param.h"
|
||||
#include "sys/systm.h"
|
||||
#include "sys/kernel.h"
|
||||
#include "sys/time.h"
|
||||
#include "sys/errno.h"
|
||||
#include "sys/proc.h"
|
||||
#include "sys/file.h"
|
||||
#include "sys/mbuf.h"
|
||||
#include "sys/socket.h"
|
||||
#include "sys/socketvar.h"
|
||||
#include "sys/uio.h"
|
||||
#include "sys/ktrace.h"
|
||||
#include "hpux.h"
|
||||
#include <sys/param.h>
|
||||
#include <sys/systm.h>
|
||||
#include <sys/kernel.h>
|
||||
#include <sys/time.h>
|
||||
#include <sys/errno.h>
|
||||
#include <sys/proc.h>
|
||||
#include <sys/file.h>
|
||||
#include <sys/mbuf.h>
|
||||
#include <sys/socket.h>
|
||||
#include <sys/socketvar.h>
|
||||
#include <sys/uio.h>
|
||||
#include <sys/ktrace.h>
|
||||
|
||||
#include <hp300/hpux/hpux.h>
|
||||
|
||||
#define MINBSDIPCCODE 0x3EE
|
||||
#define NUMBSDIPC 32
|
||||
|
@ -100,7 +102,6 @@ struct hpux_netioctl_args {
|
|||
int call;
|
||||
int *args;
|
||||
};
|
||||
|
||||
hpux_netioctl(p, uap, retval)
|
||||
struct proc *p;
|
||||
struct hpux_netioctl_args *uap;
|
||||
|
@ -119,18 +120,43 @@ hpux_netioctl(p, uap, retval)
|
|||
#ifdef KTRACE
|
||||
if (KTRPOINT(p, KTR_SYSCALL))
|
||||
ktrsyscall(p->p_tracep, code + MINBSDIPCCODE,
|
||||
hpuxtobsdipc[code].nargs);
|
||||
hpuxtobsdipc[code].nargs, (int *)uap);
|
||||
#endif
|
||||
return (error);
|
||||
}
|
||||
#ifdef KTRACE
|
||||
if (KTRPOINT(p, KTR_SYSCALL))
|
||||
ktrsyscall(p->p_tracep, code + MINBSDIPCCODE,
|
||||
hpuxtobsdipc[code].nargs);
|
||||
hpuxtobsdipc[code].nargs, (int *)uap);
|
||||
#endif
|
||||
return ((*hpuxtobsdipc[code].rout)(p, uap, retval));
|
||||
}
|
||||
|
||||
socksetsize(size, m)
|
||||
int size;
|
||||
struct mbuf *m;
|
||||
{
|
||||
register int tmp;
|
||||
|
||||
if (size < sizeof(int)) {
|
||||
switch(size) {
|
||||
case 1:
|
||||
tmp = (int) *mtod(m, char *);
|
||||
break;
|
||||
case 2:
|
||||
tmp = (int) *mtod(m, short *);
|
||||
break;
|
||||
case 3:
|
||||
tmp = (((int) *mtod(m, int *)) >> 8) & 0xffffff;
|
||||
break;
|
||||
}
|
||||
*mtod(m, int *) = tmp;
|
||||
m->m_len = sizeof(int);
|
||||
} else {
|
||||
m->m_len = size;
|
||||
}
|
||||
}
|
||||
|
||||
struct hpux_setsockopt_args {
|
||||
int s;
|
||||
int level;
|
||||
|
@ -138,7 +164,7 @@ struct hpux_setsockopt_args {
|
|||
caddr_t val;
|
||||
int valsize;
|
||||
};
|
||||
|
||||
/* ARGSUSED */
|
||||
hpux_setsockopt(p, uap, retval)
|
||||
struct proc *p;
|
||||
struct hpux_setsockopt_args *uap;
|
||||
|
@ -167,7 +193,7 @@ hpux_setsockopt(p, uap, retval)
|
|||
mtod(m, struct linger *)->l_linger = tmp;
|
||||
m->m_len = sizeof(struct linger);
|
||||
} else
|
||||
m->m_len = uap->valsize;
|
||||
socksetsize(uap->valsize, m);
|
||||
} else if (uap->name == ~SO_LINGER) {
|
||||
m = m_get(M_WAIT, MT_SOOPTS);
|
||||
if (m) {
|
||||
|
@ -180,6 +206,42 @@ hpux_setsockopt(p, uap, retval)
|
|||
uap->name, m));
|
||||
}
|
||||
|
||||
struct hpux_setsockopt2_args {
|
||||
int s;
|
||||
int level;
|
||||
int name;
|
||||
caddr_t val;
|
||||
int valsize;
|
||||
};
|
||||
/* ARGSUSED */
|
||||
hpux_setsockopt2(p, uap, retval)
|
||||
struct proc *p;
|
||||
register struct hpux_setsockopt2_args *uap;
|
||||
int *retval;
|
||||
{
|
||||
struct file *fp;
|
||||
struct mbuf *m = NULL;
|
||||
int error;
|
||||
|
||||
if (error = getsock(p->p_fd, uap->s, &fp))
|
||||
return (error);
|
||||
if (uap->valsize > MLEN)
|
||||
return (EINVAL);
|
||||
if (uap->val) {
|
||||
m = m_get(M_WAIT, MT_SOOPTS);
|
||||
if (m == NULL)
|
||||
return (ENOBUFS);
|
||||
if (error = copyin(uap->val, mtod(m, caddr_t),
|
||||
(u_int)uap->valsize)) {
|
||||
(void) m_free(m);
|
||||
return (error);
|
||||
}
|
||||
socksetsize(uap->valsize, m);
|
||||
}
|
||||
return (sosetopt((struct socket *)fp->f_data, uap->level,
|
||||
uap->name, m));
|
||||
}
|
||||
|
||||
struct hpux_getsockopt_args {
|
||||
int s;
|
||||
int level;
|
||||
|
@ -187,7 +249,6 @@ struct hpux_getsockopt_args {
|
|||
caddr_t val;
|
||||
int *avalsize;
|
||||
};
|
||||
|
||||
hpux_getsockopt(p, uap, retval)
|
||||
struct proc *p;
|
||||
struct hpux_getsockopt_args *uap;
|
||||
|
|
|
@ -1,7 +1,7 @@
|
|||
/*
|
||||
* Copyright (c) 1988 University of Utah.
|
||||
* Copyright (c) 1990 The Regents of the University of California.
|
||||
* All rights reserved.
|
||||
* Copyright (c) 1990, 1993
|
||||
* The Regents of the University of California. All rights reserved.
|
||||
*
|
||||
* This code is derived from software contributed to Berkeley by
|
||||
* the Systems Programming Group of the University of Utah Computer
|
||||
|
@ -35,21 +35,23 @@
|
|||
* OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
|
||||
* SUCH DAMAGE.
|
||||
*
|
||||
* from: Utah Hdr: hpux_sig.c 1.1 90/07/09
|
||||
* from: @(#)hpux_sig.c 7.8 (Berkeley) 4/20/91
|
||||
* $Id: hpux_sig.c,v 1.8 1994/05/17 10:37:12 cgd Exp $
|
||||
* from: Utah $Hdr: hpux_sig.c 1.4 92/01/20$
|
||||
*
|
||||
* from: @(#)hpux_sig.c 8.2 (Berkeley) 9/23/93
|
||||
* $Id: hpux_sig.c,v 1.9 1994/05/23 08:04:19 mycroft Exp $
|
||||
*/
|
||||
|
||||
/*
|
||||
* Signal related HPUX compatibility routines
|
||||
*/
|
||||
|
||||
#include "param.h"
|
||||
#include "systm.h"
|
||||
#include "kernel.h"
|
||||
#include "proc.h"
|
||||
#include "signalvar.h"
|
||||
#include "hpux.h"
|
||||
#include <sys/param.h>
|
||||
#include <sys/systm.h>
|
||||
#include <sys/kernel.h>
|
||||
#include <sys/proc.h>
|
||||
#include <sys/signalvar.h>
|
||||
|
||||
#include <hp300/hpux/hpux.h>
|
||||
|
||||
/* indexed by HPUX signal number - 1 */
|
||||
char hpuxtobsdsigmap[NSIG] = {
|
||||
|
@ -81,7 +83,6 @@ struct hpux_sigvec_args {
|
|||
struct sigvec *nsv;
|
||||
struct sigvec *osv;
|
||||
};
|
||||
|
||||
hpux_sigvec(p, uap, retval)
|
||||
struct proc *p;
|
||||
register struct hpux_sigvec_args *uap;
|
||||
|
@ -135,7 +136,6 @@ hpux_sigvec(p, uap, retval)
|
|||
struct hpux_sigblock_args {
|
||||
int mask;
|
||||
};
|
||||
|
||||
hpux_sigblock(p, uap, retval)
|
||||
register struct proc *p;
|
||||
struct hpux_sigblock_args *uap;
|
||||
|
@ -152,7 +152,6 @@ hpux_sigblock(p, uap, retval)
|
|||
struct hpux_sigsetmask_args {
|
||||
int mask;
|
||||
};
|
||||
|
||||
hpux_sigsetmask(p, uap, retval)
|
||||
struct proc *p;
|
||||
struct hpux_sigsetmask_args *uap;
|
||||
|
@ -169,7 +168,6 @@ hpux_sigsetmask(p, uap, retval)
|
|||
struct hpux_sigpause_args {
|
||||
int mask;
|
||||
};
|
||||
|
||||
hpux_sigpause(p, uap, retval)
|
||||
struct proc *p;
|
||||
struct hpux_sigpause_args *uap;
|
||||
|
@ -185,7 +183,6 @@ struct hpux_kill_args {
|
|||
int pid;
|
||||
int signo;
|
||||
};
|
||||
|
||||
hpux_kill(p, uap, retval)
|
||||
struct proc *p;
|
||||
struct hpux_kill_args *uap;
|
||||
|
@ -217,7 +214,6 @@ struct hpux_sigprocmask_args {
|
|||
hpux_sigset_t *set;
|
||||
hpux_sigset_t *oset;
|
||||
};
|
||||
|
||||
hpux_sigprocmask(p, uap, retval)
|
||||
register struct proc *p;
|
||||
struct hpux_sigprocmask_args *uap;
|
||||
|
@ -263,7 +259,6 @@ hpux_sigprocmask(p, uap, retval)
|
|||
struct hpux_sigpending_args {
|
||||
hpux_sigset_t *set;
|
||||
};
|
||||
|
||||
hpux_sigpending(p, uap, retval)
|
||||
register struct proc *p;
|
||||
struct hpux_sigpending_args *uap;
|
||||
|
@ -278,7 +273,6 @@ hpux_sigpending(p, uap, retval)
|
|||
struct hpux_sigsuspend_args {
|
||||
hpux_sigset_t *set;
|
||||
};
|
||||
|
||||
hpux_sigsuspend(p, uap, retval)
|
||||
register struct proc *p;
|
||||
struct hpux_sigsuspend_args *uap;
|
||||
|
@ -304,7 +298,6 @@ struct hpux_sigaction_args {
|
|||
struct hpux_sigaction *nsa;
|
||||
struct hpux_sigaction *osa;
|
||||
};
|
||||
|
||||
hpux_sigaction(p, uap, retval)
|
||||
struct proc *p;
|
||||
register struct hpux_sigaction_args *uap;
|
||||
|
@ -366,11 +359,11 @@ hpux_sigaction(p, uap, retval)
|
|||
return (0);
|
||||
}
|
||||
|
||||
#ifdef COMPAT_OHPUX
|
||||
struct ohpux_ssig_args {
|
||||
int signo;
|
||||
sig_t fun;
|
||||
};
|
||||
|
||||
ohpux_ssig(p, uap, retval)
|
||||
struct proc *p;
|
||||
struct ohpux_ssig_args *uap;
|
||||
|
@ -404,6 +397,7 @@ ohpux_ssig(p, uap, retval)
|
|||
#endif
|
||||
return (0);
|
||||
}
|
||||
#endif
|
||||
|
||||
/* signal numbers: convert from HPUX to BSD */
|
||||
hpuxtobsdsig(sig)
|
||||
|
|
|
@ -2,171 +2,107 @@
|
|||
* System call numbers.
|
||||
*
|
||||
* DO NOT EDIT-- this file is automatically generated.
|
||||
* created from $Id: hpux_syscall.h,v 1.2 1994/05/17 10:37:14 cgd Exp $
|
||||
* created from: syscalls.master,v 1.3 1994/05/23 08:03:32
|
||||
*/
|
||||
|
||||
#define SYS_nosys 0
|
||||
#define SYS_exit 1
|
||||
#define SYS_fork 2
|
||||
#define SYS_hpux_read 3
|
||||
#define SYS_hpux_write 4
|
||||
#define SYS_hpux_open 5
|
||||
#define SYS_read 3
|
||||
#define SYS_write 4
|
||||
#define SYS_open 5
|
||||
#define SYS_close 6
|
||||
#define SYS_hpux_wait 7
|
||||
#define SYS_creat 8
|
||||
#define SYS_owait 7
|
||||
#define SYS_ocreat 8
|
||||
#define SYS_link 9
|
||||
#define SYS_unlink 10
|
||||
#define SYS_execv 11
|
||||
#define SYS_chdir 12
|
||||
/* 13 is old hpux_time */
|
||||
/* 13 is old hpux_time time */
|
||||
#define SYS_mknod 14
|
||||
#define SYS_chmod 15
|
||||
#define SYS_chown 16
|
||||
#define SYS_break 17
|
||||
/* 18 is old hpux_stat */
|
||||
#define SYS_lseek 19
|
||||
/* 18 is old hpux_stat stat */
|
||||
#define SYS_olseek 19
|
||||
#define SYS_getpid 20
|
||||
#define SYS_mount 21
|
||||
#define SYS_umount 22
|
||||
#define SYS_setuid 23
|
||||
#define SYS_getuid 24
|
||||
/* 25 is old hpux_stime */
|
||||
#define SYS_hpux_ptrace 26
|
||||
/* 27 is old hpux_alarm */
|
||||
/* 28 is old hpux_fstat */
|
||||
/* 29 is old hpux_pause */
|
||||
/* 30 is old hpux_utime */
|
||||
/* 31 is old hpux_stty */
|
||||
/* 32 is old hpux_gtty */
|
||||
/* 25 is old hpux_stime stime */
|
||||
#define SYS_ptrace 26
|
||||
/* 27 is old hpux_alarm alarm */
|
||||
/* 28 is old hpux_fstat fstat */
|
||||
/* 29 is old hpux_pause pause */
|
||||
/* 30 is old hpux_utime utime */
|
||||
/* 31 is old hpux_stty stty */
|
||||
/* 32 is old hpux_gtty gtty */
|
||||
#define SYS_access 33
|
||||
/* 34 is old hpux_nice */
|
||||
/* 35 is old hpux_ftime */
|
||||
/* 34 is old hpux_nice nice */
|
||||
/* 35 is old hpux_ftime ftime */
|
||||
#define SYS_sync 36
|
||||
#define SYS_hpux_kill 37
|
||||
#define SYS_hpux_stat 38
|
||||
/* 39 is old hpux_setpgrp */
|
||||
#define SYS_hpux_lstat 40
|
||||
#define SYS_hpux_dup 41
|
||||
#define SYS_kill 37
|
||||
#define SYS_stat 38
|
||||
/* 39 is old hpux_setpgrp setpgrp */
|
||||
#define SYS_lstat 40
|
||||
#define SYS_dup 41
|
||||
#define SYS_pipe 42
|
||||
/* 43 is old hpux_times */
|
||||
/* 43 is old hpux_times times */
|
||||
#define SYS_profil 44
|
||||
#define SYS_ki_syscall 45
|
||||
#define SYS_setgid 46
|
||||
#define SYS_getgid 47
|
||||
/* 48 is old hpux_ssig */
|
||||
#define SYS_acct 51
|
||||
#define SYS_hpux_ioctl 54
|
||||
#define SYS_reboot 55
|
||||
/* 48 is old hpux_ssig ssig */
|
||||
#define SYS_ioctl 54
|
||||
#define SYS_symlink 56
|
||||
#define SYS_hpux_utssys 57
|
||||
#define SYS_utssys 57
|
||||
#define SYS_readlink 58
|
||||
#define SYS_execve 59
|
||||
#define SYS_umask 60
|
||||
#define SYS_chroot 61
|
||||
#define SYS_hpux_fcntl 62
|
||||
#define SYS_hpux_ulimit 63
|
||||
#define SYS_nosys 64
|
||||
#define SYS_nosys 65
|
||||
#define SYS_fcntl 62
|
||||
#define SYS_ulimit 63
|
||||
#define SYS_vfork 66
|
||||
#define SYS_hpux_read 67
|
||||
#define SYS_hpux_write 68
|
||||
#define SYS_nosys 69
|
||||
#define SYS_nosys 70
|
||||
#define SYS_nosys 71
|
||||
#define SYS_nosys 72
|
||||
#define SYS_nosys 73
|
||||
#define SYS_mprotect 74
|
||||
#define SYS_nosys 75
|
||||
#define SYS_nosys 76
|
||||
#define SYS_nosys 77
|
||||
#define SYS_nosys 78
|
||||
#define SYS_vread 67
|
||||
#define SYS_vwrite 68
|
||||
#define SYS_mmap 71
|
||||
#define SYS_munmap 73
|
||||
#define SYS_getgroups 79
|
||||
#define SYS_setgroups 80
|
||||
#define SYS_hpux_getpgrp2 81
|
||||
#define SYS_hpux_setpgrp2 82
|
||||
#define SYS_getpgrp2 81
|
||||
#define SYS_setpgrp2 82
|
||||
#define SYS_setitimer 83
|
||||
#define SYS_hpux_wait3 84
|
||||
#define SYS_swapon 85
|
||||
#define SYS_wait3 84
|
||||
#define SYS_getitimer 86
|
||||
#define SYS_nosys 87
|
||||
#define SYS_nosys 88
|
||||
#define SYS_nosys 89
|
||||
#define SYS_dup2 90
|
||||
#define SYS_nosys 91
|
||||
#define SYS_hpux_fstat 92
|
||||
#define SYS_fstat 92
|
||||
#define SYS_select 93
|
||||
#define SYS_nosys 94
|
||||
#define SYS_fsync 95
|
||||
#define SYS_nosys 96
|
||||
#define SYS_nosys 97
|
||||
#define SYS_nosys 98
|
||||
#define SYS_nosys 99
|
||||
#define SYS_nosys 100
|
||||
#define SYS_nosys 101
|
||||
#define SYS_nosys 102
|
||||
#define SYS_sigreturn 103
|
||||
#define SYS_nosys 104
|
||||
#define SYS_nosys 105
|
||||
#define SYS_nosys 106
|
||||
#define SYS_nosys 107
|
||||
#define SYS_hpux_sigvec 108
|
||||
#define SYS_hpux_sigblock 109
|
||||
#define SYS_hpux_sigsetmask 110
|
||||
#define SYS_hpux_sigpause 111
|
||||
#define SYS_sigvec 108
|
||||
#define SYS_sigblock 109
|
||||
#define SYS_sigsetmask 110
|
||||
#define SYS_sigpause 111
|
||||
#define SYS_osigstack 112
|
||||
#define SYS_nosys 113
|
||||
#define SYS_nosys 114
|
||||
#define SYS_nosys 115
|
||||
#define SYS_gettimeofday 116
|
||||
#define SYS_nosys 117
|
||||
#define SYS_nosys 118
|
||||
#define SYS_hpib_io_stub 119
|
||||
#define SYS_hpux_readv 120
|
||||
#define SYS_hpux_writev 121
|
||||
#define SYS_readv 120
|
||||
#define SYS_writev 121
|
||||
#define SYS_settimeofday 122
|
||||
#define SYS_fchown 123
|
||||
#define SYS_fchmod 124
|
||||
#define SYS_nosys 125
|
||||
#define SYS_hpux_setresuid 126
|
||||
#define SYS_hpux_setresgid 127
|
||||
#define SYS_setresuid 126
|
||||
#define SYS_setresgid 127
|
||||
#define SYS_rename 128
|
||||
#define SYS_truncate 129
|
||||
#define SYS_ftruncate 130
|
||||
#define SYS_nosys 131
|
||||
/* 129 is old truncate */
|
||||
/* 130 is old ftruncate */
|
||||
#define SYS_sysconf 132
|
||||
#define SYS_nosys 133
|
||||
#define SYS_nosys 134
|
||||
#define SYS_nosys 135
|
||||
#define SYS_mkdir 136
|
||||
#define SYS_rmdir 137
|
||||
#define SYS_nosys 138
|
||||
#define SYS_sigreturn 139
|
||||
#define SYS_nosys 140
|
||||
#define SYS_nosys 141
|
||||
#define SYS_nosys 142
|
||||
#define SYS_nosys 143
|
||||
#define SYS_nosys 144
|
||||
#define SYS_nosys 145
|
||||
#define SYS_nosys 146
|
||||
#define SYS_nosys 147
|
||||
#define SYS_nosys 148
|
||||
#define SYS_nosys 149
|
||||
#define SYS_nosys 150
|
||||
#define SYS_privgrp 151
|
||||
/* 144 is old getrlimit */
|
||||
/* 145 is old setrlimit */
|
||||
#define SYS_rtprio 152
|
||||
#define SYS_plock 153
|
||||
#define SYS_hpux_netioctl 154
|
||||
#define SYS_hpux_lockf 155
|
||||
#define SYS_netioctl 154
|
||||
#define SYS_lockf 155
|
||||
#define SYS_semget 156
|
||||
#define SYS_semctl 157
|
||||
#define SYS_semop 158
|
||||
#define SYS_semget 156
|
||||
#define SYS_semctl 157
|
||||
#define SYS_semop 158
|
||||
#define SYS_msgget 159
|
||||
#define SYS_msgctl 160
|
||||
#define SYS_msgsnd 161
|
||||
#define SYS_msgrcv 162
|
||||
#define SYS_msgget 159
|
||||
#define SYS_msgctl 160
|
||||
#define SYS_msgsnd 161
|
||||
|
@ -175,83 +111,36 @@
|
|||
#define SYS_shmctl 164
|
||||
#define SYS_shmat 165
|
||||
#define SYS_shmdt 166
|
||||
#define SYS_shmget 163
|
||||
#define SYS_shmctl 164
|
||||
#define SYS_shmat 165
|
||||
#define SYS_shmdt 166
|
||||
#define SYS_hpux_advise 167
|
||||
#define SYS_dux_notconfigured 168
|
||||
#define SYS_cluster 169
|
||||
#define SYS_mkrnod 170
|
||||
#define SYS_nosys 171
|
||||
#define SYS_dux_notconfigured 172
|
||||
#define SYS_nosys 173
|
||||
#define SYS_hpux_getcontext 174
|
||||
#define SYS_nosys 175
|
||||
#define SYS_nosys 176
|
||||
#define SYS_nosys 177
|
||||
#define SYS_lsync 178
|
||||
#define SYS_nosys 179
|
||||
#define SYS_mysite 180
|
||||
#define SYS_returnzero 181
|
||||
#define SYS_nosys 182
|
||||
#define SYS_nosys 183
|
||||
#define SYS_nosys 184
|
||||
#define SYS_nosys 185
|
||||
#define SYS_setacl 186
|
||||
#define SYS_fsetacl 187
|
||||
#define SYS_getacl 188
|
||||
#define SYS_fgetacl 189
|
||||
#define SYS_hpux_getaccess 190
|
||||
#define SYS_getaudid 191
|
||||
#define SYS_setaudid 192
|
||||
#define SYS_getaudproc 193
|
||||
#define SYS_setaudproc 194
|
||||
#define SYS_getevent 195
|
||||
#define SYS_setevent 196
|
||||
#define SYS_audwrite 197
|
||||
#define SYS_audswitch 198
|
||||
#define SYS_audctl 199
|
||||
#define SYS_hpux_waitpid 200
|
||||
#define SYS_nosys 201
|
||||
#define SYS_netioctl 202
|
||||
#define SYS_nosys 203
|
||||
#define SYS_nosys 204
|
||||
#define SYS_nosys 205
|
||||
#define SYS_nosys 206
|
||||
#define SYS_nosys 207
|
||||
#define SYS_nosys 208
|
||||
#define SYS_nosys 209
|
||||
#define SYS_nosys 210
|
||||
#define SYS_nosys 211
|
||||
#define SYS_nosys 212
|
||||
#define SYS_nosys 213
|
||||
#define SYS_nosys 214
|
||||
#define SYS_nosys 215
|
||||
#define SYS_nosys 216
|
||||
#define SYS_nosys 217
|
||||
#define SYS_nosys 218
|
||||
#define SYS_nosys 219
|
||||
#define SYS_nosys 220
|
||||
#define SYS_nosys 221
|
||||
#define SYS_nosys 222
|
||||
#define SYS_nosys 223
|
||||
#define SYS_nosys 224
|
||||
#define SYS_pathconf 225
|
||||
#define SYS_fpathconf 226
|
||||
#define SYS_nosys 227
|
||||
#define SYS_nosys 228
|
||||
#define SYS_async_daemon 229
|
||||
#define SYS_nfs_fcntl 230
|
||||
#define SYS_m68020_advise 167
|
||||
#define SYS_getcontext 174
|
||||
#define SYS_getaccess 190
|
||||
#define SYS_waitpid 200
|
||||
#define SYS_getdirentries 231
|
||||
#define SYS_ogetdomainname 232
|
||||
#define SYS_nfs_getfh 233
|
||||
#define SYS_vfsmount 234
|
||||
#define SYS_nfs_svc 235
|
||||
#define SYS_osetdomainname 236
|
||||
#define SYS_statfs 237
|
||||
#define SYS_fstatfs 238
|
||||
#define SYS_hpux_sigaction 239
|
||||
#define SYS_hpux_sigprocmask 240
|
||||
#define SYS_hpux_sigpending 241
|
||||
#define SYS_hpux_sigsuspend 242
|
||||
/* 232 is old getdomainname */
|
||||
/* 236 is old setdomainname */
|
||||
#define SYS_sigaction 239
|
||||
#define SYS_sigprocmask 240
|
||||
#define SYS_sigpending 241
|
||||
#define SYS_sigsuspend 242
|
||||
#define SYS_getnumfds 268
|
||||
#define SYS_fchdir 272
|
||||
/* 275 is old accept */
|
||||
#define SYS_bind 276
|
||||
#define SYS_connect 277
|
||||
/* 278 is old getpeername */
|
||||
/* 279 is old getsockname */
|
||||
#define SYS_getsockopt 280
|
||||
#define SYS_listen 281
|
||||
/* 282 is old recv */
|
||||
/* 283 is old recvfrom */
|
||||
/* 284 is old recvmsg */
|
||||
/* 285 is old send */
|
||||
/* 286 is old sendmsg */
|
||||
#define SYS_sendto 287
|
||||
#define SYS_setsockopt2 288
|
||||
#define SYS_shutdown 289
|
||||
#define SYS_socket 290
|
||||
#define SYS_socketpair 291
|
||||
#define SYS_nsemctl 312
|
||||
#define SYS_nmsgctl 313
|
||||
#define SYS_nshmctl 314
|
||||
|
|
|
@ -2,174 +2,174 @@
|
|||
* System call names.
|
||||
*
|
||||
* DO NOT EDIT-- this file is automatically generated.
|
||||
* created from $Id: hpux_syscalls.c,v 1.5 1994/05/17 10:37:16 cgd Exp $
|
||||
* created from: syscalls.master,v 1.3 1994/05/23 08:03:32
|
||||
*/
|
||||
|
||||
char *hpux_syscallnames[] = {
|
||||
"nosys", /* 0 = nosys */
|
||||
"#0", /* 0 = indir or out-of-range */
|
||||
"exit", /* 1 = exit */
|
||||
"fork", /* 2 = fork */
|
||||
"hpux_read", /* 3 = hpux_read */
|
||||
"hpux_write", /* 4 = hpux_write */
|
||||
"hpux_open", /* 5 = hpux_open */
|
||||
"read", /* 3 = read */
|
||||
"write", /* 4 = write */
|
||||
"open", /* 5 = open */
|
||||
"close", /* 6 = close */
|
||||
"hpux_wait", /* 7 = hpux_wait */
|
||||
"creat", /* 8 = creat */
|
||||
"owait", /* 7 = owait */
|
||||
"ocreat", /* 8 = ocreat */
|
||||
"link", /* 9 = link */
|
||||
"unlink", /* 10 = unlink */
|
||||
"execv", /* 11 = execv */
|
||||
"chdir", /* 12 = chdir */
|
||||
"old.hpux_time", /* 13 = old hpux_time */
|
||||
"old.time", /* 13 = old time */
|
||||
"mknod", /* 14 = mknod */
|
||||
"chmod", /* 15 = chmod */
|
||||
"chown", /* 16 = chown */
|
||||
"break", /* 17 = break */
|
||||
"old.hpux_stat", /* 18 = old hpux_stat */
|
||||
"lseek", /* 19 = lseek */
|
||||
"old.stat", /* 18 = old stat */
|
||||
"olseek", /* 19 = olseek */
|
||||
"getpid", /* 20 = getpid */
|
||||
"mount", /* 21 = mount */
|
||||
"umount", /* 22 = umount */
|
||||
"mount", /* 21 = mount (unimplemented) */
|
||||
"umount", /* 22 = umount (unimplemented) */
|
||||
"setuid", /* 23 = setuid */
|
||||
"getuid", /* 24 = getuid */
|
||||
"old.hpux_stime", /* 25 = old hpux_stime */
|
||||
"hpux_ptrace", /* 26 = hpux_ptrace */
|
||||
"old.hpux_alarm", /* 27 = old hpux_alarm */
|
||||
"old.hpux_fstat", /* 28 = old hpux_fstat */
|
||||
"old.hpux_pause", /* 29 = old hpux_pause */
|
||||
"old.hpux_utime", /* 30 = old hpux_utime */
|
||||
"old.hpux_stty", /* 31 = old hpux_stty */
|
||||
"old.hpux_gtty", /* 32 = old hpux_gtty */
|
||||
"old.stime", /* 25 = old stime */
|
||||
"ptrace", /* 26 = ptrace */
|
||||
"old.alarm", /* 27 = old alarm */
|
||||
"old.fstat", /* 28 = old fstat */
|
||||
"old.pause", /* 29 = old pause */
|
||||
"old.utime", /* 30 = old utime */
|
||||
"old.stty", /* 31 = old stty */
|
||||
"old.gtty", /* 32 = old gtty */
|
||||
"access", /* 33 = access */
|
||||
"old.hpux_nice", /* 34 = old hpux_nice */
|
||||
"old.hpux_ftime", /* 35 = old hpux_ftime */
|
||||
"old.nice", /* 34 = old nice */
|
||||
"old.ftime", /* 35 = old ftime */
|
||||
"sync", /* 36 = sync */
|
||||
"hpux_kill", /* 37 = hpux_kill */
|
||||
"hpux_stat", /* 38 = hpux_stat */
|
||||
"old.hpux_setpgrp", /* 39 = old hpux_setpgrp */
|
||||
"hpux_lstat", /* 40 = hpux_lstat */
|
||||
"hpux_dup", /* 41 = hpux_dup */
|
||||
"kill", /* 37 = kill */
|
||||
"stat", /* 38 = stat */
|
||||
"old.setpgrp", /* 39 = old setpgrp */
|
||||
"lstat", /* 40 = lstat */
|
||||
"dup", /* 41 = dup */
|
||||
"pipe", /* 42 = pipe */
|
||||
"old.hpux_times", /* 43 = old hpux_times */
|
||||
"old.times", /* 43 = old times */
|
||||
"profil", /* 44 = profil */
|
||||
"ki_syscall", /* 45 = ki_syscall */
|
||||
"ki_syscall", /* 45 = ki_syscall (unimplemented) */
|
||||
"setgid", /* 46 = setgid */
|
||||
"getgid", /* 47 = getgid */
|
||||
"old.hpux_ssig", /* 48 = old hpux_ssig */
|
||||
"#49", /* 49 = reserved */
|
||||
"#50", /* 50 = reserved */
|
||||
"acct", /* 51 = acct */
|
||||
"#52", /* 52 = old set phys addr */
|
||||
"#53", /* 53 = old lock in core */
|
||||
"hpux_ioctl", /* 54 = hpux_ioctl */
|
||||
"reboot", /* 55 = reboot */
|
||||
"old.ssig", /* 48 = old ssig */
|
||||
"#49", /* 49 = reserved for USG */
|
||||
"#50", /* 50 = reserved for USG */
|
||||
"acct", /* 51 = acct (unimplemented) */
|
||||
"#52", /* 52 = nosys */
|
||||
"#53", /* 53 = nosys */
|
||||
"ioctl", /* 54 = ioctl */
|
||||
"reboot", /* 55 = reboot (unimplemented) */
|
||||
"symlink", /* 56 = symlink */
|
||||
"hpux_utssys", /* 57 = hpux_utssys */
|
||||
"utssys", /* 57 = utssys */
|
||||
"readlink", /* 58 = readlink */
|
||||
"execve", /* 59 = execve */
|
||||
"umask", /* 60 = umask */
|
||||
"chroot", /* 61 = chroot */
|
||||
"hpux_fcntl", /* 62 = hpux_fcntl */
|
||||
"hpux_ulimit", /* 63 = hpux_ulimit */
|
||||
"nosys", /* 64 = nosys */
|
||||
"nosys", /* 65 = nosys */
|
||||
"fcntl", /* 62 = fcntl */
|
||||
"ulimit", /* 63 = ulimit */
|
||||
"#64", /* 64 = nosys */
|
||||
"#65", /* 65 = nosys */
|
||||
"vfork", /* 66 = vfork */
|
||||
"hpux_read", /* 67 = hpux_read */
|
||||
"hpux_write", /* 68 = hpux_write */
|
||||
"nosys", /* 69 = nosys */
|
||||
"nosys", /* 70 = nosys */
|
||||
"nosys", /* 71 = nosys */
|
||||
"nosys", /* 72 = nosys */
|
||||
"nosys", /* 73 = nosys */
|
||||
"mprotect", /* 74 = mprotect */
|
||||
"nosys", /* 75 = nosys */
|
||||
"nosys", /* 76 = nosys */
|
||||
"nosys", /* 77 = nosys */
|
||||
"nosys", /* 78 = nosys */
|
||||
"vread", /* 67 = vread */
|
||||
"vwrite", /* 68 = vwrite */
|
||||
"#69", /* 69 = nosys */
|
||||
"#70", /* 70 = nosys */
|
||||
"mmap", /* 71 = mmap */
|
||||
"#72", /* 72 = nosys */
|
||||
"munmap", /* 73 = munmap */
|
||||
"mprotect", /* 74 = mprotect (unimplemented) */
|
||||
"#75", /* 75 = nosys */
|
||||
"#76", /* 76 = nosys */
|
||||
"#77", /* 77 = nosys */
|
||||
"#78", /* 78 = nosys */
|
||||
"getgroups", /* 79 = getgroups */
|
||||
"setgroups", /* 80 = setgroups */
|
||||
"hpux_getpgrp2", /* 81 = hpux_getpgrp2 */
|
||||
"hpux_setpgrp2", /* 82 = hpux_setpgrp2 */
|
||||
"getpgrp2", /* 81 = getpgrp2 */
|
||||
"setpgrp2", /* 82 = setpgrp2 */
|
||||
"setitimer", /* 83 = setitimer */
|
||||
"hpux_wait3", /* 84 = hpux_wait3 */
|
||||
"swapon", /* 85 = swapon */
|
||||
"wait3", /* 84 = wait3 */
|
||||
"swapon", /* 85 = swapon (unimplemented) */
|
||||
"getitimer", /* 86 = getitimer */
|
||||
"nosys", /* 87 = nosys */
|
||||
"nosys", /* 88 = nosys */
|
||||
"nosys", /* 89 = nosys */
|
||||
"#87", /* 87 = nosys */
|
||||
"#88", /* 88 = nosys */
|
||||
"#89", /* 89 = nosys */
|
||||
"dup2", /* 90 = dup2 */
|
||||
"nosys", /* 91 = nosys */
|
||||
"hpux_fstat", /* 92 = hpux_fstat */
|
||||
"#91", /* 91 = nosys */
|
||||
"fstat", /* 92 = fstat */
|
||||
"select", /* 93 = select */
|
||||
"nosys", /* 94 = nosys */
|
||||
"#94", /* 94 = nosys */
|
||||
"fsync", /* 95 = fsync */
|
||||
"nosys", /* 96 = nosys */
|
||||
"nosys", /* 97 = nosys */
|
||||
"nosys", /* 98 = nosys */
|
||||
"nosys", /* 99 = nosys */
|
||||
"nosys", /* 100 = nosys */
|
||||
"nosys", /* 101 = nosys */
|
||||
"nosys", /* 102 = nosys */
|
||||
"#96", /* 96 = nosys */
|
||||
"#97", /* 97 = nosys */
|
||||
"#98", /* 98 = nosys */
|
||||
"#99", /* 99 = nosys */
|
||||
"#100", /* 100 = nosys */
|
||||
"#101", /* 101 = nosys */
|
||||
"#102", /* 102 = nosys */
|
||||
"sigreturn", /* 103 = sigreturn */
|
||||
"nosys", /* 104 = nosys */
|
||||
"nosys", /* 105 = nosys */
|
||||
"nosys", /* 106 = nosys */
|
||||
"nosys", /* 107 = nosys */
|
||||
"hpux_sigvec", /* 108 = hpux_sigvec */
|
||||
"hpux_sigblock", /* 109 = hpux_sigblock */
|
||||
"hpux_sigsetmask", /* 110 = hpux_sigsetmask */
|
||||
"hpux_sigpause", /* 111 = hpux_sigpause */
|
||||
"#104", /* 104 = nosys */
|
||||
"#105", /* 105 = nosys */
|
||||
"#106", /* 106 = nosys */
|
||||
"#107", /* 107 = nosys */
|
||||
"sigvec", /* 108 = sigvec */
|
||||
"sigblock", /* 109 = sigblock */
|
||||
"sigsetmask", /* 110 = sigsetmask */
|
||||
"sigpause", /* 111 = sigpause */
|
||||
"osigstack", /* 112 = osigstack */
|
||||
"nosys", /* 113 = nosys */
|
||||
"nosys", /* 114 = nosys */
|
||||
"nosys", /* 115 = nosys */
|
||||
"#113", /* 113 = nosys */
|
||||
"#114", /* 114 = nosys */
|
||||
"#115", /* 115 = nosys */
|
||||
"gettimeofday", /* 116 = gettimeofday */
|
||||
"nosys", /* 117 = nosys */
|
||||
"nosys", /* 118 = nosys */
|
||||
"hpib_io_stub", /* 119 = hpib_io_stub */
|
||||
"hpux_readv", /* 120 = hpux_readv */
|
||||
"hpux_writev", /* 121 = hpux_writev */
|
||||
"#117", /* 117 = nosys */
|
||||
"#118", /* 118 = nosys */
|
||||
"hpib_io_stub", /* 119 = hpib_io_stub (unimplemented) */
|
||||
"readv", /* 120 = readv */
|
||||
"writev", /* 121 = writev */
|
||||
"settimeofday", /* 122 = settimeofday */
|
||||
"fchown", /* 123 = fchown */
|
||||
"fchmod", /* 124 = fchmod */
|
||||
"nosys", /* 125 = nosys */
|
||||
"hpux_setresuid", /* 126 = hpux_setresuid */
|
||||
"hpux_setresgid", /* 127 = hpux_setresgid */
|
||||
"#125", /* 125 = nosys */
|
||||
"setresuid", /* 126 = setresuid */
|
||||
"setresgid", /* 127 = setresgid */
|
||||
"rename", /* 128 = rename */
|
||||
"truncate", /* 129 = truncate */
|
||||
"ftruncate", /* 130 = ftruncate */
|
||||
"nosys", /* 131 = nosys */
|
||||
"old.truncate", /* 129 = old truncate */
|
||||
"old.ftruncate", /* 130 = old ftruncate */
|
||||
"#131", /* 131 = nosys */
|
||||
"sysconf", /* 132 = sysconf */
|
||||
"nosys", /* 133 = nosys */
|
||||
"nosys", /* 134 = nosys */
|
||||
"nosys", /* 135 = nosys */
|
||||
"#133", /* 133 = nosys */
|
||||
"#134", /* 134 = nosys */
|
||||
"#135", /* 135 = nosys */
|
||||
"mkdir", /* 136 = mkdir */
|
||||
"rmdir", /* 137 = rmdir */
|
||||
"nosys", /* 138 = nosys */
|
||||
"sigreturn", /* 139 = sigreturn */
|
||||
"nosys", /* 140 = nosys */
|
||||
"nosys", /* 141 = nosys */
|
||||
"nosys", /* 142 = nosys */
|
||||
"nosys", /* 143 = nosys */
|
||||
"nosys", /* 144 = nosys */
|
||||
"nosys", /* 145 = nosys */
|
||||
"nosys", /* 146 = nosys */
|
||||
"nosys", /* 147 = nosys */
|
||||
"nosys", /* 148 = nosys */
|
||||
"nosys", /* 149 = nosys */
|
||||
"nosys", /* 150 = nosys */
|
||||
"privgrp", /* 151 = privgrp */
|
||||
"#138", /* 138 = nosys */
|
||||
"#139", /* 139 = nosys */
|
||||
"#140", /* 140 = nosys */
|
||||
"#141", /* 141 = nosys */
|
||||
"#142", /* 142 = nosys */
|
||||
"#143", /* 143 = nosys */
|
||||
"old.getrlimit", /* 144 = old getrlimit */
|
||||
"old.setrlimit", /* 145 = old setrlimit */
|
||||
"#146", /* 146 = nosys */
|
||||
"#147", /* 147 = nosys */
|
||||
"#148", /* 148 = nosys */
|
||||
"#149", /* 149 = nosys */
|
||||
"#150", /* 150 = nosys */
|
||||
"privgrp", /* 151 = privgrp (unimplemented) */
|
||||
"rtprio", /* 152 = rtprio */
|
||||
"plock", /* 153 = plock */
|
||||
"hpux_netioctl", /* 154 = hpux_netioctl */
|
||||
"hpux_lockf", /* 155 = hpux_lockf */
|
||||
"plock", /* 153 = plock (unimplemented) */
|
||||
"netioctl", /* 154 = netioctl */
|
||||
"lockf", /* 155 = lockf */
|
||||
#ifdef SYSVSEM
|
||||
"semget", /* 156 = semget */
|
||||
"semctl", /* 157 = semctl */
|
||||
"semop", /* 158 = semop */
|
||||
#else
|
||||
"semget", /* 156 = semget */
|
||||
"semctl", /* 157 = semctl */
|
||||
"semop", /* 158 = semop */
|
||||
"semget", /* 156 = semget (unimplemented) */
|
||||
"semctl", /* 157 = semctl (unimplemented) */
|
||||
"semop", /* 158 = semop (unimplemented) */
|
||||
#endif
|
||||
#ifdef SYSVMSG
|
||||
"msgget", /* 159 = msgget */
|
||||
|
@ -177,10 +177,10 @@ char *hpux_syscallnames[] = {
|
|||
"msgsnd", /* 161 = msgsnd */
|
||||
"msgrcv", /* 162 = msgrcv */
|
||||
#else
|
||||
"msgget", /* 159 = msgget */
|
||||
"msgctl", /* 160 = msgctl */
|
||||
"msgsnd", /* 161 = msgsnd */
|
||||
"msgrcv", /* 162 = msgrcv */
|
||||
"msgget", /* 159 = msgget (unimplemented) */
|
||||
"msgctl", /* 160 = msgctl (unimplemented) */
|
||||
"msgsnd", /* 161 = msgsnd (unimplemented) */
|
||||
"msgrcv", /* 162 = msgrcv (unimplemented) */
|
||||
#endif
|
||||
#ifdef SYSVSHM
|
||||
"shmget", /* 163 = shmget */
|
||||
|
@ -188,85 +188,169 @@ char *hpux_syscallnames[] = {
|
|||
"shmat", /* 165 = shmat */
|
||||
"shmdt", /* 166 = shmdt */
|
||||
#else
|
||||
"shmget", /* 163 = shmget */
|
||||
"shmctl", /* 164 = shmctl */
|
||||
"shmat", /* 165 = shmat */
|
||||
"shmdt", /* 166 = shmdt */
|
||||
"shmget", /* 163 = shmget (unimplemented) */
|
||||
"shmctl", /* 164 = shmctl (unimplemented) */
|
||||
"shmat", /* 165 = shmat (unimplemented) */
|
||||
"shmdt", /* 166 = shmdt (unimplemented) */
|
||||
#endif
|
||||
"hpux_advise", /* 167 = hpux_advise */
|
||||
"dux_notconfigured", /* 168 = dux_notconfigured */
|
||||
"cluster", /* 169 = cluster */
|
||||
"mkrnod", /* 170 = mkrnod */
|
||||
"nosys", /* 171 = nosys */
|
||||
"dux_notconfigured", /* 172 = dux_notconfigured */
|
||||
"nosys", /* 173 = nosys */
|
||||
"hpux_getcontext", /* 174 = hpux_getcontext */
|
||||
"nosys", /* 175 = nosys */
|
||||
"nosys", /* 176 = nosys */
|
||||
"nosys", /* 177 = nosys */
|
||||
"lsync", /* 178 = lsync */
|
||||
"nosys", /* 179 = nosys */
|
||||
"mysite", /* 180 = mysite */
|
||||
"returnzero", /* 181 = returnzero */
|
||||
"nosys", /* 182 = nosys */
|
||||
"nosys", /* 183 = nosys */
|
||||
"nosys", /* 184 = nosys */
|
||||
"nosys", /* 185 = nosys */
|
||||
"setacl", /* 186 = setacl */
|
||||
"fsetacl", /* 187 = fsetacl */
|
||||
"getacl", /* 188 = getacl */
|
||||
"fgetacl", /* 189 = fgetacl */
|
||||
"hpux_getaccess", /* 190 = hpux_getaccess */
|
||||
"getaudid", /* 191 = getaudid */
|
||||
"setaudid", /* 192 = setaudid */
|
||||
"getaudproc", /* 193 = getaudproc */
|
||||
"setaudproc", /* 194 = setaudproc */
|
||||
"getevent", /* 195 = getevent */
|
||||
"setevent", /* 196 = setevent */
|
||||
"audwrite", /* 197 = audwrite */
|
||||
"audswitch", /* 198 = audswitch */
|
||||
"audctl", /* 199 = audctl */
|
||||
"hpux_waitpid", /* 200 = hpux_waitpid */
|
||||
"nosys", /* 201 = nosys */
|
||||
"netioctl", /* 202 = netioctl */
|
||||
"nosys", /* 203 = nosys */
|
||||
"nosys", /* 204 = nosys */
|
||||
"nosys", /* 205 = nosys */
|
||||
"nosys", /* 206 = nosys */
|
||||
"nosys", /* 207 = nosys */
|
||||
"nosys", /* 208 = nosys */
|
||||
"nosys", /* 209 = nosys */
|
||||
"nosys", /* 210 = nosys */
|
||||
"nosys", /* 211 = nosys */
|
||||
"nosys", /* 212 = nosys */
|
||||
"nosys", /* 213 = nosys */
|
||||
"nosys", /* 214 = nosys */
|
||||
"nosys", /* 215 = nosys */
|
||||
"nosys", /* 216 = nosys */
|
||||
"nosys", /* 217 = nosys */
|
||||
"nosys", /* 218 = nosys */
|
||||
"nosys", /* 219 = nosys */
|
||||
"nosys", /* 220 = nosys */
|
||||
"nosys", /* 221 = nosys */
|
||||
"nosys", /* 222 = nosys */
|
||||
"nosys", /* 223 = nosys */
|
||||
"nosys", /* 224 = nosys */
|
||||
"pathconf", /* 225 = pathconf */
|
||||
"fpathconf", /* 226 = fpathconf */
|
||||
"nosys", /* 227 = nosys */
|
||||
"nosys", /* 228 = nosys */
|
||||
"async_daemon", /* 229 = async_daemon */
|
||||
"nfs_fcntl", /* 230 = nfs_fcntl */
|
||||
"m68020_advise", /* 167 = m68020_advise */
|
||||
"nsp_init", /* 168 = nsp_init (unimplemented) */
|
||||
"cluster", /* 169 = cluster (unimplemented) */
|
||||
"mkrnod", /* 170 = mkrnod (unimplemented) */
|
||||
"#171", /* 171 = nosys */
|
||||
"unsp_open", /* 172 = unsp_open (unimplemented) */
|
||||
"#173", /* 173 = nosys */
|
||||
"getcontext", /* 174 = getcontext */
|
||||
"#175", /* 175 = nosys */
|
||||
"#176", /* 176 = nosys */
|
||||
"#177", /* 177 = nosys */
|
||||
"lsync", /* 178 = lsync (unimplemented) */
|
||||
"#179", /* 179 = nosys */
|
||||
"mysite", /* 180 = mysite (unimplemented) */
|
||||
"sitels", /* 181 = sitels (unimplemented) */
|
||||
"#182", /* 182 = nosys */
|
||||
"#183", /* 183 = nosys */
|
||||
"dskless_stats", /* 184 = dskless_stats (unimplemented) */
|
||||
"#185", /* 185 = nosys */
|
||||
"setacl", /* 186 = setacl (unimplemented) */
|
||||
"fsetacl", /* 187 = fsetacl (unimplemented) */
|
||||
"getacl", /* 188 = getacl (unimplemented) */
|
||||
"fgetacl", /* 189 = fgetacl (unimplemented) */
|
||||
"getaccess", /* 190 = getaccess */
|
||||
"getaudid", /* 191 = getaudid (unimplemented) */
|
||||
"setaudid", /* 192 = setaudid (unimplemented) */
|
||||
"getaudproc", /* 193 = getaudproc (unimplemented) */
|
||||
"setaudproc", /* 194 = setaudproc (unimplemented) */
|
||||
"getevent", /* 195 = getevent (unimplemented) */
|
||||
"setevent", /* 196 = setevent (unimplemented) */
|
||||
"audwrite", /* 197 = audwrite (unimplemented) */
|
||||
"audswitch", /* 198 = audswitch (unimplemented) */
|
||||
"audctl", /* 199 = audctl (unimplemented) */
|
||||
"waitpid", /* 200 = waitpid */
|
||||
"#201", /* 201 = nosys */
|
||||
"#202", /* 202 = nosys */
|
||||
"#203", /* 203 = nosys */
|
||||
"#204", /* 204 = nosys */
|
||||
"#205", /* 205 = nosys */
|
||||
"#206", /* 206 = nosys */
|
||||
"#207", /* 207 = nosys */
|
||||
"#208", /* 208 = nosys */
|
||||
"#209", /* 209 = nosys */
|
||||
"#210", /* 210 = nosys */
|
||||
"#211", /* 211 = nosys */
|
||||
"#212", /* 212 = nosys */
|
||||
"#213", /* 213 = nosys */
|
||||
"#214", /* 214 = nosys */
|
||||
"#215", /* 215 = nosys */
|
||||
"#216", /* 216 = nosys */
|
||||
"#217", /* 217 = nosys */
|
||||
"#218", /* 218 = nosys */
|
||||
"#219", /* 219 = nosys */
|
||||
"#220", /* 220 = nosys */
|
||||
"#221", /* 221 = nosys */
|
||||
"#222", /* 222 = nosys */
|
||||
"#223", /* 223 = nosys */
|
||||
"#224", /* 224 = nosys */
|
||||
"pathconf", /* 225 = pathconf (unimplemented) */
|
||||
"fpathconf", /* 226 = fpathconf (unimplemented) */
|
||||
"#227", /* 227 = nosys */
|
||||
"#228", /* 228 = nosys */
|
||||
"async_daemon", /* 229 = async_daemon (unimplemented) */
|
||||
"nfs_fcntl", /* 230 = nfs_fcntl (unimplemented) */
|
||||
"getdirentries", /* 231 = getdirentries */
|
||||
"ogetdomainname", /* 232 = ogetdomainname */
|
||||
"nfs_getfh", /* 233 = nfs_getfh */
|
||||
"vfsmount", /* 234 = vfsmount */
|
||||
"nfs_svc", /* 235 = nfs_svc */
|
||||
"osetdomainname", /* 236 = osetdomainname */
|
||||
"statfs", /* 237 = statfs */
|
||||
"fstatfs", /* 238 = fstatfs */
|
||||
"hpux_sigaction", /* 239 = hpux_sigaction */
|
||||
"hpux_sigprocmask", /* 240 = hpux_sigprocmask */
|
||||
"hpux_sigpending", /* 241 = hpux_sigpending */
|
||||
"hpux_sigsuspend", /* 242 = hpux_sigsuspend */
|
||||
"old.getdomainname", /* 232 = old getdomainname */
|
||||
"nfs_getfh", /* 233 = nfs_getfh (unimplemented) */
|
||||
"vfsmount", /* 234 = vfsmount (unimplemented) */
|
||||
"nfs_svc", /* 235 = nfs_svc (unimplemented) */
|
||||
"old.setdomainname", /* 236 = old setdomainname */
|
||||
"statfs", /* 237 = statfs (unimplemented) */
|
||||
"fstatfs", /* 238 = fstatfs (unimplemented) */
|
||||
"sigaction", /* 239 = sigaction */
|
||||
"sigprocmask", /* 240 = sigprocmask */
|
||||
"sigpending", /* 241 = sigpending */
|
||||
"sigsuspend", /* 242 = sigsuspend */
|
||||
"fsctl", /* 243 = fsctl (unimplemented) */
|
||||
"#244", /* 244 = nosys */
|
||||
"pstat", /* 245 = pstat (unimplemented) */
|
||||
"#246", /* 246 = nosys */
|
||||
"#247", /* 247 = nosys */
|
||||
"#248", /* 248 = nosys */
|
||||
"#249", /* 249 = nosys */
|
||||
"#250", /* 250 = nosys */
|
||||
"#251", /* 251 = nosys */
|
||||
"#252", /* 252 = nosys */
|
||||
"#253", /* 253 = nosys */
|
||||
"#254", /* 254 = nosys */
|
||||
"#255", /* 255 = nosys */
|
||||
"#256", /* 256 = nosys */
|
||||
"#257", /* 257 = nosys */
|
||||
"#258", /* 258 = nosys */
|
||||
"#259", /* 259 = nosys */
|
||||
"#260", /* 260 = nosys */
|
||||
"#261", /* 261 = nosys */
|
||||
"#262", /* 262 = nosys */
|
||||
"#263", /* 263 = nosys */
|
||||
"#264", /* 264 = nosys */
|
||||
"#265", /* 265 = nosys */
|
||||
"#266", /* 266 = nosys */
|
||||
"#267", /* 267 = nosys */
|
||||
"getnumfds", /* 268 = getnumfds */
|
||||
"#269", /* 269 = nosys */
|
||||
"#270", /* 270 = nosys */
|
||||
"#271", /* 271 = nosys */
|
||||
"fchdir", /* 272 = fchdir */
|
||||
"#273", /* 273 = nosys */
|
||||
"#274", /* 274 = nosys */
|
||||
"old.accept", /* 275 = old accept */
|
||||
"bind", /* 276 = bind */
|
||||
"connect", /* 277 = connect */
|
||||
"old.getpeername", /* 278 = old getpeername */
|
||||
"old.getsockname", /* 279 = old getsockname */
|
||||
"getsockopt", /* 280 = getsockopt */
|
||||
"listen", /* 281 = listen */
|
||||
"old.recv", /* 282 = old recv */
|
||||
"old.recvfrom", /* 283 = old recvfrom */
|
||||
"old.recvmsg", /* 284 = old recvmsg */
|
||||
"old.send", /* 285 = old send */
|
||||
"old.sendmsg", /* 286 = old sendmsg */
|
||||
"sendto", /* 287 = sendto */
|
||||
"setsockopt2", /* 288 = setsockopt2 */
|
||||
"shutdown", /* 289 = shutdown */
|
||||
"socket", /* 290 = socket */
|
||||
"socketpair", /* 291 = socketpair */
|
||||
"#292", /* 292 = nosys */
|
||||
"#293", /* 293 = nosys */
|
||||
"#294", /* 294 = nosys */
|
||||
"#295", /* 295 = nosys */
|
||||
"#296", /* 296 = nosys */
|
||||
"#297", /* 297 = nosys */
|
||||
"#298", /* 298 = nosys */
|
||||
"#299", /* 299 = nosys */
|
||||
"#300", /* 300 = nosys */
|
||||
"#301", /* 301 = nosys */
|
||||
"#302", /* 302 = nosys */
|
||||
"#303", /* 303 = nosys */
|
||||
"#304", /* 304 = nosys */
|
||||
"#305", /* 305 = nosys */
|
||||
"#306", /* 306 = nosys */
|
||||
"#307", /* 307 = nosys */
|
||||
"#308", /* 308 = nosys */
|
||||
"#309", /* 309 = nosys */
|
||||
"#310", /* 310 = nosys */
|
||||
"#311", /* 311 = nosys */
|
||||
#ifdef SYSVSHM
|
||||
"nsemctl", /* 312 = nsemctl */
|
||||
#else
|
||||
"nsemctl", /* 312 = nsemctl (unimplemented) */
|
||||
#endif
|
||||
#ifdef SYSVMSG
|
||||
"nmsgctl", /* 313 = nmsgctl */
|
||||
#else
|
||||
"nmsgctl", /* 313 = nmsgctl (unimplemented) */
|
||||
#endif
|
||||
#ifdef SYSVSHM
|
||||
"nshmctl", /* 314 = nshmctl */
|
||||
#else
|
||||
"nshmctl", /* 314 = nshmctl (unimplemented) */
|
||||
#endif
|
||||
};
|
||||
|
|
|
@ -2,23 +2,22 @@
|
|||
* System call switch table.
|
||||
*
|
||||
* DO NOT EDIT-- this file is automatically generated.
|
||||
* created from $Id: hpux_sysent.c,v 1.5 1994/05/17 10:37:18 cgd Exp $
|
||||
* created from: syscalls.master,v 1.3 1994/05/23 08:03:32
|
||||
*/
|
||||
|
||||
#include <sys/param.h>
|
||||
#include <sys/systm.h>
|
||||
|
||||
int nosys();
|
||||
int nosys(),notimp();
|
||||
|
||||
int nosys();
|
||||
int exit();
|
||||
int fork();
|
||||
int hpux_fork();
|
||||
int hpux_read();
|
||||
int hpux_write();
|
||||
int hpux_open();
|
||||
int close();
|
||||
int hpux_wait();
|
||||
int ocreat();
|
||||
int hpux_creat();
|
||||
int link();
|
||||
int unlink();
|
||||
int hpux_execv();
|
||||
|
@ -27,10 +26,8 @@ int mknod();
|
|||
int chmod();
|
||||
int chown();
|
||||
int obreak();
|
||||
int lseek();
|
||||
int olseek();
|
||||
int getpid();
|
||||
int notimp();
|
||||
int notimp();
|
||||
int setuid();
|
||||
int getuid();
|
||||
int hpux_ptrace();
|
||||
|
@ -42,12 +39,9 @@ int hpux_lstat();
|
|||
int hpux_dup();
|
||||
int pipe();
|
||||
int profil();
|
||||
int notimp();
|
||||
int setgid();
|
||||
int getgid();
|
||||
int notimp();
|
||||
int hpux_ioctl();
|
||||
int notimp();
|
||||
int symlink();
|
||||
int hpux_utssys();
|
||||
int readlink();
|
||||
|
@ -56,96 +50,41 @@ int umask();
|
|||
int chroot();
|
||||
int hpux_fcntl();
|
||||
int hpux_ulimit();
|
||||
int nosys();
|
||||
int nosys();
|
||||
int vfork();
|
||||
int hpux_vfork();
|
||||
int hpux_read();
|
||||
int hpux_write();
|
||||
int nosys();
|
||||
int nosys();
|
||||
int nosys();
|
||||
int nosys();
|
||||
int nosys();
|
||||
int notimp();
|
||||
int nosys();
|
||||
int nosys();
|
||||
int nosys();
|
||||
int nosys();
|
||||
int hpux_mmap();
|
||||
int munmap();
|
||||
int getgroups();
|
||||
int setgroups();
|
||||
int hpux_getpgrp2();
|
||||
int hpux_setpgrp2();
|
||||
int setitimer();
|
||||
int hpux_wait3();
|
||||
int notimp();
|
||||
int getitimer();
|
||||
int nosys();
|
||||
int nosys();
|
||||
int nosys();
|
||||
int dup2();
|
||||
int nosys();
|
||||
int hpux_fstat();
|
||||
int select();
|
||||
int nosys();
|
||||
int fsync();
|
||||
int nosys();
|
||||
int nosys();
|
||||
int nosys();
|
||||
int nosys();
|
||||
int nosys();
|
||||
int nosys();
|
||||
int nosys();
|
||||
int sigreturn();
|
||||
int nosys();
|
||||
int nosys();
|
||||
int nosys();
|
||||
int nosys();
|
||||
int hpux_sigvec();
|
||||
int hpux_sigblock();
|
||||
int hpux_sigsetmask();
|
||||
int hpux_sigpause();
|
||||
int osigstack();
|
||||
int nosys();
|
||||
int nosys();
|
||||
int nosys();
|
||||
int gettimeofday();
|
||||
int nosys();
|
||||
int nosys();
|
||||
int notimp();
|
||||
int hpux_readv();
|
||||
int hpux_writev();
|
||||
int settimeofday();
|
||||
int fchown();
|
||||
int fchmod();
|
||||
int nosys();
|
||||
int hpux_setresuid();
|
||||
int hpux_setresgid();
|
||||
int rename();
|
||||
int truncate();
|
||||
int ftruncate();
|
||||
int nosys();
|
||||
int notimp();
|
||||
int nosys();
|
||||
int nosys();
|
||||
int nosys();
|
||||
int hpux_sysconf();
|
||||
int mkdir();
|
||||
int rmdir();
|
||||
int nosys();
|
||||
int sigreturn();
|
||||
int nosys();
|
||||
int nosys();
|
||||
int nosys();
|
||||
int nosys();
|
||||
int nosys();
|
||||
int nosys();
|
||||
int nosys();
|
||||
int nosys();
|
||||
int nosys();
|
||||
int nosys();
|
||||
int nosys();
|
||||
int notimp();
|
||||
int hpux_rtprio();
|
||||
int notimp();
|
||||
int hpux_netioctl();
|
||||
int hpux_lockf();
|
||||
#ifdef SYSVSEM
|
||||
|
@ -153,9 +92,6 @@ int semget();
|
|||
int semctl();
|
||||
int semop();
|
||||
#else
|
||||
int notimp();
|
||||
int notimp();
|
||||
int notimp();
|
||||
#endif
|
||||
#ifdef SYSVMSG
|
||||
int msgget();
|
||||
|
@ -163,100 +99,48 @@ int msgctl();
|
|||
int msgsnd();
|
||||
int msgrcv();
|
||||
#else
|
||||
int notimp();
|
||||
int notimp();
|
||||
int notimp();
|
||||
int notimp();
|
||||
#endif
|
||||
#ifdef SYSVSHM
|
||||
int shmget();
|
||||
int shmctl();
|
||||
int hpux_shmctl();
|
||||
int shmat();
|
||||
int shmdt();
|
||||
#else
|
||||
int notimp();
|
||||
int notimp();
|
||||
int notimp();
|
||||
int notimp();
|
||||
#endif
|
||||
int hpux_advise();
|
||||
int notimp();
|
||||
int notimp();
|
||||
int notimp();
|
||||
int nosys();
|
||||
int notimp();
|
||||
int nosys();
|
||||
int hpux_getcontext();
|
||||
int nosys();
|
||||
int nosys();
|
||||
int nosys();
|
||||
int notimp();
|
||||
int nosys();
|
||||
int notimp();
|
||||
int notimp();
|
||||
int nosys();
|
||||
int nosys();
|
||||
int nosys();
|
||||
int nosys();
|
||||
int notimp();
|
||||
int notimp();
|
||||
int notimp();
|
||||
int notimp();
|
||||
int hpux_getaccess();
|
||||
int notimp();
|
||||
int notimp();
|
||||
int notimp();
|
||||
int notimp();
|
||||
int notimp();
|
||||
int notimp();
|
||||
int notimp();
|
||||
int notimp();
|
||||
int notimp();
|
||||
int hpux_waitpid();
|
||||
int nosys();
|
||||
int notimp();
|
||||
int nosys();
|
||||
int nosys();
|
||||
int nosys();
|
||||
int nosys();
|
||||
int nosys();
|
||||
int nosys();
|
||||
int nosys();
|
||||
int nosys();
|
||||
int nosys();
|
||||
int nosys();
|
||||
int nosys();
|
||||
int nosys();
|
||||
int nosys();
|
||||
int nosys();
|
||||
int nosys();
|
||||
int nosys();
|
||||
int nosys();
|
||||
int nosys();
|
||||
int nosys();
|
||||
int nosys();
|
||||
int nosys();
|
||||
int nosys();
|
||||
int notimp();
|
||||
int notimp();
|
||||
int nosys();
|
||||
int nosys();
|
||||
int notimp();
|
||||
int notimp();
|
||||
int getdirentries();
|
||||
int ogetdomainname();
|
||||
int notimp();
|
||||
int notimp();
|
||||
int notimp();
|
||||
int osetdomainname();
|
||||
int notimp();
|
||||
int notimp();
|
||||
int hpux_sigaction();
|
||||
int hpux_sigprocmask();
|
||||
int hpux_sigpending();
|
||||
int hpux_sigsuspend();
|
||||
int getdtablesize();
|
||||
int fchdir();
|
||||
int bind();
|
||||
int connect();
|
||||
int getsockopt();
|
||||
int listen();
|
||||
int sendto();
|
||||
int hpux_setsockopt2();
|
||||
int shutdown();
|
||||
int socket();
|
||||
int socketpair();
|
||||
#ifdef SYSVSHM
|
||||
int semctl();
|
||||
#else
|
||||
#endif
|
||||
#ifdef SYSVMSG
|
||||
int msgctl();
|
||||
#else
|
||||
#endif
|
||||
#ifdef SYSVSHM
|
||||
int hpux_nshmctl();
|
||||
#else
|
||||
#endif
|
||||
|
||||
#ifdef XXX_UNUSED
|
||||
#ifdef COMPAT_OHPUX
|
||||
#define compat(n, name) n, __CONCAT(o,name)
|
||||
|
||||
int ohpux_time();
|
||||
|
@ -273,6 +157,10 @@ int ohpux_ftime();
|
|||
int ohpux_setpgrp();
|
||||
int ohpux_times();
|
||||
int ohpux_ssig();
|
||||
int otruncate();
|
||||
int oftruncate();
|
||||
int ogetrlimit();
|
||||
int osetrlimit();
|
||||
#ifdef SYSVSEM
|
||||
#else
|
||||
#endif
|
||||
|
@ -282,124 +170,143 @@ int ohpux_ssig();
|
|||
#ifdef SYSVSHM
|
||||
#else
|
||||
#endif
|
||||
int ogetdomainname();
|
||||
int osetdomainname();
|
||||
int oaccept();
|
||||
int ogetpeername();
|
||||
int ogetsockname();
|
||||
int orecv();
|
||||
int orecvfrom();
|
||||
int orecvmsg();
|
||||
int osend();
|
||||
int osendmsg();
|
||||
#ifdef SYSVSHM
|
||||
#else
|
||||
#endif
|
||||
#ifdef SYSVMSG
|
||||
#else
|
||||
#endif
|
||||
#ifdef SYSVSHM
|
||||
#else
|
||||
#endif
|
||||
|
||||
#else /* XXX_UNUSED */
|
||||
#else /* COMPAT_OHPUX */
|
||||
#define compat(n, name) 0, nosys
|
||||
#endif /* XXX_UNUSED */
|
||||
#endif /* COMPAT_OHPUX */
|
||||
|
||||
struct sysent hpux_sysent[] = {
|
||||
{ 0, nosys }, /* 0 = nosys */
|
||||
{ 0, nosys }, /* 0 = indir or out-of-range */
|
||||
{ 1, exit }, /* 1 = exit */
|
||||
{ 0, fork }, /* 2 = fork */
|
||||
{ 3, hpux_read }, /* 3 = hpux_read */
|
||||
{ 3, hpux_write }, /* 4 = hpux_write */
|
||||
{ 3, hpux_open }, /* 5 = hpux_open */
|
||||
{ 0, hpux_fork }, /* 2 = fork */
|
||||
{ 3, hpux_read }, /* 3 = read */
|
||||
{ 3, hpux_write }, /* 4 = write */
|
||||
{ 3, hpux_open }, /* 5 = open */
|
||||
{ 1, close }, /* 6 = close */
|
||||
{ 1, hpux_wait }, /* 7 = hpux_wait */
|
||||
{ 2, ocreat }, /* 8 = creat */
|
||||
{ 1, hpux_wait }, /* 7 = owait */
|
||||
{ 2, hpux_creat }, /* 8 = ocreat */
|
||||
{ 2, link }, /* 9 = link */
|
||||
{ 1, unlink }, /* 10 = unlink */
|
||||
{ 2, hpux_execv }, /* 11 = execv */
|
||||
{ 1, chdir }, /* 12 = chdir */
|
||||
{ compat(1,hpux_time) }, /* 13 = old hpux_time */
|
||||
{ compat(1,hpux_time) }, /* 13 = old time */
|
||||
{ 3, mknod }, /* 14 = mknod */
|
||||
{ 2, chmod }, /* 15 = chmod */
|
||||
{ 3, chown }, /* 16 = chown */
|
||||
{ 1, obreak }, /* 17 = break */
|
||||
{ compat(2,hpux_stat) }, /* 18 = old hpux_stat */
|
||||
{ 3, lseek }, /* 19 = lseek */
|
||||
{ compat(2,hpux_stat) }, /* 18 = old stat */
|
||||
{ 3, olseek }, /* 19 = olseek */
|
||||
{ 0, getpid }, /* 20 = getpid */
|
||||
{ 3, notimp }, /* 21 = mount */
|
||||
{ 1, notimp }, /* 22 = umount */
|
||||
{ 3, notimp }, /* 21 = mount (unimplemented) */
|
||||
{ 1, notimp }, /* 22 = umount (unimplemented) */
|
||||
{ 1, setuid }, /* 23 = setuid */
|
||||
{ 0, getuid }, /* 24 = getuid */
|
||||
{ compat(1,hpux_stime) }, /* 25 = old hpux_stime */
|
||||
{ 4, hpux_ptrace }, /* 26 = hpux_ptrace */
|
||||
{ compat(1,hpux_alarm) }, /* 27 = old hpux_alarm */
|
||||
{ compat(2,hpux_fstat) }, /* 28 = old hpux_fstat */
|
||||
{ compat(0,hpux_pause) }, /* 29 = old hpux_pause */
|
||||
{ compat(2,hpux_utime) }, /* 30 = old hpux_utime */
|
||||
{ compat(2,hpux_stty) }, /* 31 = old hpux_stty */
|
||||
{ compat(2,hpux_gtty) }, /* 32 = old hpux_gtty */
|
||||
{ compat(1,hpux_stime) }, /* 25 = old stime */
|
||||
{ 4, hpux_ptrace }, /* 26 = ptrace */
|
||||
{ compat(1,hpux_alarm) }, /* 27 = old alarm */
|
||||
{ compat(2,hpux_fstat) }, /* 28 = old fstat */
|
||||
{ compat(0,hpux_pause) }, /* 29 = old pause */
|
||||
{ compat(2,hpux_utime) }, /* 30 = old utime */
|
||||
{ compat(2,hpux_stty) }, /* 31 = old stty */
|
||||
{ compat(2,hpux_gtty) }, /* 32 = old gtty */
|
||||
{ 2, access }, /* 33 = access */
|
||||
{ compat(1,hpux_nice) }, /* 34 = old hpux_nice */
|
||||
{ compat(1,hpux_ftime) }, /* 35 = old hpux_ftime */
|
||||
{ compat(1,hpux_nice) }, /* 34 = old nice */
|
||||
{ compat(1,hpux_ftime) }, /* 35 = old ftime */
|
||||
{ 0, sync }, /* 36 = sync */
|
||||
{ 2, hpux_kill }, /* 37 = hpux_kill */
|
||||
{ 2, hpux_stat }, /* 38 = hpux_stat */
|
||||
{ compat(1,hpux_setpgrp) }, /* 39 = old hpux_setpgrp */
|
||||
{ 2, hpux_lstat }, /* 40 = hpux_lstat */
|
||||
{ 1, hpux_dup }, /* 41 = hpux_dup */
|
||||
{ 2, hpux_kill }, /* 37 = kill */
|
||||
{ 2, hpux_stat }, /* 38 = stat */
|
||||
{ compat(1,hpux_setpgrp) }, /* 39 = old setpgrp */
|
||||
{ 2, hpux_lstat }, /* 40 = lstat */
|
||||
{ 1, hpux_dup }, /* 41 = dup */
|
||||
{ 0, pipe }, /* 42 = pipe */
|
||||
{ compat(1,hpux_times) }, /* 43 = old hpux_times */
|
||||
{ compat(1,hpux_times) }, /* 43 = old times */
|
||||
{ 4, profil }, /* 44 = profil */
|
||||
{ 4, notimp }, /* 45 = ki_syscall */
|
||||
{ 4, notimp }, /* 45 = ki_syscall (unimplemented) */
|
||||
{ 1, setgid }, /* 46 = setgid */
|
||||
{ 0, getgid }, /* 47 = getgid */
|
||||
{ compat(2,hpux_ssig) }, /* 48 = old hpux_ssig */
|
||||
{ 0, nosys }, /* 49 = reserved */
|
||||
{ 0, nosys }, /* 50 = reserved */
|
||||
{ 1, notimp }, /* 51 = acct */
|
||||
{ 0, nosys }, /* 52 = old set phys addr */
|
||||
{ 0, nosys }, /* 53 = old lock in core */
|
||||
{ 3, hpux_ioctl }, /* 54 = hpux_ioctl */
|
||||
{ 4, notimp }, /* 55 = reboot */
|
||||
{ compat(2,hpux_ssig) }, /* 48 = old ssig */
|
||||
{ 0, nosys }, /* 49 = reserved for USG */
|
||||
{ 0, nosys }, /* 50 = reserved for USG */
|
||||
{ 1, notimp }, /* 51 = acct (unimplemented) */
|
||||
{ 0, nosys }, /* 52 = nosys */
|
||||
{ 0, nosys }, /* 53 = nosys */
|
||||
{ 3, hpux_ioctl }, /* 54 = ioctl */
|
||||
{ 4, notimp }, /* 55 = reboot (unimplemented) */
|
||||
{ 2, symlink }, /* 56 = symlink */
|
||||
{ 3, hpux_utssys }, /* 57 = hpux_utssys */
|
||||
{ 3, hpux_utssys }, /* 57 = utssys */
|
||||
{ 3, readlink }, /* 58 = readlink */
|
||||
{ 3, execve }, /* 59 = execve */
|
||||
{ 1, umask }, /* 60 = umask */
|
||||
{ 1, chroot }, /* 61 = chroot */
|
||||
{ 3, hpux_fcntl }, /* 62 = hpux_fcntl */
|
||||
{ 2, hpux_ulimit }, /* 63 = hpux_ulimit */
|
||||
{ 3, hpux_fcntl }, /* 62 = fcntl */
|
||||
{ 2, hpux_ulimit }, /* 63 = ulimit */
|
||||
{ 0, nosys }, /* 64 = nosys */
|
||||
{ 0, nosys }, /* 65 = nosys */
|
||||
{ 0, vfork }, /* 66 = vfork */
|
||||
{ 0, hpux_read }, /* 67 = hpux_read */
|
||||
{ 0, hpux_write }, /* 68 = hpux_write */
|
||||
{ 0, hpux_vfork }, /* 66 = vfork */
|
||||
{ 0, hpux_read }, /* 67 = vread */
|
||||
{ 0, hpux_write }, /* 68 = vwrite */
|
||||
{ 0, nosys }, /* 69 = nosys */
|
||||
{ 0, nosys }, /* 70 = nosys */
|
||||
{ 0, nosys }, /* 71 = nosys */
|
||||
{ 6, hpux_mmap }, /* 71 = mmap */
|
||||
{ 0, nosys }, /* 72 = nosys */
|
||||
{ 0, nosys }, /* 73 = nosys */
|
||||
{ 3, notimp }, /* 74 = mprotect */
|
||||
{ 2, munmap }, /* 73 = munmap */
|
||||
{ 3, notimp }, /* 74 = mprotect (unimplemented) */
|
||||
{ 0, nosys }, /* 75 = nosys */
|
||||
{ 0, nosys }, /* 76 = nosys */
|
||||
{ 0, nosys }, /* 77 = nosys */
|
||||
{ 0, nosys }, /* 78 = nosys */
|
||||
{ 2, getgroups }, /* 79 = getgroups */
|
||||
{ 2, setgroups }, /* 80 = setgroups */
|
||||
{ 1, hpux_getpgrp2 }, /* 81 = hpux_getpgrp2 */
|
||||
{ 2, hpux_setpgrp2 }, /* 82 = hpux_setpgrp2 */
|
||||
{ 1, hpux_getpgrp2 }, /* 81 = getpgrp2 */
|
||||
{ 2, hpux_setpgrp2 }, /* 82 = setpgrp2 */
|
||||
{ 3, setitimer }, /* 83 = setitimer */
|
||||
{ 3, hpux_wait3 }, /* 84 = hpux_wait3 */
|
||||
{ 1, notimp }, /* 85 = swapon */
|
||||
{ 3, hpux_wait3 }, /* 84 = wait3 */
|
||||
{ 5, notimp }, /* 85 = swapon (unimplemented) */
|
||||
{ 2, getitimer }, /* 86 = getitimer */
|
||||
{ 0, nosys }, /* 87 = nosys */
|
||||
{ 0, nosys }, /* 88 = nosys */
|
||||
{ 0, nosys }, /* 89 = nosys */
|
||||
{ 2, dup2 }, /* 90 = dup2 */
|
||||
{ 2, nosys }, /* 91 = nosys */
|
||||
{ 2, hpux_fstat }, /* 92 = hpux_fstat */
|
||||
{ 0, nosys }, /* 91 = nosys */
|
||||
{ 2, hpux_fstat }, /* 92 = fstat */
|
||||
{ 5, select }, /* 93 = select */
|
||||
{ 0, nosys }, /* 94 = nosys */
|
||||
{ 1, fsync }, /* 95 = fsync */
|
||||
{ 0, nosys }, /* 96 = nosys */
|
||||
{ 3, nosys }, /* 97 = nosys */
|
||||
{ 2, nosys }, /* 98 = nosys */
|
||||
{ 2, nosys }, /* 99 = nosys */
|
||||
{ 0, nosys }, /* 97 = nosys */
|
||||
{ 0, nosys }, /* 98 = nosys */
|
||||
{ 0, nosys }, /* 99 = nosys */
|
||||
{ 0, nosys }, /* 100 = nosys */
|
||||
{ 0, nosys }, /* 101 = nosys */
|
||||
{ 0, nosys }, /* 102 = nosys */
|
||||
{ 1, sigreturn }, /* 103 = sigreturn */
|
||||
{ 2, nosys }, /* 104 = nosys */
|
||||
{ 0, nosys }, /* 104 = nosys */
|
||||
{ 0, nosys }, /* 105 = nosys */
|
||||
{ 0, nosys }, /* 106 = nosys */
|
||||
{ 0, nosys }, /* 107 = nosys */
|
||||
{ 3, hpux_sigvec }, /* 108 = hpux_sigvec */
|
||||
{ 1, hpux_sigblock }, /* 109 = hpux_sigblock */
|
||||
{ 1, hpux_sigsetmask }, /* 110 = hpux_sigsetmask */
|
||||
{ 1, hpux_sigpause }, /* 111 = hpux_sigpause */
|
||||
{ 3, hpux_sigvec }, /* 108 = sigvec */
|
||||
{ 1, hpux_sigblock }, /* 109 = sigblock */
|
||||
{ 1, hpux_sigsetmask }, /* 110 = sigsetmask */
|
||||
{ 1, hpux_sigpause }, /* 111 = sigpause */
|
||||
{ 2, osigstack }, /* 112 = osigstack */
|
||||
{ 0, nosys }, /* 113 = nosys */
|
||||
{ 0, nosys }, /* 114 = nosys */
|
||||
|
@ -407,51 +314,51 @@ struct sysent hpux_sysent[] = {
|
|||
{ 2, gettimeofday }, /* 116 = gettimeofday */
|
||||
{ 0, nosys }, /* 117 = nosys */
|
||||
{ 0, nosys }, /* 118 = nosys */
|
||||
{ 3, notimp }, /* 119 = hpib_io_stub */
|
||||
{ 3, hpux_readv }, /* 120 = hpux_readv */
|
||||
{ 3, hpux_writev }, /* 121 = hpux_writev */
|
||||
{ 3, notimp }, /* 119 = hpib_io_stub (unimplemented) */
|
||||
{ 3, hpux_readv }, /* 120 = readv */
|
||||
{ 3, hpux_writev }, /* 121 = writev */
|
||||
{ 2, settimeofday }, /* 122 = settimeofday */
|
||||
{ 3, fchown }, /* 123 = fchown */
|
||||
{ 2, fchmod }, /* 124 = fchmod */
|
||||
{ 0, nosys }, /* 125 = nosys */
|
||||
{ 3, hpux_setresuid }, /* 126 = hpux_setresuid */
|
||||
{ 3, hpux_setresgid }, /* 127 = hpux_setresgid */
|
||||
{ 3, hpux_setresuid }, /* 126 = setresuid */
|
||||
{ 3, hpux_setresgid }, /* 127 = setresgid */
|
||||
{ 2, rename }, /* 128 = rename */
|
||||
{ 2, truncate }, /* 129 = truncate */
|
||||
{ 2, ftruncate }, /* 130 = ftruncate */
|
||||
{ compat(2,truncate) }, /* 129 = old truncate */
|
||||
{ compat(2,ftruncate) }, /* 130 = old ftruncate */
|
||||
{ 0, nosys }, /* 131 = nosys */
|
||||
{ 1, notimp }, /* 132 = sysconf */
|
||||
{ 1, hpux_sysconf }, /* 132 = sysconf */
|
||||
{ 0, nosys }, /* 133 = nosys */
|
||||
{ 0, nosys }, /* 134 = nosys */
|
||||
{ 0, nosys }, /* 135 = nosys */
|
||||
{ 2, mkdir }, /* 136 = mkdir */
|
||||
{ 1, rmdir }, /* 137 = rmdir */
|
||||
{ 0, nosys }, /* 138 = nosys */
|
||||
{ 0, sigreturn }, /* 139 = sigreturn */
|
||||
{ 0, nosys }, /* 139 = nosys */
|
||||
{ 0, nosys }, /* 140 = nosys */
|
||||
{ 0, nosys }, /* 141 = nosys */
|
||||
{ 0, nosys }, /* 142 = nosys */
|
||||
{ 0, nosys }, /* 143 = nosys */
|
||||
{ 0, nosys }, /* 144 = nosys */
|
||||
{ 0, nosys }, /* 145 = nosys */
|
||||
{ compat(2,getrlimit) }, /* 144 = old getrlimit */
|
||||
{ compat(2,setrlimit) }, /* 145 = old setrlimit */
|
||||
{ 0, nosys }, /* 146 = nosys */
|
||||
{ 0, nosys }, /* 147 = nosys */
|
||||
{ 0, nosys }, /* 148 = nosys */
|
||||
{ 0, nosys }, /* 149 = nosys */
|
||||
{ 0, nosys }, /* 150 = nosys */
|
||||
{ 3, notimp }, /* 151 = privgrp */
|
||||
{ 3, notimp }, /* 151 = privgrp (unimplemented) */
|
||||
{ 2, hpux_rtprio }, /* 152 = rtprio */
|
||||
{ 1, notimp }, /* 153 = plock */
|
||||
{ 2, hpux_netioctl }, /* 154 = hpux_netioctl */
|
||||
{ 4, hpux_lockf }, /* 155 = hpux_lockf */
|
||||
{ 1, notimp }, /* 153 = plock (unimplemented) */
|
||||
{ 2, hpux_netioctl }, /* 154 = netioctl */
|
||||
{ 4, hpux_lockf }, /* 155 = lockf */
|
||||
#ifdef SYSVSEM
|
||||
{ 3, semget }, /* 156 = semget */
|
||||
{ 4, semctl }, /* 157 = semctl */
|
||||
{ 3, semop }, /* 158 = semop */
|
||||
#else
|
||||
{ 3, notimp }, /* 156 = semget */
|
||||
{ 4, notimp }, /* 157 = semctl */
|
||||
{ 3, notimp }, /* 158 = semop */
|
||||
{ 3, notimp }, /* 156 = semget (unimplemented) */
|
||||
{ 4, notimp }, /* 157 = semctl (unimplemented) */
|
||||
{ 3, notimp }, /* 158 = semop (unimplemented) */
|
||||
#endif
|
||||
#ifdef SYSVMSG
|
||||
{ 2, msgget }, /* 159 = msgget */
|
||||
|
@ -459,66 +366,66 @@ struct sysent hpux_sysent[] = {
|
|||
{ 4, msgsnd }, /* 161 = msgsnd */
|
||||
{ 5, msgrcv }, /* 162 = msgrcv */
|
||||
#else
|
||||
{ 2, notimp }, /* 159 = msgget */
|
||||
{ 3, notimp }, /* 160 = msgctl */
|
||||
{ 4, notimp }, /* 161 = msgsnd */
|
||||
{ 5, notimp }, /* 162 = msgrcv */
|
||||
{ 2, notimp }, /* 159 = msgget (unimplemented) */
|
||||
{ 3, notimp }, /* 160 = msgctl (unimplemented) */
|
||||
{ 4, notimp }, /* 161 = msgsnd (unimplemented) */
|
||||
{ 5, notimp }, /* 162 = msgrcv (unimplemented) */
|
||||
#endif
|
||||
#ifdef SYSVSHM
|
||||
{ 3, shmget }, /* 163 = shmget */
|
||||
{ 3, shmctl }, /* 164 = shmctl */
|
||||
{ 3, hpux_shmctl }, /* 164 = shmctl */
|
||||
{ 3, shmat }, /* 165 = shmat */
|
||||
{ 1, shmdt }, /* 166 = shmdt */
|
||||
#else
|
||||
{ 3, notimp }, /* 163 = shmget */
|
||||
{ 3, notimp }, /* 164 = shmctl */
|
||||
{ 3, notimp }, /* 165 = shmat */
|
||||
{ 1, notimp }, /* 166 = shmdt */
|
||||
{ 3, notimp }, /* 163 = shmget (unimplemented) */
|
||||
{ 3, notimp }, /* 164 = shmctl (unimplemented) */
|
||||
{ 3, notimp }, /* 165 = shmat (unimplemented) */
|
||||
{ 1, notimp }, /* 166 = shmdt (unimplemented) */
|
||||
#endif
|
||||
{ 1, hpux_advise }, /* 167 = hpux_advise */
|
||||
{ 0, notimp }, /* 168 = dux_notconfigured */
|
||||
{ 3, notimp }, /* 169 = cluster */
|
||||
{ 4, notimp }, /* 170 = mkrnod */
|
||||
{ 1, hpux_advise }, /* 167 = m68020_advise */
|
||||
{ 2, notimp }, /* 168 = nsp_init (unimplemented) */
|
||||
{ 3, notimp }, /* 169 = cluster (unimplemented) */
|
||||
{ 4, notimp }, /* 170 = mkrnod (unimplemented) */
|
||||
{ 0, nosys }, /* 171 = nosys */
|
||||
{ 0, notimp }, /* 172 = dux_notconfigured */
|
||||
{ 0, notimp }, /* 172 = unsp_open (unimplemented) */
|
||||
{ 0, nosys }, /* 173 = nosys */
|
||||
{ 3, hpux_getcontext }, /* 174 = hpux_getcontext */
|
||||
{ 3, hpux_getcontext }, /* 174 = getcontext */
|
||||
{ 0, nosys }, /* 175 = nosys */
|
||||
{ 0, nosys }, /* 176 = nosys */
|
||||
{ 0, nosys }, /* 177 = nosys */
|
||||
{ 0, notimp }, /* 178 = lsync */
|
||||
{ 0, notimp }, /* 178 = lsync (unimplemented) */
|
||||
{ 0, nosys }, /* 179 = nosys */
|
||||
{ 0, notimp }, /* 180 = mysite */
|
||||
{ 0, notimp }, /* 181 = returnzero */
|
||||
{ 0, notimp }, /* 180 = mysite (unimplemented) */
|
||||
{ 1, notimp }, /* 181 = sitels (unimplemented) */
|
||||
{ 0, nosys }, /* 182 = nosys */
|
||||
{ 0, nosys }, /* 183 = nosys */
|
||||
{ 0, nosys }, /* 184 = nosys */
|
||||
{ 4, notimp }, /* 184 = dskless_stats (unimplemented) */
|
||||
{ 0, nosys }, /* 185 = nosys */
|
||||
{ 3, notimp }, /* 186 = setacl */
|
||||
{ 3, notimp }, /* 187 = fsetacl */
|
||||
{ 3, notimp }, /* 188 = getacl */
|
||||
{ 3, notimp }, /* 189 = fgetacl */
|
||||
{ 6, hpux_getaccess }, /* 190 = hpux_getaccess */
|
||||
{ 0, notimp }, /* 191 = getaudid */
|
||||
{ 1, notimp }, /* 192 = setaudid */
|
||||
{ 0, notimp }, /* 193 = getaudproc */
|
||||
{ 1, notimp }, /* 194 = setaudproc */
|
||||
{ 2, notimp }, /* 195 = getevent */
|
||||
{ 2, notimp }, /* 196 = setevent */
|
||||
{ 1, notimp }, /* 197 = audwrite */
|
||||
{ 1, notimp }, /* 198 = audswitch */
|
||||
{ 4, notimp }, /* 199 = audctl */
|
||||
{ 3, hpux_waitpid }, /* 200 = hpux_waitpid */
|
||||
{ 3, notimp }, /* 186 = setacl (unimplemented) */
|
||||
{ 3, notimp }, /* 187 = fsetacl (unimplemented) */
|
||||
{ 3, notimp }, /* 188 = getacl (unimplemented) */
|
||||
{ 3, notimp }, /* 189 = fgetacl (unimplemented) */
|
||||
{ 6, hpux_getaccess }, /* 190 = getaccess */
|
||||
{ 0, notimp }, /* 191 = getaudid (unimplemented) */
|
||||
{ 1, notimp }, /* 192 = setaudid (unimplemented) */
|
||||
{ 0, notimp }, /* 193 = getaudproc (unimplemented) */
|
||||
{ 1, notimp }, /* 194 = setaudproc (unimplemented) */
|
||||
{ 2, notimp }, /* 195 = getevent (unimplemented) */
|
||||
{ 2, notimp }, /* 196 = setevent (unimplemented) */
|
||||
{ 1, notimp }, /* 197 = audwrite (unimplemented) */
|
||||
{ 1, notimp }, /* 198 = audswitch (unimplemented) */
|
||||
{ 4, notimp }, /* 199 = audctl (unimplemented) */
|
||||
{ 3, hpux_waitpid }, /* 200 = waitpid */
|
||||
{ 0, nosys }, /* 201 = nosys */
|
||||
{ 2, notimp }, /* 202 = netioctl */
|
||||
{ 6, nosys }, /* 203 = nosys */
|
||||
{ 0, nosys }, /* 202 = nosys */
|
||||
{ 0, nosys }, /* 203 = nosys */
|
||||
{ 0, nosys }, /* 204 = nosys */
|
||||
{ 0, nosys }, /* 205 = nosys */
|
||||
{ 9, nosys }, /* 206 = nosys */
|
||||
{ 0, nosys }, /* 206 = nosys */
|
||||
{ 0, nosys }, /* 207 = nosys */
|
||||
{ 0, nosys }, /* 208 = nosys */
|
||||
{ 6, nosys }, /* 209 = nosys */
|
||||
{ 5, nosys }, /* 210 = nosys */
|
||||
{ 0, nosys }, /* 209 = nosys */
|
||||
{ 0, nosys }, /* 210 = nosys */
|
||||
{ 0, nosys }, /* 211 = nosys */
|
||||
{ 0, nosys }, /* 212 = nosys */
|
||||
{ 0, nosys }, /* 213 = nosys */
|
||||
|
@ -528,29 +435,113 @@ struct sysent hpux_sysent[] = {
|
|||
{ 0, nosys }, /* 217 = nosys */
|
||||
{ 0, nosys }, /* 218 = nosys */
|
||||
{ 0, nosys }, /* 219 = nosys */
|
||||
{ 4, nosys }, /* 220 = nosys */
|
||||
{ 10, nosys }, /* 221 = nosys */
|
||||
{ 0, nosys }, /* 220 = nosys */
|
||||
{ 0, nosys }, /* 221 = nosys */
|
||||
{ 0, nosys }, /* 222 = nosys */
|
||||
{ 0, nosys }, /* 223 = nosys */
|
||||
{ 0, nosys }, /* 224 = nosys */
|
||||
{ 2, notimp }, /* 225 = pathconf */
|
||||
{ 2, notimp }, /* 226 = fpathconf */
|
||||
{ 2, notimp }, /* 225 = pathconf (unimplemented) */
|
||||
{ 2, notimp }, /* 226 = fpathconf (unimplemented) */
|
||||
{ 0, nosys }, /* 227 = nosys */
|
||||
{ 0, nosys }, /* 228 = nosys */
|
||||
{ 0, notimp }, /* 229 = async_daemon */
|
||||
{ 3, notimp }, /* 230 = nfs_fcntl */
|
||||
{ 0, notimp }, /* 229 = async_daemon (unimplemented) */
|
||||
{ 3, notimp }, /* 230 = nfs_fcntl (unimplemented) */
|
||||
{ 4, getdirentries }, /* 231 = getdirentries */
|
||||
{ 2, ogetdomainname }, /* 232 = ogetdomainname */
|
||||
{ 2, notimp }, /* 233 = nfs_getfh */
|
||||
{ 4, notimp }, /* 234 = vfsmount */
|
||||
{ 1, notimp }, /* 235 = nfs_svc */
|
||||
{ 2, osetdomainname }, /* 236 = osetdomainname */
|
||||
{ 0, notimp }, /* 237 = statfs */
|
||||
{ 0, notimp }, /* 238 = fstatfs */
|
||||
{ 3, hpux_sigaction }, /* 239 = hpux_sigaction */
|
||||
{ 3, hpux_sigprocmask }, /* 240 = hpux_sigprocmask */
|
||||
{ 1, hpux_sigpending }, /* 241 = hpux_sigpending */
|
||||
{ 1, hpux_sigsuspend }, /* 242 = hpux_sigsuspend */
|
||||
{ compat(2,getdomainname) }, /* 232 = old getdomainname */
|
||||
{ 2, notimp }, /* 233 = nfs_getfh (unimplemented) */
|
||||
{ 4, notimp }, /* 234 = vfsmount (unimplemented) */
|
||||
{ 1, notimp }, /* 235 = nfs_svc (unimplemented) */
|
||||
{ compat(2,setdomainname) }, /* 236 = old setdomainname */
|
||||
{ 2, notimp }, /* 237 = statfs (unimplemented) */
|
||||
{ 2, notimp }, /* 238 = fstatfs (unimplemented) */
|
||||
{ 3, hpux_sigaction }, /* 239 = sigaction */
|
||||
{ 3, hpux_sigprocmask }, /* 240 = sigprocmask */
|
||||
{ 1, hpux_sigpending }, /* 241 = sigpending */
|
||||
{ 1, hpux_sigsuspend }, /* 242 = sigsuspend */
|
||||
{ 4, notimp }, /* 243 = fsctl (unimplemented) */
|
||||
{ 0, nosys }, /* 244 = nosys */
|
||||
{ 3, notimp }, /* 245 = pstat (unimplemented) */
|
||||
{ 0, nosys }, /* 246 = nosys */
|
||||
{ 0, nosys }, /* 247 = nosys */
|
||||
{ 0, nosys }, /* 248 = nosys */
|
||||
{ 0, nosys }, /* 249 = nosys */
|
||||
{ 0, nosys }, /* 250 = nosys */
|
||||
{ 0, nosys }, /* 251 = nosys */
|
||||
{ 0, nosys }, /* 252 = nosys */
|
||||
{ 0, nosys }, /* 253 = nosys */
|
||||
{ 0, nosys }, /* 254 = nosys */
|
||||
{ 0, nosys }, /* 255 = nosys */
|
||||
{ 0, nosys }, /* 256 = nosys */
|
||||
{ 0, nosys }, /* 257 = nosys */
|
||||
{ 0, nosys }, /* 258 = nosys */
|
||||
{ 0, nosys }, /* 259 = nosys */
|
||||
{ 0, nosys }, /* 260 = nosys */
|
||||
{ 0, nosys }, /* 261 = nosys */
|
||||
{ 0, nosys }, /* 262 = nosys */
|
||||
{ 0, nosys }, /* 263 = nosys */
|
||||
{ 0, nosys }, /* 264 = nosys */
|
||||
{ 0, nosys }, /* 265 = nosys */
|
||||
{ 0, nosys }, /* 266 = nosys */
|
||||
{ 0, nosys }, /* 267 = nosys */
|
||||
{ 0, getdtablesize }, /* 268 = getnumfds */
|
||||
{ 0, nosys }, /* 269 = nosys */
|
||||
{ 0, nosys }, /* 270 = nosys */
|
||||
{ 0, nosys }, /* 271 = nosys */
|
||||
{ 1, fchdir }, /* 272 = fchdir */
|
||||
{ 0, nosys }, /* 273 = nosys */
|
||||
{ 0, nosys }, /* 274 = nosys */
|
||||
{ compat(3,accept) }, /* 275 = old accept */
|
||||
{ 3, bind }, /* 276 = bind */
|
||||
{ 3, connect }, /* 277 = connect */
|
||||
{ compat(3,getpeername) }, /* 278 = old getpeername */
|
||||
{ compat(3,getsockname) }, /* 279 = old getsockname */
|
||||
{ 5, getsockopt }, /* 280 = getsockopt */
|
||||
{ 2, listen }, /* 281 = listen */
|
||||
{ compat(4,recv) }, /* 282 = old recv */
|
||||
{ compat(6,recvfrom) }, /* 283 = old recvfrom */
|
||||
{ compat(3,recvmsg) }, /* 284 = old recvmsg */
|
||||
{ compat(4,send) }, /* 285 = old send */
|
||||
{ compat(3,sendmsg) }, /* 286 = old sendmsg */
|
||||
{ 6, sendto }, /* 287 = sendto */
|
||||
{ 5, hpux_setsockopt2 }, /* 288 = setsockopt2 */
|
||||
{ 2, shutdown }, /* 289 = shutdown */
|
||||
{ 3, socket }, /* 290 = socket */
|
||||
{ 4, socketpair }, /* 291 = socketpair */
|
||||
{ 0, nosys }, /* 292 = nosys */
|
||||
{ 0, nosys }, /* 293 = nosys */
|
||||
{ 0, nosys }, /* 294 = nosys */
|
||||
{ 0, nosys }, /* 295 = nosys */
|
||||
{ 0, nosys }, /* 296 = nosys */
|
||||
{ 0, nosys }, /* 297 = nosys */
|
||||
{ 0, nosys }, /* 298 = nosys */
|
||||
{ 0, nosys }, /* 299 = nosys */
|
||||
{ 0, nosys }, /* 300 = nosys */
|
||||
{ 0, nosys }, /* 301 = nosys */
|
||||
{ 0, nosys }, /* 302 = nosys */
|
||||
{ 0, nosys }, /* 303 = nosys */
|
||||
{ 0, nosys }, /* 304 = nosys */
|
||||
{ 0, nosys }, /* 305 = nosys */
|
||||
{ 0, nosys }, /* 306 = nosys */
|
||||
{ 0, nosys }, /* 307 = nosys */
|
||||
{ 0, nosys }, /* 308 = nosys */
|
||||
{ 0, nosys }, /* 309 = nosys */
|
||||
{ 0, nosys }, /* 310 = nosys */
|
||||
{ 0, nosys }, /* 311 = nosys */
|
||||
#ifdef SYSVSHM
|
||||
{ 4, semctl }, /* 312 = nsemctl */
|
||||
#else
|
||||
{ 4, notimp }, /* 312 = nsemctl (unimplemented) */
|
||||
#endif
|
||||
#ifdef SYSVMSG
|
||||
{ 3, msgctl }, /* 313 = nmsgctl */
|
||||
#else
|
||||
{ 3, notimp }, /* 313 = nmsgctl (unimplemented) */
|
||||
#endif
|
||||
#ifdef SYSVSHM
|
||||
{ 3, hpux_nshmctl }, /* 314 = nshmctl */
|
||||
#else
|
||||
{ 3, notimp }, /* 314 = nshmctl (unimplemented) */
|
||||
#endif
|
||||
};
|
||||
|
||||
int nhpux_sysent = sizeof(hpux_sysent) / sizeof(hpux_sysent[0]);
|
||||
int hpux_nsysent = sizeof(hpux_sysent) / sizeof(hpux_sysent[0]);
|
||||
|
|
|
@ -1,7 +1,7 @@
|
|||
/*
|
||||
* Copyright (c) 1988 University of Utah.
|
||||
* Copyright (c) 1990 The Regents of the University of California.
|
||||
* All rights reserved.
|
||||
* Copyright (c) 1990, 1993
|
||||
* The Regents of the University of California. All rights reserved.
|
||||
*
|
||||
* This code is derived from software contributed to Berkeley by
|
||||
* the Systems Programming Group of the University of Utah Computer
|
||||
|
@ -35,9 +35,10 @@
|
|||
* OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
|
||||
* SUCH DAMAGE.
|
||||
*
|
||||
* from: Utah Hdr: hpux_termio.h 1.1 90/07/09
|
||||
* from: @(#)hpux_termio.h 7.3 (Berkeley) 10/24/90
|
||||
* $Id: hpux_termio.h,v 1.4 1994/01/07 00:44:02 mycroft Exp $
|
||||
* from: Utah $Hdr: hpux_termio.h 1.1 90/07/09$
|
||||
*
|
||||
* from: @(#)hpux_termio.h 8.1 (Berkeley) 6/10/93
|
||||
* $Id: hpux_termio.h,v 1.5 1994/05/23 08:04:24 mycroft Exp $
|
||||
*/
|
||||
|
||||
/* HP-UX termio stuff */
|
||||
|
@ -53,6 +54,8 @@
|
|||
#define HPUXVEOL 5
|
||||
#define HPUXVMIN 4
|
||||
#define HPUXVTIME 5
|
||||
#define HPUXVEOL2 6
|
||||
#define HPUXVSWTCH 7
|
||||
|
||||
/* input modes */
|
||||
#define TIO_IGNBRK 0x00000001 /* 0000001 */
|
||||
|
@ -161,3 +164,28 @@ struct hpux_termio {
|
|||
#define HPUXTCSETA _IOW('T', 2, struct hpux_termio)
|
||||
#define HPUXTCSETAW _IOW('T', 3, struct hpux_termio)
|
||||
#define HPUXTCSETAF _IOW('T', 4, struct hpux_termio)
|
||||
|
||||
/* HP-UX termios stuff */
|
||||
|
||||
#define HPUXNCCS 16
|
||||
|
||||
/* control characters */
|
||||
#define HPUXVMINS 11 /* different than termio */
|
||||
#define HPUXVTIMES 12 /* different than termio */
|
||||
#define HPUXVSUSP 13
|
||||
#define HPUXVSTART 14
|
||||
#define HPUXVSTOP 15
|
||||
|
||||
struct hpux_termios {
|
||||
u_int c_iflag; /* input modes */
|
||||
u_int c_oflag; /* output modes */
|
||||
u_int c_cflag; /* control modes */
|
||||
u_int c_lflag; /* line discipline modes */
|
||||
u_int c_reserved; /* future use */
|
||||
u_char c_cc[HPUXNCCS]; /* control chars */
|
||||
};
|
||||
|
||||
#define HPUXTCGETATTR _IOR('T', 16, struct hpux_termios)
|
||||
#define HPUXTCSETATTR _IOW('T', 17, struct hpux_termios)
|
||||
#define HPUXTCSETATTRD _IOW('T', 18, struct hpux_termios)
|
||||
#define HPUXTCSETATTRF _IOW('T', 19, struct hpux_termios)
|
||||
|
|
|
@ -1,7 +1,7 @@
|
|||
/*
|
||||
* Copyright (c) 1988 University of Utah.
|
||||
* Copyright (c) 1990 The Regents of the University of California.
|
||||
* All rights reserved.
|
||||
* Copyright (c) 1990, 1993
|
||||
* The Regents of the University of California. All rights reserved.
|
||||
*
|
||||
* This code is derived from software contributed to Berkeley by
|
||||
* the Systems Programming Group of the University of Utah Computer
|
||||
|
@ -35,140 +35,180 @@
|
|||
* OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
|
||||
* SUCH DAMAGE.
|
||||
*
|
||||
* from: Utah Hdr: hpux_tty.c 1.1 90/07/09
|
||||
* from: @(#)hpux_tty.c 7.9 (Berkeley) 5/30/91
|
||||
* $Id: hpux_tty.c,v 1.5 1994/05/04 04:09:39 mycroft Exp $
|
||||
* from: Utah $Hdr: hpux_tty.c 1.14 93/08/05$
|
||||
*
|
||||
* from: @(#)hpux_tty.c 8.3 (Berkeley) 1/12/94
|
||||
* $Id: hpux_tty.c,v 1.6 1994/05/23 08:04:26 mycroft Exp $
|
||||
*/
|
||||
|
||||
/*
|
||||
* stty/gtty/termio emulation stuff
|
||||
*/
|
||||
|
||||
#include "param.h"
|
||||
#include "systm.h"
|
||||
#include "filedesc.h"
|
||||
#include "ioctl.h"
|
||||
#include "tty.h"
|
||||
#include "proc.h"
|
||||
#include "file.h"
|
||||
#include "conf.h"
|
||||
#include "buf.h"
|
||||
#include "kernel.h"
|
||||
#ifndef COMPAT_43
|
||||
#define COMPAT_43
|
||||
#endif
|
||||
|
||||
#include "hpux.h"
|
||||
#include "hpux_termio.h"
|
||||
#include <sys/param.h>
|
||||
#include <sys/systm.h>
|
||||
#include <sys/filedesc.h>
|
||||
#include <sys/ioctl.h>
|
||||
#include <sys/proc.h>
|
||||
#include <sys/tty.h>
|
||||
#include <sys/file.h>
|
||||
#include <sys/conf.h>
|
||||
#include <sys/buf.h>
|
||||
#include <sys/kernel.h>
|
||||
|
||||
#include <hp300/hpux/hpux.h>
|
||||
#include <hp300/hpux/hpux_termio.h>
|
||||
|
||||
/*
|
||||
* Map BSD/POSIX style termios info to and from SYS5 style termio stuff.
|
||||
*/
|
||||
hpux_termio(fp, com, data, p)
|
||||
struct file *fp;
|
||||
hpux_termio(fd, com, data, p)
|
||||
int fd, com;
|
||||
caddr_t data;
|
||||
struct proc *p;
|
||||
{
|
||||
struct file *fp;
|
||||
struct termios tios;
|
||||
struct hpux_termios htios;
|
||||
int line, error, (*ioctlrout)();
|
||||
register struct hpux_termio *tiop;
|
||||
int newi = 0;
|
||||
|
||||
fp = p->p_fd->fd_ofiles[fd];
|
||||
ioctlrout = fp->f_ops->fo_ioctl;
|
||||
tiop = (struct hpux_termio *)data;
|
||||
switch (com) {
|
||||
case HPUXTCGETATTR:
|
||||
newi = 1;
|
||||
/* fall into ... */
|
||||
case HPUXTCGETA:
|
||||
/*
|
||||
* Get BSD terminal state
|
||||
*/
|
||||
bzero(data, sizeof(struct hpux_termio));
|
||||
if (error = (*ioctlrout)(fp, TIOCGETA, (caddr_t)&tios, p))
|
||||
break;
|
||||
bzero((char *)&htios, sizeof htios);
|
||||
/*
|
||||
* Set iflag.
|
||||
* Same through ICRNL, no BSD equivs for IUCLC, IENQAK
|
||||
*/
|
||||
tiop->c_iflag = tios.c_iflag & 0x1ff;
|
||||
htios.c_iflag = tios.c_iflag & 0x1ff;
|
||||
if (tios.c_iflag & IXON)
|
||||
tiop->c_iflag |= TIO_IXON;
|
||||
htios.c_iflag |= TIO_IXON;
|
||||
if (tios.c_iflag & IXOFF)
|
||||
tiop->c_iflag |= TIO_IXOFF;
|
||||
htios.c_iflag |= TIO_IXOFF;
|
||||
if (tios.c_iflag & IXANY)
|
||||
tiop->c_iflag |= TIO_IXANY;
|
||||
htios.c_iflag |= TIO_IXANY;
|
||||
/*
|
||||
* Set oflag.
|
||||
* No BSD equivs for OLCUC/OCRNL/ONOCR/ONLRET/OFILL/OFDEL
|
||||
* or any of the delays.
|
||||
*/
|
||||
if (tios.c_oflag & OPOST)
|
||||
tiop->c_oflag |= TIO_OPOST;
|
||||
htios.c_oflag |= TIO_OPOST;
|
||||
if (tios.c_oflag & ONLCR)
|
||||
tiop->c_oflag |= TIO_ONLCR;
|
||||
htios.c_oflag |= TIO_ONLCR;
|
||||
if (tios.c_oflag & OXTABS)
|
||||
tiop->c_oflag |= TIO_TAB3;
|
||||
htios.c_oflag |= TIO_TAB3;
|
||||
/*
|
||||
* Set cflag.
|
||||
* Baud from ospeed, rest from cflag.
|
||||
*/
|
||||
tiop->c_cflag = bsdtohpuxbaud(tios.c_ospeed);
|
||||
htios.c_cflag = bsdtohpuxbaud(tios.c_ospeed);
|
||||
switch (tios.c_cflag & CSIZE) {
|
||||
case CS5:
|
||||
tiop->c_cflag |= TIO_CS5; break;
|
||||
htios.c_cflag |= TIO_CS5; break;
|
||||
case CS6:
|
||||
tiop->c_cflag |= TIO_CS6; break;
|
||||
htios.c_cflag |= TIO_CS6; break;
|
||||
case CS7:
|
||||
tiop->c_cflag |= TIO_CS7; break;
|
||||
htios.c_cflag |= TIO_CS7; break;
|
||||
case CS8:
|
||||
tiop->c_cflag |= TIO_CS8; break;
|
||||
htios.c_cflag |= TIO_CS8; break;
|
||||
}
|
||||
if (tios.c_cflag & CSTOPB)
|
||||
tiop->c_cflag |= TIO_CSTOPB;
|
||||
htios.c_cflag |= TIO_CSTOPB;
|
||||
if (tios.c_cflag & CREAD)
|
||||
tiop->c_cflag |= TIO_CREAD;
|
||||
htios.c_cflag |= TIO_CREAD;
|
||||
if (tios.c_cflag & PARENB)
|
||||
tiop->c_cflag |= TIO_PARENB;
|
||||
htios.c_cflag |= TIO_PARENB;
|
||||
if (tios.c_cflag & PARODD)
|
||||
tiop->c_cflag |= TIO_PARODD;
|
||||
htios.c_cflag |= TIO_PARODD;
|
||||
if (tios.c_cflag & HUPCL)
|
||||
tiop->c_cflag |= TIO_HUPCL;
|
||||
htios.c_cflag |= TIO_HUPCL;
|
||||
if (tios.c_cflag & CLOCAL)
|
||||
tiop->c_cflag |= TIO_CLOCAL;
|
||||
htios.c_cflag |= TIO_CLOCAL;
|
||||
/*
|
||||
* Set lflag.
|
||||
* No BSD equiv for XCASE.
|
||||
*/
|
||||
if (tios.c_lflag & ECHOE)
|
||||
tiop->c_lflag |= TIO_ECHOE;
|
||||
htios.c_lflag |= TIO_ECHOE;
|
||||
if (tios.c_lflag & ECHOK)
|
||||
tiop->c_lflag |= TIO_ECHOK;
|
||||
htios.c_lflag |= TIO_ECHOK;
|
||||
if (tios.c_lflag & ECHO)
|
||||
tiop->c_lflag |= TIO_ECHO;
|
||||
htios.c_lflag |= TIO_ECHO;
|
||||
if (tios.c_lflag & ECHONL)
|
||||
tiop->c_lflag |= TIO_ECHONL;
|
||||
htios.c_lflag |= TIO_ECHONL;
|
||||
if (tios.c_lflag & ISIG)
|
||||
tiop->c_lflag |= TIO_ISIG;
|
||||
htios.c_lflag |= TIO_ISIG;
|
||||
if (tios.c_lflag & ICANON)
|
||||
tiop->c_lflag |= TIO_ICANON;
|
||||
htios.c_lflag |= TIO_ICANON;
|
||||
if (tios.c_lflag & NOFLSH)
|
||||
tiop->c_lflag |= TIO_NOFLSH;
|
||||
htios.c_lflag |= TIO_NOFLSH;
|
||||
/*
|
||||
* Line discipline
|
||||
*/
|
||||
line = 0;
|
||||
(void) (*ioctlrout)(fp, TIOCGETD, (caddr_t)&line, p);
|
||||
tiop->c_line = line;
|
||||
/*
|
||||
* Set editing chars
|
||||
*/
|
||||
tiop->c_cc[HPUXVINTR] = tios.c_cc[VINTR];
|
||||
tiop->c_cc[HPUXVQUIT] = tios.c_cc[VQUIT];
|
||||
tiop->c_cc[HPUXVERASE] = tios.c_cc[VERASE];
|
||||
tiop->c_cc[HPUXVKILL] = tios.c_cc[VKILL];
|
||||
if (tiop->c_lflag & TIO_ICANON) {
|
||||
tiop->c_cc[HPUXVEOF] = tios.c_cc[VEOF];
|
||||
tiop->c_cc[HPUXVEOL] = tios.c_cc[VEOL];
|
||||
} else {
|
||||
tiop->c_cc[HPUXVMIN] = tios.c_cc[VMIN];
|
||||
tiop->c_cc[HPUXVTIME] = tios.c_cc[VTIME];
|
||||
if (!newi) {
|
||||
line = 0;
|
||||
(void) (*ioctlrout)(fp, TIOCGETD, (caddr_t)&line, p);
|
||||
htios.c_reserved = line;
|
||||
}
|
||||
/*
|
||||
* Set editing chars.
|
||||
* No BSD equiv for VSWTCH.
|
||||
*/
|
||||
htios.c_cc[HPUXVINTR] = tios.c_cc[VINTR];
|
||||
htios.c_cc[HPUXVQUIT] = tios.c_cc[VQUIT];
|
||||
htios.c_cc[HPUXVERASE] = tios.c_cc[VERASE];
|
||||
htios.c_cc[HPUXVKILL] = tios.c_cc[VKILL];
|
||||
htios.c_cc[HPUXVEOF] = tios.c_cc[VEOF];
|
||||
htios.c_cc[HPUXVEOL] = tios.c_cc[VEOL];
|
||||
htios.c_cc[HPUXVEOL2] = tios.c_cc[VEOL2];
|
||||
htios.c_cc[HPUXVSWTCH] = 0;
|
||||
#if 1
|
||||
/*
|
||||
* XXX since VMIN and VTIME are not implemented,
|
||||
* we need to return something reasonable.
|
||||
* Otherwise a GETA/SETA combo would always put
|
||||
* the tty in non-blocking mode (since VMIN == VTIME == 0).
|
||||
*/
|
||||
if (fp->f_flag & FNONBLOCK) {
|
||||
htios.c_cc[HPUXVMINS] = 0;
|
||||
htios.c_cc[HPUXVTIMES] = 0;
|
||||
} else {
|
||||
htios.c_cc[HPUXVMINS] = 6;
|
||||
htios.c_cc[HPUXVTIMES] = 1;
|
||||
}
|
||||
#else
|
||||
htios.c_cc[HPUXVMINS] = tios.c_cc[VMIN];
|
||||
htios.c_cc[HPUXVTIMES] = tios.c_cc[VTIME];
|
||||
#endif
|
||||
htios.c_cc[HPUXVSUSP] = tios.c_cc[VSUSP];
|
||||
htios.c_cc[HPUXVSTART] = tios.c_cc[VSTART];
|
||||
htios.c_cc[HPUXVSTOP] = tios.c_cc[VSTOP];
|
||||
if (newi)
|
||||
bcopy((char *)&htios, data, sizeof htios);
|
||||
else
|
||||
termiostotermio(&htios, (struct hpux_termio *)data);
|
||||
break;
|
||||
|
||||
case HPUXTCSETATTR:
|
||||
case HPUXTCSETATTRD:
|
||||
case HPUXTCSETATTRF:
|
||||
newi = 1;
|
||||
/* fall into ... */
|
||||
case HPUXTCSETA:
|
||||
case HPUXTCSETAW:
|
||||
case HPUXTCSETAF:
|
||||
|
@ -177,28 +217,32 @@ hpux_termio(fp, com, data, p)
|
|||
*/
|
||||
if (error = (*ioctlrout)(fp, TIOCGETA, (caddr_t)&tios, p))
|
||||
break;
|
||||
if (newi)
|
||||
bcopy(data, (char *)&htios, sizeof htios);
|
||||
else
|
||||
termiototermios((struct termio *)data, &htios, &tios);
|
||||
/*
|
||||
* Set iflag.
|
||||
* Same through ICRNL, no HP-UX equiv for IMAXBEL
|
||||
*/
|
||||
tios.c_iflag &= ~(IXON|IXOFF|IXANY|0x1ff);
|
||||
tios.c_iflag |= tiop->c_iflag & 0x1ff;
|
||||
if (tiop->c_iflag & TIO_IXON)
|
||||
tios.c_iflag |= htios.c_iflag & 0x1ff;
|
||||
if (htios.c_iflag & TIO_IXON)
|
||||
tios.c_iflag |= IXON;
|
||||
if (tiop->c_iflag & TIO_IXOFF)
|
||||
if (htios.c_iflag & TIO_IXOFF)
|
||||
tios.c_iflag |= IXOFF;
|
||||
if (tiop->c_iflag & TIO_IXANY)
|
||||
if (htios.c_iflag & TIO_IXANY)
|
||||
tios.c_iflag |= IXANY;
|
||||
/*
|
||||
* Set oflag.
|
||||
* No HP-UX equiv for ONOEOT
|
||||
*/
|
||||
tios.c_oflag &= ~(OPOST|ONLCR|OXTABS);
|
||||
if (tiop->c_oflag & TIO_OPOST)
|
||||
if (htios.c_oflag & TIO_OPOST)
|
||||
tios.c_oflag |= OPOST;
|
||||
if (tiop->c_oflag & TIO_ONLCR)
|
||||
if (htios.c_oflag & TIO_ONLCR)
|
||||
tios.c_oflag |= ONLCR;
|
||||
if (tiop->c_oflag & TIO_TAB3)
|
||||
if (htios.c_oflag & TIO_TAB3)
|
||||
tios.c_oflag |= OXTABS;
|
||||
/*
|
||||
* Set cflag.
|
||||
|
@ -206,7 +250,7 @@ hpux_termio(fp, com, data, p)
|
|||
*/
|
||||
tios.c_cflag &=
|
||||
~(CSIZE|CSTOPB|CREAD|PARENB|PARODD|HUPCL|CLOCAL);
|
||||
switch (tiop->c_cflag & TIO_CSIZE) {
|
||||
switch (htios.c_cflag & TIO_CSIZE) {
|
||||
case TIO_CS5:
|
||||
tios.c_cflag |= CS5; break;
|
||||
case TIO_CS6:
|
||||
|
@ -216,17 +260,17 @@ hpux_termio(fp, com, data, p)
|
|||
case TIO_CS8:
|
||||
tios.c_cflag |= CS8; break;
|
||||
}
|
||||
if (tiop->c_cflag & TIO_CSTOPB)
|
||||
if (htios.c_cflag & TIO_CSTOPB)
|
||||
tios.c_cflag |= CSTOPB;
|
||||
if (tiop->c_cflag & TIO_CREAD)
|
||||
if (htios.c_cflag & TIO_CREAD)
|
||||
tios.c_cflag |= CREAD;
|
||||
if (tiop->c_cflag & TIO_PARENB)
|
||||
if (htios.c_cflag & TIO_PARENB)
|
||||
tios.c_cflag |= PARENB;
|
||||
if (tiop->c_cflag & TIO_PARODD)
|
||||
if (htios.c_cflag & TIO_PARODD)
|
||||
tios.c_cflag |= PARODD;
|
||||
if (tiop->c_cflag & TIO_HUPCL)
|
||||
if (htios.c_cflag & TIO_HUPCL)
|
||||
tios.c_cflag |= HUPCL;
|
||||
if (tiop->c_cflag & TIO_CLOCAL)
|
||||
if (htios.c_cflag & TIO_CLOCAL)
|
||||
tios.c_cflag |= CLOCAL;
|
||||
/*
|
||||
* Set lflag.
|
||||
|
@ -234,42 +278,44 @@ hpux_termio(fp, com, data, p)
|
|||
* IEXTEN treated as part of ICANON
|
||||
*/
|
||||
tios.c_lflag &= ~(ECHOE|ECHOK|ECHO|ISIG|ICANON|IEXTEN|NOFLSH);
|
||||
if (tiop->c_lflag & TIO_ECHOE)
|
||||
if (htios.c_lflag & TIO_ECHOE)
|
||||
tios.c_lflag |= ECHOE;
|
||||
if (tiop->c_lflag & TIO_ECHOK)
|
||||
if (htios.c_lflag & TIO_ECHOK)
|
||||
tios.c_lflag |= ECHOK;
|
||||
if (tiop->c_lflag & TIO_ECHO)
|
||||
if (htios.c_lflag & TIO_ECHO)
|
||||
tios.c_lflag |= ECHO;
|
||||
if (tiop->c_lflag & TIO_ECHONL)
|
||||
if (htios.c_lflag & TIO_ECHONL)
|
||||
tios.c_lflag |= ECHONL;
|
||||
if (tiop->c_lflag & TIO_ISIG)
|
||||
if (htios.c_lflag & TIO_ISIG)
|
||||
tios.c_lflag |= ISIG;
|
||||
if (tiop->c_lflag & TIO_ICANON)
|
||||
if (htios.c_lflag & TIO_ICANON)
|
||||
tios.c_lflag |= (ICANON|IEXTEN);
|
||||
if (tiop->c_lflag & TIO_NOFLSH)
|
||||
if (htios.c_lflag & TIO_NOFLSH)
|
||||
tios.c_lflag |= NOFLSH;
|
||||
/*
|
||||
* Set editing chars.
|
||||
* No HP-UX equivs of VEOL2/VWERASE/VREPRINT/VSUSP/VDSUSP
|
||||
* VSTOP/VLNEXT/VDISCARD/VMIN/VTIME/VSTATUS/VERASE2
|
||||
* No HP-UX equivs of VWERASE/VREPRINT/VDSUSP/VLNEXT
|
||||
* /VDISCARD/VSTATUS/VERASE2
|
||||
*/
|
||||
tios.c_cc[VINTR] = tiop->c_cc[HPUXVINTR];
|
||||
tios.c_cc[VQUIT] = tiop->c_cc[HPUXVQUIT];
|
||||
tios.c_cc[VERASE] = tiop->c_cc[HPUXVERASE];
|
||||
tios.c_cc[VKILL] = tiop->c_cc[HPUXVKILL];
|
||||
if (tios.c_lflag & ICANON) {
|
||||
tios.c_cc[VEOF] = tiop->c_cc[HPUXVEOF];
|
||||
tios.c_cc[VEOL] = tiop->c_cc[HPUXVEOL];
|
||||
} else {
|
||||
tios.c_cc[VMIN] = tiop->c_cc[HPUXVMIN];
|
||||
tios.c_cc[VTIME] = tiop->c_cc[HPUXVTIME];
|
||||
}
|
||||
tios.c_cc[VINTR] = htios.c_cc[HPUXVINTR];
|
||||
tios.c_cc[VQUIT] = htios.c_cc[HPUXVQUIT];
|
||||
tios.c_cc[VERASE] = htios.c_cc[HPUXVERASE];
|
||||
tios.c_cc[VKILL] = htios.c_cc[HPUXVKILL];
|
||||
tios.c_cc[VEOF] = htios.c_cc[HPUXVEOF];
|
||||
tios.c_cc[VEOL] = htios.c_cc[HPUXVEOL];
|
||||
tios.c_cc[VEOL2] = htios.c_cc[HPUXVEOL2];
|
||||
tios.c_cc[VMIN] = htios.c_cc[HPUXVMINS];
|
||||
tios.c_cc[VTIME] = htios.c_cc[HPUXVTIMES];
|
||||
tios.c_cc[VSUSP] = htios.c_cc[HPUXVSUSP];
|
||||
tios.c_cc[VSTART] = htios.c_cc[HPUXVSTART];
|
||||
tios.c_cc[VSTOP] = htios.c_cc[HPUXVSTOP];
|
||||
|
||||
/*
|
||||
* Set the new stuff
|
||||
*/
|
||||
if (com == HPUXTCSETA)
|
||||
if (com == HPUXTCSETA || com == HPUXTCSETATTR)
|
||||
com = TIOCSETA;
|
||||
else if (com == HPUXTCSETAW)
|
||||
else if (com == HPUXTCSETAW || com == HPUXTCSETATTRD)
|
||||
com = TIOCSETAW;
|
||||
else
|
||||
com = TIOCSETAF;
|
||||
|
@ -278,23 +324,44 @@ hpux_termio(fp, com, data, p)
|
|||
/*
|
||||
* Set line discipline
|
||||
*/
|
||||
line = tiop->c_line;
|
||||
(void) (*ioctlrout)(fp, TIOCSETD, (caddr_t)&line, p);
|
||||
if (!newi) {
|
||||
line = htios.c_reserved;
|
||||
(void) (*ioctlrout)(fp, TIOCSETD,
|
||||
(caddr_t)&line, p);
|
||||
}
|
||||
/*
|
||||
* Set non-blocking IO if VMIN == VTIME == 0.
|
||||
* Should handle the other cases as well. It also
|
||||
* isn't correct to just turn it off as it could be
|
||||
* on as the result of a fcntl operation.
|
||||
* Set non-blocking IO if VMIN == VTIME == 0, clear
|
||||
* if not. Should handle the other cases as well.
|
||||
* Note it isn't correct to just turn NBIO off like
|
||||
* we do as it could be on as the result of a fcntl
|
||||
* operation.
|
||||
*
|
||||
* XXX - wouldn't need to do this at all if VMIN/VTIME
|
||||
* were implemented.
|
||||
*/
|
||||
line = (tiop->c_cc[HPUXVMIN] == 0 &&
|
||||
tiop->c_cc[HPUXVTIME] == 0);
|
||||
if (line)
|
||||
fp->f_flag |= FNONBLOCK;
|
||||
else
|
||||
fp->f_flag &= ~FNONBLOCK;
|
||||
(void) (*ioctlrout)(fp, FIONBIO, (caddr_t)&line, p);
|
||||
{
|
||||
struct hpux_fcntl_args {
|
||||
int fdes, cmd, arg;
|
||||
} args;
|
||||
int flags, nbio;
|
||||
|
||||
nbio = (htios.c_cc[HPUXVMINS] == 0 &&
|
||||
htios.c_cc[HPUXVTIMES] == 0);
|
||||
if (nbio && (fp->f_flag & FNONBLOCK) == 0 ||
|
||||
!nbio && (fp->f_flag & FNONBLOCK)) {
|
||||
args.fdes = fd;
|
||||
args.cmd = F_GETFL;
|
||||
args.arg = 0;
|
||||
(void) hpux_fcntl(p, &args, &flags);
|
||||
if (nbio)
|
||||
flags |= HPUXNDELAY;
|
||||
else
|
||||
flags &= ~HPUXNDELAY;
|
||||
args.cmd = F_SETFL;
|
||||
args.arg = flags;
|
||||
(void) hpux_fcntl(p, &args, &flags);
|
||||
}
|
||||
}
|
||||
}
|
||||
break;
|
||||
|
||||
|
@ -305,6 +372,59 @@ hpux_termio(fp, com, data, p)
|
|||
return(error);
|
||||
}
|
||||
|
||||
termiototermios(tio, tios, bsdtios)
|
||||
struct hpux_termio *tio;
|
||||
struct hpux_termios *tios;
|
||||
struct termios *bsdtios;
|
||||
{
|
||||
int i;
|
||||
|
||||
bzero((char *)tios, sizeof *tios);
|
||||
tios->c_iflag = tio->c_iflag;
|
||||
tios->c_oflag = tio->c_oflag;
|
||||
tios->c_cflag = tio->c_cflag;
|
||||
tios->c_lflag = tio->c_lflag;
|
||||
tios->c_reserved = tio->c_line;
|
||||
for (i = 0; i <= HPUXVSWTCH; i++)
|
||||
tios->c_cc[i] = tio->c_cc[i];
|
||||
if (tios->c_lflag & TIO_ICANON) {
|
||||
tios->c_cc[HPUXVEOF] = tio->c_cc[HPUXVEOF];
|
||||
tios->c_cc[HPUXVEOL] = tio->c_cc[HPUXVEOL];
|
||||
tios->c_cc[HPUXVMINS] = 0;
|
||||
tios->c_cc[HPUXVTIMES] = 0;
|
||||
} else {
|
||||
tios->c_cc[HPUXVEOF] = 0;
|
||||
tios->c_cc[HPUXVEOL] = 0;
|
||||
tios->c_cc[HPUXVMINS] = tio->c_cc[HPUXVMIN];
|
||||
tios->c_cc[HPUXVTIMES] = tio->c_cc[HPUXVTIME];
|
||||
}
|
||||
tios->c_cc[HPUXVSUSP] = bsdtios->c_cc[VSUSP];
|
||||
tios->c_cc[HPUXVSTART] = bsdtios->c_cc[VSTART];
|
||||
tios->c_cc[HPUXVSTOP] = bsdtios->c_cc[VSTOP];
|
||||
}
|
||||
|
||||
termiostotermio(tios, tio)
|
||||
struct hpux_termios *tios;
|
||||
struct hpux_termio *tio;
|
||||
{
|
||||
int i;
|
||||
|
||||
tio->c_iflag = tios->c_iflag;
|
||||
tio->c_oflag = tios->c_oflag;
|
||||
tio->c_cflag = tios->c_cflag;
|
||||
tio->c_lflag = tios->c_lflag;
|
||||
tio->c_line = tios->c_reserved;
|
||||
for (i = 0; i <= HPUXVSWTCH; i++)
|
||||
tio->c_cc[i] = tios->c_cc[i];
|
||||
if (tios->c_lflag & TIO_ICANON) {
|
||||
tio->c_cc[HPUXVEOF] = tios->c_cc[HPUXVEOF];
|
||||
tio->c_cc[HPUXVEOL] = tios->c_cc[HPUXVEOL];
|
||||
} else {
|
||||
tio->c_cc[HPUXVMIN] = tios->c_cc[HPUXVMINS];
|
||||
tio->c_cc[HPUXVTIME] = tios->c_cc[HPUXVTIMES];
|
||||
}
|
||||
}
|
||||
|
||||
bsdtohpuxbaud(bsdspeed)
|
||||
long bsdspeed;
|
||||
{
|
||||
|
@ -329,8 +449,8 @@ bsdtohpuxbaud(bsdspeed)
|
|||
}
|
||||
}
|
||||
|
||||
hpuxtobsdbaud(hpuxspeed)
|
||||
int hpuxspeed;
|
||||
hpuxtobsdbaud(hpux_speed)
|
||||
int hpux_speed;
|
||||
{
|
||||
static char hpuxtobsdbaudtab[32] = {
|
||||
B0, B50, B75, B110, B134, B150, B200, B300,
|
||||
|
@ -339,32 +459,26 @@ hpuxtobsdbaud(hpuxspeed)
|
|||
B0, B0, B0, B0, B0, B0, EXTA, EXTB
|
||||
};
|
||||
|
||||
return(hpuxtobsdbaudtab[hpuxspeed & TIO_CBAUD]);
|
||||
return(hpuxtobsdbaudtab[hpux_speed & TIO_CBAUD]);
|
||||
}
|
||||
|
||||
/* #ifdef COMPAT */
|
||||
struct ohpux_gtty_args {
|
||||
#ifdef COMPAT_OHPUX
|
||||
struct ohpux_sgtty_args {
|
||||
int fdes;
|
||||
caddr_t cmarg;
|
||||
};
|
||||
|
||||
ohpux_gtty(p, uap, retval)
|
||||
struct proc *p;
|
||||
struct ohpux_gtty_args *uap;
|
||||
struct ohpux_sgtty_args *uap;
|
||||
int *retval;
|
||||
{
|
||||
|
||||
return (getsettty(p, uap->fdes, HPUXTIOCGETP, uap->cmarg));
|
||||
}
|
||||
|
||||
struct ohpux_stty_args {
|
||||
int fdes;
|
||||
caddr_t cmarg;
|
||||
};
|
||||
|
||||
ohpux_stty(p, uap, retval)
|
||||
struct proc *p;
|
||||
struct ohpux_stty_args *uap;
|
||||
struct ohpux_sgtty_args *uap;
|
||||
int *retval;
|
||||
{
|
||||
|
||||
|
@ -422,4 +536,4 @@ getsettty(p, fdes, com, cmarg)
|
|||
}
|
||||
return (error);
|
||||
}
|
||||
/* #endif */
|
||||
#endif
|
||||
|
|
|
@ -1,11 +1,11 @@
|
|||
#! /bin/sh -
|
||||
# from: @(#)makesyscalls.sh 8.1 (Berkeley) 6/11/93
|
||||
# $Id: makesyscalls.sh,v 1.1 1994/01/07 00:44:07 mycroft Exp $
|
||||
# from: @(#)makesyscalls.sh 8.2 (Berkeley) 9/9/93
|
||||
# $Id: makesyscalls.sh,v 1.2 1994/05/23 08:04:27 mycroft Exp $
|
||||
|
||||
set -e
|
||||
|
||||
# name of compat option:
|
||||
compat=XXX_UNUSED
|
||||
compat=COMPAT_OHPUX
|
||||
|
||||
# output files:
|
||||
sysnames="hpux_syscalls.c"
|
||||
|
@ -49,17 +49,17 @@ awk < $1 "
|
|||
printf " * DO NOT EDIT-- this file is automatically generated.\n" > syshdr
|
||||
}
|
||||
NR == 1 {
|
||||
printf " * created from%s\n */\n\n", $0 > sysdcl
|
||||
printf " * created from: %s %s %s %s\n */\n\n",$2,$3,$4,$5 > sysdcl
|
||||
printf "#include <sys/param.h>\n" > sysdcl
|
||||
printf "#include <sys/systm.h>\n\n" > sysdcl
|
||||
printf "int\tnosys();\n\n" > sysdcl
|
||||
printf "int\tnosys(),notimp();\n\n" > sysdcl
|
||||
|
||||
printf "struct sysent hpux_sysent[] = {\n" > sysent
|
||||
|
||||
printf " * created from%s\n */\n\n", $0 > sysnames
|
||||
printf " * created from: %s %s %s %s\n */\n\n",$2,$3,$4,$5 > sysnames
|
||||
printf "char *hpux_syscallnames[] = {\n" > sysnames
|
||||
|
||||
printf " * created from%s\n */\n\n", $0 > syshdr
|
||||
printf " * created from: %s %s %s %s\n */\n\n",$2,$3,$4,$5 > syshdr
|
||||
next
|
||||
}
|
||||
NF == 0 || $1 ~ /^;/ {
|
||||
|
@ -152,6 +152,14 @@ awk < $1 "
|
|||
syscall++
|
||||
next
|
||||
}
|
||||
$2 == "NOTIMPL" {
|
||||
printf("\t{ %d, notimp },\t\t\t/* %d = %s (unimplemented) */\n", \
|
||||
$3, syscall, comment) > sysent
|
||||
printf("\t\"%s\",\t\t\t/* %d = %s (unimplemented) */\n", \
|
||||
$4, syscall, comment) > sysnames
|
||||
syscall++
|
||||
next
|
||||
}
|
||||
{
|
||||
printf "%s: line %d: unrecognized keyword %s\n", infile, NR, $2
|
||||
exit 1
|
||||
|
@ -162,7 +170,7 @@ awk < $1 "
|
|||
printf("#endif /* %s */\n\n", compat) > syscompat
|
||||
|
||||
printf("};\n\n") > sysent
|
||||
printf("int\tnhpux_sysent = sizeof(hpux_sysent) / sizeof(hpux_sysent[0]);\n") > sysent
|
||||
printf("int\thpux_nsysent = sizeof(hpux_sysent) / sizeof(hpux_sysent[0]);\n") > sysent
|
||||
|
||||
printf("};\n") > sysnames
|
||||
} '
|
||||
|
|
|
@ -1,10 +1,14 @@
|
|||
$Id: syscalls.master,v 1.2 1994/05/17 10:36:03 cgd Exp $
|
||||
; System call name/number master file.
|
||||
; Processed to created init_sysent.c, syscalls.c and syscall.h.
|
||||
$Id: syscalls.master,v 1.3 1994/05/23 08:03:32 mycroft Exp $
|
||||
; from: @(#)syscalls.master 8.3 (Berkeley) 2/7/94
|
||||
; System call name/number master file (or rather, slave, from HP-UX).
|
||||
; Processed to created hpux_sysent.c, hpux_syscalls.c and hpux_syscall.h.
|
||||
;
|
||||
; from: Utah $Hdr: hpux_sysent.c 1.33 93/08/13$
|
||||
;
|
||||
|
||||
; Columns: number type nargs name altname/comments
|
||||
; number system call number, must be in order
|
||||
; type one of STD, OBSOL, UNIMPL, NODEF, COMPAT
|
||||
; type one of STD, OBSOL, UNIMPL, COMPAT
|
||||
; nargs number of arguments
|
||||
; name name of syscall routine
|
||||
; altname name of system call if different
|
||||
|
@ -15,175 +19,175 @@
|
|||
; COMPAT included on COMPAT #ifdef
|
||||
; LIBCOMPAT included on COMPAT #ifdef, and placed in syscall.h
|
||||
; OBSOL obsolete, not included in system, only specifies name
|
||||
; NODEF do everything except include in syscall.h
|
||||
; UNIMPL not implemented, placeholder only
|
||||
; UNIMPL not implemented, placeholder only, call nosys
|
||||
; NOTIMPL not implemented, placeholder only, call notimp
|
||||
|
||||
; #ifdef's, etc. may be included, and are copied to the output files.
|
||||
|
||||
0 STD 0 nosys
|
||||
0 UNIMPL 0 indir or out-of-range
|
||||
1 STD 1 exit
|
||||
2 STD 0 fork
|
||||
3 STD 3 hpux_read
|
||||
4 STD 3 hpux_write
|
||||
5 STD 3 hpux_open
|
||||
2 STD 0 hpux_fork fork
|
||||
3 STD 3 hpux_read read
|
||||
4 STD 3 hpux_write write
|
||||
5 STD 3 hpux_open open
|
||||
6 STD 1 close
|
||||
7 STD 1 hpux_wait
|
||||
8 STD 2 ocreat creat
|
||||
7 STD 1 hpux_wait owait
|
||||
8 STD 2 hpux_creat ocreat
|
||||
9 STD 2 link
|
||||
10 STD 1 unlink
|
||||
11 STD 2 hpux_execv execv
|
||||
12 STD 1 chdir
|
||||
13 COMPAT 1 hpux_time
|
||||
13 COMPAT 1 hpux_time time
|
||||
14 STD 3 mknod
|
||||
15 STD 2 chmod
|
||||
16 STD 3 chown
|
||||
17 STD 1 obreak break
|
||||
18 COMPAT 2 hpux_stat
|
||||
19 STD 3 lseek
|
||||
18 COMPAT 2 hpux_stat stat
|
||||
19 STD 3 olseek
|
||||
20 STD 0 getpid
|
||||
21 STD 3 notimp mount
|
||||
22 STD 1 notimp umount
|
||||
21 NOTIMPL 3 mount
|
||||
22 NOTIMPL 1 umount
|
||||
23 STD 1 setuid
|
||||
24 STD 0 getuid
|
||||
25 COMPAT 1 hpux_stime
|
||||
26 STD 4 hpux_ptrace
|
||||
27 COMPAT 1 hpux_alarm
|
||||
28 COMPAT 2 hpux_fstat
|
||||
29 COMPAT 0 hpux_pause
|
||||
30 COMPAT 2 hpux_utime
|
||||
31 COMPAT 2 hpux_stty
|
||||
32 COMPAT 2 hpux_gtty
|
||||
25 COMPAT 1 hpux_stime stime
|
||||
26 STD 4 hpux_ptrace ptrace
|
||||
27 COMPAT 1 hpux_alarm alarm
|
||||
28 COMPAT 2 hpux_fstat fstat
|
||||
29 COMPAT 0 hpux_pause pause
|
||||
30 COMPAT 2 hpux_utime utime
|
||||
31 COMPAT 2 hpux_stty stty
|
||||
32 COMPAT 2 hpux_gtty gtty
|
||||
33 STD 2 access
|
||||
34 COMPAT 1 hpux_nice
|
||||
35 COMPAT 1 hpux_ftime
|
||||
34 COMPAT 1 hpux_nice nice
|
||||
35 COMPAT 1 hpux_ftime ftime
|
||||
36 STD 0 sync
|
||||
37 STD 2 hpux_kill
|
||||
38 STD 2 hpux_stat
|
||||
39 COMPAT 1 hpux_setpgrp
|
||||
40 STD 2 hpux_lstat
|
||||
41 STD 1 hpux_dup
|
||||
37 STD 2 hpux_kill kill
|
||||
38 STD 2 hpux_stat stat
|
||||
39 COMPAT 1 hpux_setpgrp setpgrp
|
||||
40 STD 2 hpux_lstat lstat
|
||||
41 STD 1 hpux_dup dup
|
||||
42 STD 0 pipe
|
||||
43 COMPAT 1 hpux_times
|
||||
43 COMPAT 1 hpux_times times
|
||||
44 STD 4 profil
|
||||
45 STD 4 notimp ki_syscall
|
||||
45 NOTIMPL 4 ki_syscall
|
||||
46 STD 1 setgid
|
||||
47 STD 0 getgid
|
||||
48 COMPAT 2 hpux_ssig
|
||||
49 UNIMPL 0 reserved
|
||||
50 UNIMPL 0 reserved
|
||||
51 STD 1 notimp acct
|
||||
52 UNIMPL 0 old set phys addr
|
||||
53 UNIMPL 0 old lock in core
|
||||
54 STD 3 hpux_ioctl
|
||||
55 STD 4 notimp reboot
|
||||
48 COMPAT 2 hpux_ssig ssig
|
||||
49 UNIMPL 0 reserved for USG
|
||||
50 UNIMPL 0 reserved for USG
|
||||
51 NOTIMPL 1 acct
|
||||
52 UNIMPL 0 nosys
|
||||
53 UNIMPL 0 nosys
|
||||
54 STD 3 hpux_ioctl ioctl
|
||||
55 NOTIMPL 4 reboot
|
||||
56 STD 2 symlink
|
||||
57 STD 3 hpux_utssys
|
||||
57 STD 3 hpux_utssys utssys
|
||||
58 STD 3 readlink
|
||||
59 STD 3 execve
|
||||
60 STD 1 umask
|
||||
61 STD 1 chroot
|
||||
62 STD 3 hpux_fcntl
|
||||
63 STD 2 hpux_ulimit
|
||||
64 STD 0 nosys
|
||||
65 STD 0 nosys
|
||||
66 STD 0 vfork
|
||||
67 STD 0 hpux_read
|
||||
68 STD 0 hpux_write
|
||||
69 STD 0 nosys
|
||||
70 STD 0 nosys
|
||||
71 STD 0 nosys
|
||||
72 STD 0 nosys
|
||||
73 STD 0 nosys
|
||||
74 STD 3 notimp mprotect
|
||||
75 STD 0 nosys
|
||||
76 STD 0 nosys
|
||||
77 STD 0 nosys
|
||||
78 STD 0 nosys
|
||||
62 STD 3 hpux_fcntl fcntl
|
||||
63 STD 2 hpux_ulimit ulimit
|
||||
64 UNIMPL 0 nosys
|
||||
65 UNIMPL 0 nosys
|
||||
66 STD 0 hpux_vfork vfork
|
||||
67 STD 0 hpux_read vread
|
||||
68 STD 0 hpux_write vwrite
|
||||
69 UNIMPL 0 nosys
|
||||
70 UNIMPL 0 nosys
|
||||
71 STD 6 hpux_mmap mmap
|
||||
72 UNIMPL 0 nosys
|
||||
73 STD 2 munmap
|
||||
74 NOTIMPL 3 mprotect
|
||||
75 UNIMPL 0 nosys
|
||||
76 UNIMPL 0 nosys
|
||||
77 UNIMPL 0 nosys
|
||||
78 UNIMPL 0 nosys
|
||||
79 STD 2 getgroups
|
||||
80 STD 2 setgroups
|
||||
81 STD 1 hpux_getpgrp2
|
||||
82 STD 2 hpux_setpgrp2
|
||||
81 STD 1 hpux_getpgrp2 getpgrp2
|
||||
82 STD 2 hpux_setpgrp2 setpgrp2
|
||||
83 STD 3 setitimer
|
||||
84 STD 3 hpux_wait3
|
||||
85 STD 1 notimp swapon
|
||||
84 STD 3 hpux_wait3 wait3
|
||||
85 NOTIMPL 5 swapon
|
||||
86 STD 2 getitimer
|
||||
87 STD 0 nosys
|
||||
88 STD 0 nosys
|
||||
89 STD 0 nosys
|
||||
87 UNIMPL 0 nosys
|
||||
88 UNIMPL 0 nosys
|
||||
89 UNIMPL 0 nosys
|
||||
90 STD 2 dup2
|
||||
91 STD 2 nosys
|
||||
92 STD 2 hpux_fstat
|
||||
91 UNIMPL 0 nosys
|
||||
92 STD 2 hpux_fstat fstat
|
||||
93 STD 5 select
|
||||
94 STD 0 nosys
|
||||
94 UNIMPL 0 nosys
|
||||
95 STD 1 fsync
|
||||
96 STD 0 nosys
|
||||
97 STD 3 nosys
|
||||
98 STD 2 nosys
|
||||
99 STD 2 nosys
|
||||
100 STD 0 nosys
|
||||
101 STD 0 nosys
|
||||
102 STD 0 nosys
|
||||
96 UNIMPL 0 nosys
|
||||
97 UNIMPL 3 nosys
|
||||
98 UNIMPL 2 nosys
|
||||
99 UNIMPL 2 nosys
|
||||
100 UNIMPL 0 nosys
|
||||
101 UNIMPL 0 nosys
|
||||
102 UNIMPL 0 nosys
|
||||
103 STD 1 sigreturn
|
||||
104 STD 2 nosys
|
||||
105 STD 0 nosys
|
||||
106 STD 0 nosys
|
||||
107 STD 0 nosys
|
||||
108 STD 3 hpux_sigvec
|
||||
109 STD 1 hpux_sigblock
|
||||
110 STD 1 hpux_sigsetmask
|
||||
111 STD 1 hpux_sigpause
|
||||
104 UNIMPL 2 nosys
|
||||
105 UNIMPL 0 nosys
|
||||
106 UNIMPL 0 nosys
|
||||
107 UNIMPL 0 nosys
|
||||
108 STD 3 hpux_sigvec sigvec
|
||||
109 STD 1 hpux_sigblock sigblock
|
||||
110 STD 1 hpux_sigsetmask sigsetmask
|
||||
111 STD 1 hpux_sigpause sigpause
|
||||
112 STD 2 osigstack
|
||||
113 STD 0 nosys
|
||||
114 STD 0 nosys
|
||||
115 STD 0 nosys
|
||||
113 UNIMPL 0 nosys
|
||||
114 UNIMPL 0 nosys
|
||||
115 UNIMPL 0 nosys
|
||||
116 STD 2 gettimeofday
|
||||
117 STD 0 nosys
|
||||
118 STD 0 nosys
|
||||
119 STD 3 notimp hpib_io_stub
|
||||
120 STD 3 hpux_readv
|
||||
121 STD 3 hpux_writev
|
||||
117 UNIMPL 0 nosys
|
||||
118 UNIMPL 0 nosys
|
||||
119 NOTIMPL 3 hpib_io_stub
|
||||
120 STD 3 hpux_readv readv
|
||||
121 STD 3 hpux_writev writev
|
||||
122 STD 2 settimeofday
|
||||
123 STD 3 fchown
|
||||
124 STD 2 fchmod
|
||||
125 STD 0 nosys
|
||||
126 STD 3 hpux_setresuid
|
||||
127 STD 3 hpux_setresgid
|
||||
125 UNIMPL 0 nosys
|
||||
126 STD 3 hpux_setresuid setresuid
|
||||
127 STD 3 hpux_setresgid setresgid
|
||||
128 STD 2 rename
|
||||
129 STD 2 truncate
|
||||
130 STD 2 ftruncate
|
||||
131 STD 0 nosys
|
||||
132 STD 1 notimp sysconf
|
||||
133 STD 0 nosys
|
||||
134 STD 0 nosys
|
||||
135 STD 0 nosys
|
||||
129 COMPAT 2 truncate
|
||||
130 COMPAT 2 ftruncate
|
||||
131 UNIMPL 0 nosys
|
||||
132 STD 1 hpux_sysconf sysconf
|
||||
133 UNIMPL 0 nosys
|
||||
134 UNIMPL 0 nosys
|
||||
135 UNIMPL 0 nosys
|
||||
136 STD 2 mkdir
|
||||
137 STD 1 rmdir
|
||||
138 STD 0 nosys
|
||||
139 STD 0 sigreturn
|
||||
140 STD 0 nosys
|
||||
141 STD 0 nosys
|
||||
142 STD 0 nosys
|
||||
143 STD 0 nosys
|
||||
144 STD 0 nosys
|
||||
145 STD 0 nosys
|
||||
146 STD 0 nosys
|
||||
147 STD 0 nosys
|
||||
148 STD 0 nosys
|
||||
149 STD 0 nosys
|
||||
150 STD 0 nosys
|
||||
151 STD 3 notimp privgrp
|
||||
138 UNIMPL 0 nosys
|
||||
139 UNIMPL 0 nosys
|
||||
140 UNIMPL 0 nosys
|
||||
141 UNIMPL 0 nosys
|
||||
142 UNIMPL 0 nosys
|
||||
143 UNIMPL 0 nosys
|
||||
144 COMPAT 2 getrlimit
|
||||
145 COMPAT 2 setrlimit
|
||||
146 UNIMPL 0 nosys
|
||||
147 UNIMPL 0 nosys
|
||||
148 UNIMPL 0 nosys
|
||||
149 UNIMPL 0 nosys
|
||||
150 UNIMPL 0 nosys
|
||||
151 NOTIMPL 3 privgrp
|
||||
152 STD 2 hpux_rtprio rtprio
|
||||
153 STD 1 notimp plock
|
||||
154 STD 2 hpux_netioctl
|
||||
155 STD 4 hpux_lockf
|
||||
153 NOTIMPL 1 plock
|
||||
154 STD 2 hpux_netioctl netioctl
|
||||
155 STD 4 hpux_lockf lockf
|
||||
#ifdef SYSVSEM
|
||||
156 STD 3 semget
|
||||
157 STD 4 semctl
|
||||
158 STD 3 semop
|
||||
#else
|
||||
156 STD 3 notimp semget
|
||||
157 STD 4 notimp semctl
|
||||
158 STD 3 notimp semop
|
||||
156 NOTIMPL 3 semget
|
||||
157 NOTIMPL 4 semctl
|
||||
158 NOTIMPL 3 semop
|
||||
#endif
|
||||
#ifdef SYSVMSG
|
||||
159 STD 2 msgget
|
||||
|
@ -191,95 +195,179 @@
|
|||
161 STD 4 msgsnd
|
||||
162 STD 5 msgrcv
|
||||
#else
|
||||
159 STD 2 notimp msgget
|
||||
160 STD 3 notimp msgctl
|
||||
161 STD 4 notimp msgsnd
|
||||
162 STD 5 notimp msgrcv
|
||||
159 NOTIMPL 2 msgget
|
||||
160 NOTIMPL 3 msgctl
|
||||
161 NOTIMPL 4 msgsnd
|
||||
162 NOTIMPL 5 msgrcv
|
||||
#endif
|
||||
#ifdef SYSVSHM
|
||||
163 STD 3 shmget
|
||||
164 STD 3 shmctl
|
||||
164 STD 3 hpux_shmctl shmctl
|
||||
165 STD 3 shmat
|
||||
166 STD 1 shmdt
|
||||
#else
|
||||
163 STD 3 notimp shmget
|
||||
164 STD 3 notimp shmctl
|
||||
165 STD 3 notimp shmat
|
||||
166 STD 1 notimp shmdt
|
||||
163 NOTIMPL 3 shmget
|
||||
164 NOTIMPL 3 shmctl
|
||||
165 NOTIMPL 3 shmat
|
||||
166 NOTIMPL 1 shmdt
|
||||
#endif
|
||||
167 STD 1 hpux_advise
|
||||
168 STD 0 notimp dux_notconfigured
|
||||
169 STD 3 notimp cluster
|
||||
170 STD 4 notimp mkrnod
|
||||
171 STD 0 nosys
|
||||
172 STD 0 notimp dux_notconfigured
|
||||
173 STD 0 nosys
|
||||
174 STD 3 hpux_getcontext
|
||||
175 STD 0 nosys
|
||||
176 STD 0 nosys
|
||||
177 STD 0 nosys
|
||||
178 STD 0 notimp lsync
|
||||
179 STD 0 nosys
|
||||
180 STD 0 notimp mysite
|
||||
181 STD 0 notimp returnzero
|
||||
182 STD 0 nosys
|
||||
183 STD 0 nosys
|
||||
184 STD 0 nosys
|
||||
185 STD 0 nosys
|
||||
186 STD 3 notimp setacl
|
||||
187 STD 3 notimp fsetacl
|
||||
188 STD 3 notimp getacl
|
||||
189 STD 3 notimp fgetacl
|
||||
190 STD 6 hpux_getaccess
|
||||
191 STD 0 notimp getaudid
|
||||
192 STD 1 notimp setaudid
|
||||
193 STD 0 notimp getaudproc
|
||||
194 STD 1 notimp setaudproc
|
||||
195 STD 2 notimp getevent
|
||||
196 STD 2 notimp setevent
|
||||
197 STD 1 notimp audwrite
|
||||
198 STD 1 notimp audswitch
|
||||
199 STD 4 notimp audctl
|
||||
200 STD 3 hpux_waitpid
|
||||
201 STD 0 nosys
|
||||
202 STD 2 notimp netioctl
|
||||
203 STD 6 nosys
|
||||
204 STD 0 nosys
|
||||
205 STD 0 nosys
|
||||
206 STD 9 nosys
|
||||
207 STD 0 nosys
|
||||
208 STD 0 nosys
|
||||
209 STD 6 nosys
|
||||
210 STD 5 nosys
|
||||
211 STD 0 nosys
|
||||
212 STD 0 nosys
|
||||
213 STD 0 nosys
|
||||
214 STD 0 nosys
|
||||
215 STD 0 nosys
|
||||
216 STD 0 nosys
|
||||
217 STD 0 nosys
|
||||
218 STD 0 nosys
|
||||
219 STD 0 nosys
|
||||
220 STD 4 nosys
|
||||
221 STD 10 nosys
|
||||
222 STD 0 nosys
|
||||
223 STD 0 nosys
|
||||
224 STD 0 nosys
|
||||
225 STD 2 notimp pathconf
|
||||
226 STD 2 notimp fpathconf
|
||||
227 STD 0 nosys
|
||||
228 STD 0 nosys
|
||||
229 STD 0 notimp async_daemon
|
||||
230 STD 3 notimp nfs_fcntl
|
||||
167 STD 1 hpux_advise m68020_advise
|
||||
168 NOTIMPL 2 nsp_init
|
||||
169 NOTIMPL 3 cluster
|
||||
170 NOTIMPL 4 mkrnod
|
||||
171 UNIMPL 0 nosys
|
||||
172 NOTIMPL 0 unsp_open
|
||||
173 UNIMPL 0 nosys
|
||||
174 STD 3 hpux_getcontext getcontext
|
||||
175 UNIMPL 0 nosys
|
||||
176 UNIMPL 0 nosys
|
||||
177 UNIMPL 0 nosys
|
||||
178 NOTIMPL 0 lsync
|
||||
179 UNIMPL 0 nosys
|
||||
180 NOTIMPL 0 mysite
|
||||
181 NOTIMPL 1 sitels
|
||||
182 UNIMPL 0 nosys
|
||||
183 UNIMPL 0 nosys
|
||||
184 NOTIMPL 4 dskless_stats
|
||||
185 UNIMPL 0 nosys
|
||||
186 NOTIMPL 3 setacl
|
||||
187 NOTIMPL 3 fsetacl
|
||||
188 NOTIMPL 3 getacl
|
||||
189 NOTIMPL 3 fgetacl
|
||||
190 STD 6 hpux_getaccess getaccess
|
||||
191 NOTIMPL 0 getaudid
|
||||
192 NOTIMPL 1 setaudid
|
||||
193 NOTIMPL 0 getaudproc
|
||||
194 NOTIMPL 1 setaudproc
|
||||
195 NOTIMPL 2 getevent
|
||||
196 NOTIMPL 2 setevent
|
||||
197 NOTIMPL 1 audwrite
|
||||
198 NOTIMPL 1 audswitch
|
||||
199 NOTIMPL 4 audctl
|
||||
200 STD 3 hpux_waitpid waitpid
|
||||
201 UNIMPL 0 nosys
|
||||
202 UNIMPL 0 nosys
|
||||
203 UNIMPL 6 nosys
|
||||
204 UNIMPL 0 nosys
|
||||
205 UNIMPL 0 nosys
|
||||
206 UNIMPL 9 nosys
|
||||
207 UNIMPL 0 nosys
|
||||
208 UNIMPL 0 nosys
|
||||
209 UNIMPL 6 nosys
|
||||
210 UNIMPL 5 nosys
|
||||
211 UNIMPL 0 nosys
|
||||
212 UNIMPL 0 nosys
|
||||
213 UNIMPL 0 nosys
|
||||
214 UNIMPL 0 nosys
|
||||
215 UNIMPL 0 nosys
|
||||
216 UNIMPL 0 nosys
|
||||
217 UNIMPL 0 nosys
|
||||
218 UNIMPL 0 nosys
|
||||
219 UNIMPL 0 nosys
|
||||
220 UNIMPL 4 nosys
|
||||
221 UNIMPL 10 nosys
|
||||
222 UNIMPL 0 nosys
|
||||
223 UNIMPL 0 nosys
|
||||
224 UNIMPL 0 nosys
|
||||
225 NOTIMPL 2 pathconf
|
||||
226 NOTIMPL 2 fpathconf
|
||||
227 UNIMPL 0 nosys
|
||||
228 UNIMPL 0 nosys
|
||||
229 NOTIMPL 0 async_daemon
|
||||
230 NOTIMPL 3 nfs_fcntl
|
||||
231 STD 4 getdirentries
|
||||
232 STD 2 ogetdomainname
|
||||
233 STD 2 notimp nfs_getfh
|
||||
234 STD 4 notimp vfsmount
|
||||
235 STD 1 notimp nfs_svc
|
||||
236 STD 2 osetdomainname
|
||||
237 STD 0 notimp statfs
|
||||
238 STD 0 notimp fstatfs
|
||||
239 STD 3 hpux_sigaction
|
||||
240 STD 3 hpux_sigprocmask
|
||||
241 STD 1 hpux_sigpending
|
||||
242 STD 1 hpux_sigsuspend
|
||||
232 COMPAT 2 getdomainname
|
||||
233 NOTIMPL 2 nfs_getfh
|
||||
234 NOTIMPL 4 vfsmount
|
||||
235 NOTIMPL 1 nfs_svc
|
||||
236 COMPAT 2 setdomainname
|
||||
237 NOTIMPL 2 statfs
|
||||
238 NOTIMPL 2 fstatfs
|
||||
239 STD 3 hpux_sigaction sigaction
|
||||
240 STD 3 hpux_sigprocmask sigprocmask
|
||||
241 STD 1 hpux_sigpending sigpending
|
||||
242 STD 1 hpux_sigsuspend sigsuspend
|
||||
243 NOTIMPL 4 fsctl
|
||||
244 UNIMPL 0 nosys
|
||||
245 NOTIMPL 3 pstat
|
||||
246 UNIMPL 0 nosys
|
||||
247 UNIMPL 0 nosys
|
||||
248 UNIMPL 0 nosys
|
||||
249 UNIMPL 0 nosys
|
||||
250 UNIMPL 0 nosys
|
||||
251 UNIMPL 0 nosys
|
||||
252 UNIMPL 0 nosys
|
||||
253 UNIMPL 0 nosys
|
||||
254 UNIMPL 0 nosys
|
||||
255 UNIMPL 0 nosys
|
||||
256 UNIMPL 0 nosys
|
||||
257 UNIMPL 0 nosys
|
||||
258 UNIMPL 0 nosys
|
||||
259 UNIMPL 0 nosys
|
||||
260 UNIMPL 0 nosys
|
||||
261 UNIMPL 0 nosys
|
||||
262 UNIMPL 0 nosys
|
||||
263 UNIMPL 0 nosys
|
||||
264 UNIMPL 0 nosys
|
||||
265 UNIMPL 0 nosys
|
||||
266 UNIMPL 0 nosys
|
||||
267 UNIMPL 0 nosys
|
||||
268 STD 0 getdtablesize getnumfds
|
||||
269 UNIMPL 0 nosys
|
||||
270 UNIMPL 0 nosys
|
||||
271 UNIMPL 0 nosys
|
||||
272 STD 1 fchdir
|
||||
273 UNIMPL 0 nosys
|
||||
274 UNIMPL 0 nosys
|
||||
275 COMPAT 3 accept
|
||||
276 STD 3 bind
|
||||
277 STD 3 connect
|
||||
278 COMPAT 3 getpeername
|
||||
279 COMPAT 3 getsockname
|
||||
280 STD 5 getsockopt
|
||||
281 STD 2 listen
|
||||
282 COMPAT 4 recv
|
||||
283 COMPAT 6 recvfrom
|
||||
284 COMPAT 3 recvmsg
|
||||
285 COMPAT 4 send
|
||||
286 COMPAT 3 sendmsg
|
||||
287 STD 6 sendto
|
||||
288 STD 5 hpux_setsockopt2 setsockopt2
|
||||
289 STD 2 shutdown
|
||||
290 STD 3 socket
|
||||
291 STD 4 socketpair
|
||||
292 UNIMPL 0 nosys
|
||||
293 UNIMPL 0 nosys
|
||||
294 UNIMPL 0 nosys
|
||||
295 UNIMPL 0 nosys
|
||||
296 UNIMPL 0 nosys
|
||||
297 UNIMPL 0 nosys
|
||||
298 UNIMPL 0 nosys
|
||||
299 UNIMPL 0 nosys
|
||||
300 UNIMPL 0 nosys
|
||||
301 UNIMPL 0 nosys
|
||||
302 UNIMPL 0 nosys
|
||||
303 UNIMPL 0 nosys
|
||||
304 UNIMPL 0 nosys
|
||||
305 UNIMPL 0 nosys
|
||||
306 UNIMPL 0 nosys
|
||||
307 UNIMPL 0 nosys
|
||||
308 UNIMPL 0 nosys
|
||||
309 UNIMPL 0 nosys
|
||||
310 UNIMPL 0 nosys
|
||||
311 UNIMPL 0 nosys
|
||||
#ifdef SYSVSHM
|
||||
312 STD 4 semctl nsemctl
|
||||
#else
|
||||
312 NOTIMPL 4 nsemctl
|
||||
#endif
|
||||
#ifdef SYSVMSG
|
||||
313 STD 3 msgctl nmsgctl
|
||||
#else
|
||||
313 NOTIMPL 3 nmsgctl
|
||||
#endif
|
||||
#ifdef SYSVSHM
|
||||
314 STD 3 hpux_nshmctl nshmctl
|
||||
#else
|
||||
314 NOTIMPL 3 nshmctl
|
||||
#endif
|
||||
|
|
|
@ -0,0 +1,7 @@
|
|||
# $Id: Makefile,v 1.1 1994/05/23 08:04:11 mycroft Exp $
|
||||
|
||||
hpux_sysent.c hpux_syscalls.c hpux_syscall.h: makesyscalls.sh syscalls.master
|
||||
-mv -f hpux_sysent.c hpux_sysent.c.bak
|
||||
-mv -f hpux_syscalls.c hpux_syscalls.c.bak
|
||||
-mv -f hpux_syscall.h hpux_syscall.h.bak
|
||||
sh makesyscalls.sh syscalls.master
|
|
@ -1,7 +1,7 @@
|
|||
/*
|
||||
* Copyright (c) 1988 University of Utah.
|
||||
* Copyright (c) 1990 The Regents of the University of California.
|
||||
* All rights reserved.
|
||||
* Copyright (c) 1990, 1993
|
||||
* The Regents of the University of California. All rights reserved.
|
||||
*
|
||||
* This code is derived from software contributed to Berkeley by
|
||||
* the Systems Programming Group of the University of Utah Computer
|
||||
|
@ -35,12 +35,13 @@
|
|||
* OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
|
||||
* SUCH DAMAGE.
|
||||
*
|
||||
* from: Utah Hdr: hpux.h 1.18 91/02/09
|
||||
* from: @(#)hpux.h 7.4 (Berkeley) 5/7/91
|
||||
* $Id: hpux.h,v 1.5 1994/01/08 15:09:01 cgd Exp $
|
||||
* from: Utah $Hdr: hpux.h 1.33 93/08/05$
|
||||
*
|
||||
* from: @(#)hpux.h 8.4 (Berkeley) 2/13/94
|
||||
* $Id: hpux.h,v 1.6 1994/05/23 08:04:13 mycroft Exp $
|
||||
*/
|
||||
|
||||
#include "hpux_exec.h"
|
||||
#include <hp300/hpux/hpux_exec.h>
|
||||
|
||||
/* HP-UX style UTSNAME struct used by uname syscall */
|
||||
|
||||
|
@ -82,6 +83,8 @@ struct hpux_sgttyb {
|
|||
#define HPUXTIOCSPGRP _IOW('T', 29, int)
|
||||
#define HPUXTIOCGPGRP _IOR('T', 30, int)
|
||||
#define HPUXTIOCCONS _IO('t', 104)
|
||||
#define HPUXTIOCSWINSZ _IOW('t', 106, struct winsize)
|
||||
#define HPUXTIOCGWINSZ _IOR('t', 107, struct winsize)
|
||||
|
||||
/* non-blocking IO--doesn't interfere with O_NDELAY */
|
||||
#define HPUXFIOSNBIO _IOW('f', 126, int)
|
||||
|
@ -98,7 +101,7 @@ struct hpux_stat {
|
|||
u_short hst_uid;
|
||||
u_short hst_gid;
|
||||
long hst_rdev;
|
||||
off_t hst_size;
|
||||
long hst_size;
|
||||
time_t hst_atime;
|
||||
int hst_spare1;
|
||||
time_t hst_mtime;
|
||||
|
@ -151,7 +154,7 @@ struct hpux_user {
|
|||
u_char whocares3[HU_PAD3]; /* +0x0BE */
|
||||
struct hpux_exec hpuxu_exdata; /* +0x93A */
|
||||
u_char whocares4[HU_PAD4]; /* +0x95E */
|
||||
struct hpuxfp { /* +0xA66 */
|
||||
struct hpux_fp { /* +0xA66 */
|
||||
int hpfp_save[54];
|
||||
int hpfp_ctrl[3];
|
||||
int hpfp_reg[24];
|
||||
|
@ -160,12 +163,59 @@ struct hpux_user {
|
|||
};
|
||||
|
||||
/* HP-UX compat file flags */
|
||||
#define HPUXNDELAY 00000004
|
||||
#define HPUXFCREAT 00000400
|
||||
#define HPUXFTRUNC 00001000
|
||||
#define HPUXFEXCL 00002000
|
||||
#define HPUXFSYNCIO 00100000
|
||||
#define HPUXNONBLOCK 00200000
|
||||
#define HPUXFREMOTE 01000000
|
||||
#define FUSECACHE 04000000
|
||||
|
||||
/* HP-UX fcntl file locking */
|
||||
struct hpux_flock {
|
||||
short hl_type;
|
||||
short hl_whence;
|
||||
long hl_start;
|
||||
long hl_len;
|
||||
long hl_pid;
|
||||
};
|
||||
|
||||
#define HPUXF_GETLK 7
|
||||
#define HPUXF_SETLK 8
|
||||
#define HPUXF_SETLKW 9
|
||||
|
||||
#define HPUXF_RDLCK 1
|
||||
#define HPUXF_WRLCK 2
|
||||
#define HPUXF_UNLCK 3
|
||||
|
||||
/* HP-UX only sysV shmctl() commands */
|
||||
#define SHM_LOCK 3 /* Lock segment in core */
|
||||
#define SHM_UNLOCK 4 /* Unlock segment */
|
||||
|
||||
/* SHM stuff reflecting POSIX types */
|
||||
struct hpux_ipc_perm {
|
||||
long uid; /* owner's user id */
|
||||
long gid; /* owner's group id */
|
||||
long cuid; /* creator's user id */
|
||||
long cgid; /* creator's group id */
|
||||
u_short mode; /* access modes */
|
||||
u_short seq; /* slot usage sequence number */
|
||||
long key; /* key */
|
||||
};
|
||||
|
||||
struct hpux_shmid_ds {
|
||||
struct hpux_ipc_perm shm_perm; /* operation permission struct */
|
||||
int shm_segsz; /* segment size (bytes) */
|
||||
struct pte *shm_ptbl; /* ptr to associated page table */
|
||||
long shm_lpid; /* pid of last shmop */
|
||||
long shm_cpid; /* pid of creator */
|
||||
u_short shm_nattch; /* current # attached */
|
||||
u_short shm_cnattch; /* in memory # attached */
|
||||
time_t shm_atime; /* last shmat time */
|
||||
time_t shm_dtime; /* last shmdt time */
|
||||
time_t shm_ctime; /* last change time */
|
||||
/* actually longer */
|
||||
};
|
||||
|
||||
/* HP-UX rtprio values */
|
||||
#define RTPRIO_MIN 0
|
||||
|
@ -206,3 +256,32 @@ struct hpux_sigaction {
|
|||
#define HPUXSIG_BLOCK 0 /* block specified signal set */
|
||||
#define HPUXSIG_UNBLOCK 1 /* unblock specified signal set */
|
||||
#define HPUXSIG_SETMASK 2 /* set specified signal set */
|
||||
|
||||
/* sysconf stuff */
|
||||
#define HPUX_SYSCONF_CLKTICK 2
|
||||
#define HPUX_SYSCONF_OPENMAX 4
|
||||
#define HPUX_SYSCONF_CPUTYPE 10001
|
||||
#define HPUX_SYSCONF_CPUM020 0x20C
|
||||
#define HPUX_SYSCONF_CPUM030 0x20D
|
||||
#define HPUX_SYSCONF_CPUM040 0x20E
|
||||
#define HPUX_SYSCONF_CPUPA10 0x20B
|
||||
#define HPUX_SYSCONF_CPUPA11 0x210
|
||||
|
||||
/* mmap stuff */
|
||||
#define HPUXMAP_FIXED 0x04
|
||||
#define HPUXMAP_REPLACE 0x08
|
||||
#define HPUXMAP_ANON 0x10
|
||||
|
||||
/* rlimit stuff */
|
||||
#define HPUXRLIMIT_NOFILE 6
|
||||
|
||||
/*
|
||||
* In BSD EAGAIN and EWOULDBLOCK are the same error code.
|
||||
* However, for HP-UX we must split them out to seperate codes.
|
||||
* The easiest way to do this was to check the return value of
|
||||
* BSD routines which are known to return EAGAIN (but never
|
||||
* EWOULDBLOCK) and change it to the pseudo-code OEAGAIN when
|
||||
* we see it. The error translation table will them map that
|
||||
* code to the HP-UX EAGAIN value.
|
||||
*/
|
||||
#define OEAGAIN 82
|
||||
|
|
File diff suppressed because it is too large
Load Diff
|
@ -1,7 +1,7 @@
|
|||
/*
|
||||
* Copyright (c) 1988 University of Utah.
|
||||
* Copyright (c) 1990 The Regents of the University of California.
|
||||
* All rights reserved.
|
||||
* Copyright (c) 1990, 1993
|
||||
* The Regents of the University of California. All rights reserved.
|
||||
*
|
||||
* This code is derived from software contributed to Berkeley by
|
||||
* the Systems Programming Group of the University of Utah Computer
|
||||
|
@ -35,9 +35,10 @@
|
|||
* OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
|
||||
* SUCH DAMAGE.
|
||||
*
|
||||
* from: Utah Hdr: hpux_exec.h 1.1 90/07/09
|
||||
* from: @(#)hpux_exec.h 7.2 (Berkeley) 10/24/90
|
||||
* $Id: hpux_exec.h,v 1.3 1993/08/01 19:24:55 mycroft Exp $
|
||||
* from: Utah $Hdr: hpux_exec.h 1.6 92/01/20$
|
||||
*
|
||||
* from: @(#)hpux_exec.h 8.1 (Berkeley) 6/10/93
|
||||
* $Id: hpux_exec.h,v 1.4 1994/05/23 08:04:17 mycroft Exp $
|
||||
*/
|
||||
|
||||
/*
|
||||
|
@ -47,7 +48,7 @@ struct hpux_exec {
|
|||
long ha_magic; /* magic number */
|
||||
short ha_version; /* version ID */
|
||||
short ha_pad0; /* doesn't matter */
|
||||
long ha_pad1; /* ditto */
|
||||
long ha_misc; /* misc. info */
|
||||
unsigned long ha_text; /* size of text segment */
|
||||
unsigned long ha_data; /* size of initialized data */
|
||||
unsigned long ha_bss; /* size of uninitialized data */
|
||||
|
@ -56,8 +57,6 @@ unsigned long ha_entry; /* entry point */
|
|||
unsigned long ha_pad3[4]; /* doesn't matter */
|
||||
};
|
||||
|
||||
/*
|
||||
* If the HPUX object file version number is BSDVNUM the file was built
|
||||
* with the HPUX SGS but linked with the BSD libraries.
|
||||
*/
|
||||
#define BSDVNUM 0x2BAD
|
||||
#define HPUXM_VALID 0x00000001
|
||||
#define HPUXM_STKWT 0x02000000
|
||||
#define HPUXM_DATAWT 0x04000000
|
||||
|
|
|
@ -1,7 +1,7 @@
|
|||
/*
|
||||
* Copyright (c) 1988 University of Utah.
|
||||
* Copyright (c) 1990 The Regents of the University of California.
|
||||
* All rights reserved.
|
||||
* Copyright (c) 1990, 1993
|
||||
* The Regents of the University of California. All rights reserved.
|
||||
*
|
||||
* This code is derived from software contributed to Berkeley by
|
||||
* the Systems Programming Group of the University of Utah Computer
|
||||
|
@ -35,28 +35,30 @@
|
|||
* OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
|
||||
* SUCH DAMAGE.
|
||||
*
|
||||
* from: Utah Hdr: hpux_net.c 1.33 89/08/23
|
||||
* from: @(#)hpux_net.c 7.7 (Berkeley) 2/13/91
|
||||
* $Id: hpux_net.c,v 1.5 1994/05/04 04:09:36 mycroft Exp $
|
||||
* from: Utah $Hdr: hpux_net.c 1.8 93/08/02$
|
||||
*
|
||||
* from: @(#)hpux_net.c 8.2 (Berkeley) 9/9/93
|
||||
* $Id: hpux_net.c,v 1.6 1994/05/23 08:04:18 mycroft Exp $
|
||||
*/
|
||||
|
||||
/*
|
||||
* Network related HP-UX compatibility routines
|
||||
*/
|
||||
|
||||
#include "sys/param.h"
|
||||
#include "sys/systm.h"
|
||||
#include "sys/kernel.h"
|
||||
#include "sys/time.h"
|
||||
#include "sys/errno.h"
|
||||
#include "sys/proc.h"
|
||||
#include "sys/file.h"
|
||||
#include "sys/mbuf.h"
|
||||
#include "sys/socket.h"
|
||||
#include "sys/socketvar.h"
|
||||
#include "sys/uio.h"
|
||||
#include "sys/ktrace.h"
|
||||
#include "hpux.h"
|
||||
#include <sys/param.h>
|
||||
#include <sys/systm.h>
|
||||
#include <sys/kernel.h>
|
||||
#include <sys/time.h>
|
||||
#include <sys/errno.h>
|
||||
#include <sys/proc.h>
|
||||
#include <sys/file.h>
|
||||
#include <sys/mbuf.h>
|
||||
#include <sys/socket.h>
|
||||
#include <sys/socketvar.h>
|
||||
#include <sys/uio.h>
|
||||
#include <sys/ktrace.h>
|
||||
|
||||
#include <hp300/hpux/hpux.h>
|
||||
|
||||
#define MINBSDIPCCODE 0x3EE
|
||||
#define NUMBSDIPC 32
|
||||
|
@ -100,7 +102,6 @@ struct hpux_netioctl_args {
|
|||
int call;
|
||||
int *args;
|
||||
};
|
||||
|
||||
hpux_netioctl(p, uap, retval)
|
||||
struct proc *p;
|
||||
struct hpux_netioctl_args *uap;
|
||||
|
@ -119,18 +120,43 @@ hpux_netioctl(p, uap, retval)
|
|||
#ifdef KTRACE
|
||||
if (KTRPOINT(p, KTR_SYSCALL))
|
||||
ktrsyscall(p->p_tracep, code + MINBSDIPCCODE,
|
||||
hpuxtobsdipc[code].nargs);
|
||||
hpuxtobsdipc[code].nargs, (int *)uap);
|
||||
#endif
|
||||
return (error);
|
||||
}
|
||||
#ifdef KTRACE
|
||||
if (KTRPOINT(p, KTR_SYSCALL))
|
||||
ktrsyscall(p->p_tracep, code + MINBSDIPCCODE,
|
||||
hpuxtobsdipc[code].nargs);
|
||||
hpuxtobsdipc[code].nargs, (int *)uap);
|
||||
#endif
|
||||
return ((*hpuxtobsdipc[code].rout)(p, uap, retval));
|
||||
}
|
||||
|
||||
socksetsize(size, m)
|
||||
int size;
|
||||
struct mbuf *m;
|
||||
{
|
||||
register int tmp;
|
||||
|
||||
if (size < sizeof(int)) {
|
||||
switch(size) {
|
||||
case 1:
|
||||
tmp = (int) *mtod(m, char *);
|
||||
break;
|
||||
case 2:
|
||||
tmp = (int) *mtod(m, short *);
|
||||
break;
|
||||
case 3:
|
||||
tmp = (((int) *mtod(m, int *)) >> 8) & 0xffffff;
|
||||
break;
|
||||
}
|
||||
*mtod(m, int *) = tmp;
|
||||
m->m_len = sizeof(int);
|
||||
} else {
|
||||
m->m_len = size;
|
||||
}
|
||||
}
|
||||
|
||||
struct hpux_setsockopt_args {
|
||||
int s;
|
||||
int level;
|
||||
|
@ -138,7 +164,7 @@ struct hpux_setsockopt_args {
|
|||
caddr_t val;
|
||||
int valsize;
|
||||
};
|
||||
|
||||
/* ARGSUSED */
|
||||
hpux_setsockopt(p, uap, retval)
|
||||
struct proc *p;
|
||||
struct hpux_setsockopt_args *uap;
|
||||
|
@ -167,7 +193,7 @@ hpux_setsockopt(p, uap, retval)
|
|||
mtod(m, struct linger *)->l_linger = tmp;
|
||||
m->m_len = sizeof(struct linger);
|
||||
} else
|
||||
m->m_len = uap->valsize;
|
||||
socksetsize(uap->valsize, m);
|
||||
} else if (uap->name == ~SO_LINGER) {
|
||||
m = m_get(M_WAIT, MT_SOOPTS);
|
||||
if (m) {
|
||||
|
@ -180,6 +206,42 @@ hpux_setsockopt(p, uap, retval)
|
|||
uap->name, m));
|
||||
}
|
||||
|
||||
struct hpux_setsockopt2_args {
|
||||
int s;
|
||||
int level;
|
||||
int name;
|
||||
caddr_t val;
|
||||
int valsize;
|
||||
};
|
||||
/* ARGSUSED */
|
||||
hpux_setsockopt2(p, uap, retval)
|
||||
struct proc *p;
|
||||
register struct hpux_setsockopt2_args *uap;
|
||||
int *retval;
|
||||
{
|
||||
struct file *fp;
|
||||
struct mbuf *m = NULL;
|
||||
int error;
|
||||
|
||||
if (error = getsock(p->p_fd, uap->s, &fp))
|
||||
return (error);
|
||||
if (uap->valsize > MLEN)
|
||||
return (EINVAL);
|
||||
if (uap->val) {
|
||||
m = m_get(M_WAIT, MT_SOOPTS);
|
||||
if (m == NULL)
|
||||
return (ENOBUFS);
|
||||
if (error = copyin(uap->val, mtod(m, caddr_t),
|
||||
(u_int)uap->valsize)) {
|
||||
(void) m_free(m);
|
||||
return (error);
|
||||
}
|
||||
socksetsize(uap->valsize, m);
|
||||
}
|
||||
return (sosetopt((struct socket *)fp->f_data, uap->level,
|
||||
uap->name, m));
|
||||
}
|
||||
|
||||
struct hpux_getsockopt_args {
|
||||
int s;
|
||||
int level;
|
||||
|
@ -187,7 +249,6 @@ struct hpux_getsockopt_args {
|
|||
caddr_t val;
|
||||
int *avalsize;
|
||||
};
|
||||
|
||||
hpux_getsockopt(p, uap, retval)
|
||||
struct proc *p;
|
||||
struct hpux_getsockopt_args *uap;
|
||||
|
|
|
@ -1,7 +1,7 @@
|
|||
/*
|
||||
* Copyright (c) 1988 University of Utah.
|
||||
* Copyright (c) 1990 The Regents of the University of California.
|
||||
* All rights reserved.
|
||||
* Copyright (c) 1990, 1993
|
||||
* The Regents of the University of California. All rights reserved.
|
||||
*
|
||||
* This code is derived from software contributed to Berkeley by
|
||||
* the Systems Programming Group of the University of Utah Computer
|
||||
|
@ -35,21 +35,23 @@
|
|||
* OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
|
||||
* SUCH DAMAGE.
|
||||
*
|
||||
* from: Utah Hdr: hpux_sig.c 1.1 90/07/09
|
||||
* from: @(#)hpux_sig.c 7.8 (Berkeley) 4/20/91
|
||||
* $Id: hpux_sig.c,v 1.8 1994/05/17 10:37:12 cgd Exp $
|
||||
* from: Utah $Hdr: hpux_sig.c 1.4 92/01/20$
|
||||
*
|
||||
* from: @(#)hpux_sig.c 8.2 (Berkeley) 9/23/93
|
||||
* $Id: hpux_sig.c,v 1.9 1994/05/23 08:04:19 mycroft Exp $
|
||||
*/
|
||||
|
||||
/*
|
||||
* Signal related HPUX compatibility routines
|
||||
*/
|
||||
|
||||
#include "param.h"
|
||||
#include "systm.h"
|
||||
#include "kernel.h"
|
||||
#include "proc.h"
|
||||
#include "signalvar.h"
|
||||
#include "hpux.h"
|
||||
#include <sys/param.h>
|
||||
#include <sys/systm.h>
|
||||
#include <sys/kernel.h>
|
||||
#include <sys/proc.h>
|
||||
#include <sys/signalvar.h>
|
||||
|
||||
#include <hp300/hpux/hpux.h>
|
||||
|
||||
/* indexed by HPUX signal number - 1 */
|
||||
char hpuxtobsdsigmap[NSIG] = {
|
||||
|
@ -81,7 +83,6 @@ struct hpux_sigvec_args {
|
|||
struct sigvec *nsv;
|
||||
struct sigvec *osv;
|
||||
};
|
||||
|
||||
hpux_sigvec(p, uap, retval)
|
||||
struct proc *p;
|
||||
register struct hpux_sigvec_args *uap;
|
||||
|
@ -135,7 +136,6 @@ hpux_sigvec(p, uap, retval)
|
|||
struct hpux_sigblock_args {
|
||||
int mask;
|
||||
};
|
||||
|
||||
hpux_sigblock(p, uap, retval)
|
||||
register struct proc *p;
|
||||
struct hpux_sigblock_args *uap;
|
||||
|
@ -152,7 +152,6 @@ hpux_sigblock(p, uap, retval)
|
|||
struct hpux_sigsetmask_args {
|
||||
int mask;
|
||||
};
|
||||
|
||||
hpux_sigsetmask(p, uap, retval)
|
||||
struct proc *p;
|
||||
struct hpux_sigsetmask_args *uap;
|
||||
|
@ -169,7 +168,6 @@ hpux_sigsetmask(p, uap, retval)
|
|||
struct hpux_sigpause_args {
|
||||
int mask;
|
||||
};
|
||||
|
||||
hpux_sigpause(p, uap, retval)
|
||||
struct proc *p;
|
||||
struct hpux_sigpause_args *uap;
|
||||
|
@ -185,7 +183,6 @@ struct hpux_kill_args {
|
|||
int pid;
|
||||
int signo;
|
||||
};
|
||||
|
||||
hpux_kill(p, uap, retval)
|
||||
struct proc *p;
|
||||
struct hpux_kill_args *uap;
|
||||
|
@ -217,7 +214,6 @@ struct hpux_sigprocmask_args {
|
|||
hpux_sigset_t *set;
|
||||
hpux_sigset_t *oset;
|
||||
};
|
||||
|
||||
hpux_sigprocmask(p, uap, retval)
|
||||
register struct proc *p;
|
||||
struct hpux_sigprocmask_args *uap;
|
||||
|
@ -263,7 +259,6 @@ hpux_sigprocmask(p, uap, retval)
|
|||
struct hpux_sigpending_args {
|
||||
hpux_sigset_t *set;
|
||||
};
|
||||
|
||||
hpux_sigpending(p, uap, retval)
|
||||
register struct proc *p;
|
||||
struct hpux_sigpending_args *uap;
|
||||
|
@ -278,7 +273,6 @@ hpux_sigpending(p, uap, retval)
|
|||
struct hpux_sigsuspend_args {
|
||||
hpux_sigset_t *set;
|
||||
};
|
||||
|
||||
hpux_sigsuspend(p, uap, retval)
|
||||
register struct proc *p;
|
||||
struct hpux_sigsuspend_args *uap;
|
||||
|
@ -304,7 +298,6 @@ struct hpux_sigaction_args {
|
|||
struct hpux_sigaction *nsa;
|
||||
struct hpux_sigaction *osa;
|
||||
};
|
||||
|
||||
hpux_sigaction(p, uap, retval)
|
||||
struct proc *p;
|
||||
register struct hpux_sigaction_args *uap;
|
||||
|
@ -366,11 +359,11 @@ hpux_sigaction(p, uap, retval)
|
|||
return (0);
|
||||
}
|
||||
|
||||
#ifdef COMPAT_OHPUX
|
||||
struct ohpux_ssig_args {
|
||||
int signo;
|
||||
sig_t fun;
|
||||
};
|
||||
|
||||
ohpux_ssig(p, uap, retval)
|
||||
struct proc *p;
|
||||
struct ohpux_ssig_args *uap;
|
||||
|
@ -404,6 +397,7 @@ ohpux_ssig(p, uap, retval)
|
|||
#endif
|
||||
return (0);
|
||||
}
|
||||
#endif
|
||||
|
||||
/* signal numbers: convert from HPUX to BSD */
|
||||
hpuxtobsdsig(sig)
|
||||
|
|
|
@ -2,171 +2,107 @@
|
|||
* System call numbers.
|
||||
*
|
||||
* DO NOT EDIT-- this file is automatically generated.
|
||||
* created from $Id: hpux_syscall.h,v 1.2 1994/05/17 10:37:14 cgd Exp $
|
||||
* created from: syscalls.master,v 1.3 1994/05/23 08:03:32
|
||||
*/
|
||||
|
||||
#define SYS_nosys 0
|
||||
#define SYS_exit 1
|
||||
#define SYS_fork 2
|
||||
#define SYS_hpux_read 3
|
||||
#define SYS_hpux_write 4
|
||||
#define SYS_hpux_open 5
|
||||
#define SYS_read 3
|
||||
#define SYS_write 4
|
||||
#define SYS_open 5
|
||||
#define SYS_close 6
|
||||
#define SYS_hpux_wait 7
|
||||
#define SYS_creat 8
|
||||
#define SYS_owait 7
|
||||
#define SYS_ocreat 8
|
||||
#define SYS_link 9
|
||||
#define SYS_unlink 10
|
||||
#define SYS_execv 11
|
||||
#define SYS_chdir 12
|
||||
/* 13 is old hpux_time */
|
||||
/* 13 is old hpux_time time */
|
||||
#define SYS_mknod 14
|
||||
#define SYS_chmod 15
|
||||
#define SYS_chown 16
|
||||
#define SYS_break 17
|
||||
/* 18 is old hpux_stat */
|
||||
#define SYS_lseek 19
|
||||
/* 18 is old hpux_stat stat */
|
||||
#define SYS_olseek 19
|
||||
#define SYS_getpid 20
|
||||
#define SYS_mount 21
|
||||
#define SYS_umount 22
|
||||
#define SYS_setuid 23
|
||||
#define SYS_getuid 24
|
||||
/* 25 is old hpux_stime */
|
||||
#define SYS_hpux_ptrace 26
|
||||
/* 27 is old hpux_alarm */
|
||||
/* 28 is old hpux_fstat */
|
||||
/* 29 is old hpux_pause */
|
||||
/* 30 is old hpux_utime */
|
||||
/* 31 is old hpux_stty */
|
||||
/* 32 is old hpux_gtty */
|
||||
/* 25 is old hpux_stime stime */
|
||||
#define SYS_ptrace 26
|
||||
/* 27 is old hpux_alarm alarm */
|
||||
/* 28 is old hpux_fstat fstat */
|
||||
/* 29 is old hpux_pause pause */
|
||||
/* 30 is old hpux_utime utime */
|
||||
/* 31 is old hpux_stty stty */
|
||||
/* 32 is old hpux_gtty gtty */
|
||||
#define SYS_access 33
|
||||
/* 34 is old hpux_nice */
|
||||
/* 35 is old hpux_ftime */
|
||||
/* 34 is old hpux_nice nice */
|
||||
/* 35 is old hpux_ftime ftime */
|
||||
#define SYS_sync 36
|
||||
#define SYS_hpux_kill 37
|
||||
#define SYS_hpux_stat 38
|
||||
/* 39 is old hpux_setpgrp */
|
||||
#define SYS_hpux_lstat 40
|
||||
#define SYS_hpux_dup 41
|
||||
#define SYS_kill 37
|
||||
#define SYS_stat 38
|
||||
/* 39 is old hpux_setpgrp setpgrp */
|
||||
#define SYS_lstat 40
|
||||
#define SYS_dup 41
|
||||
#define SYS_pipe 42
|
||||
/* 43 is old hpux_times */
|
||||
/* 43 is old hpux_times times */
|
||||
#define SYS_profil 44
|
||||
#define SYS_ki_syscall 45
|
||||
#define SYS_setgid 46
|
||||
#define SYS_getgid 47
|
||||
/* 48 is old hpux_ssig */
|
||||
#define SYS_acct 51
|
||||
#define SYS_hpux_ioctl 54
|
||||
#define SYS_reboot 55
|
||||
/* 48 is old hpux_ssig ssig */
|
||||
#define SYS_ioctl 54
|
||||
#define SYS_symlink 56
|
||||
#define SYS_hpux_utssys 57
|
||||
#define SYS_utssys 57
|
||||
#define SYS_readlink 58
|
||||
#define SYS_execve 59
|
||||
#define SYS_umask 60
|
||||
#define SYS_chroot 61
|
||||
#define SYS_hpux_fcntl 62
|
||||
#define SYS_hpux_ulimit 63
|
||||
#define SYS_nosys 64
|
||||
#define SYS_nosys 65
|
||||
#define SYS_fcntl 62
|
||||
#define SYS_ulimit 63
|
||||
#define SYS_vfork 66
|
||||
#define SYS_hpux_read 67
|
||||
#define SYS_hpux_write 68
|
||||
#define SYS_nosys 69
|
||||
#define SYS_nosys 70
|
||||
#define SYS_nosys 71
|
||||
#define SYS_nosys 72
|
||||
#define SYS_nosys 73
|
||||
#define SYS_mprotect 74
|
||||
#define SYS_nosys 75
|
||||
#define SYS_nosys 76
|
||||
#define SYS_nosys 77
|
||||
#define SYS_nosys 78
|
||||
#define SYS_vread 67
|
||||
#define SYS_vwrite 68
|
||||
#define SYS_mmap 71
|
||||
#define SYS_munmap 73
|
||||
#define SYS_getgroups 79
|
||||
#define SYS_setgroups 80
|
||||
#define SYS_hpux_getpgrp2 81
|
||||
#define SYS_hpux_setpgrp2 82
|
||||
#define SYS_getpgrp2 81
|
||||
#define SYS_setpgrp2 82
|
||||
#define SYS_setitimer 83
|
||||
#define SYS_hpux_wait3 84
|
||||
#define SYS_swapon 85
|
||||
#define SYS_wait3 84
|
||||
#define SYS_getitimer 86
|
||||
#define SYS_nosys 87
|
||||
#define SYS_nosys 88
|
||||
#define SYS_nosys 89
|
||||
#define SYS_dup2 90
|
||||
#define SYS_nosys 91
|
||||
#define SYS_hpux_fstat 92
|
||||
#define SYS_fstat 92
|
||||
#define SYS_select 93
|
||||
#define SYS_nosys 94
|
||||
#define SYS_fsync 95
|
||||
#define SYS_nosys 96
|
||||
#define SYS_nosys 97
|
||||
#define SYS_nosys 98
|
||||
#define SYS_nosys 99
|
||||
#define SYS_nosys 100
|
||||
#define SYS_nosys 101
|
||||
#define SYS_nosys 102
|
||||
#define SYS_sigreturn 103
|
||||
#define SYS_nosys 104
|
||||
#define SYS_nosys 105
|
||||
#define SYS_nosys 106
|
||||
#define SYS_nosys 107
|
||||
#define SYS_hpux_sigvec 108
|
||||
#define SYS_hpux_sigblock 109
|
||||
#define SYS_hpux_sigsetmask 110
|
||||
#define SYS_hpux_sigpause 111
|
||||
#define SYS_sigvec 108
|
||||
#define SYS_sigblock 109
|
||||
#define SYS_sigsetmask 110
|
||||
#define SYS_sigpause 111
|
||||
#define SYS_osigstack 112
|
||||
#define SYS_nosys 113
|
||||
#define SYS_nosys 114
|
||||
#define SYS_nosys 115
|
||||
#define SYS_gettimeofday 116
|
||||
#define SYS_nosys 117
|
||||
#define SYS_nosys 118
|
||||
#define SYS_hpib_io_stub 119
|
||||
#define SYS_hpux_readv 120
|
||||
#define SYS_hpux_writev 121
|
||||
#define SYS_readv 120
|
||||
#define SYS_writev 121
|
||||
#define SYS_settimeofday 122
|
||||
#define SYS_fchown 123
|
||||
#define SYS_fchmod 124
|
||||
#define SYS_nosys 125
|
||||
#define SYS_hpux_setresuid 126
|
||||
#define SYS_hpux_setresgid 127
|
||||
#define SYS_setresuid 126
|
||||
#define SYS_setresgid 127
|
||||
#define SYS_rename 128
|
||||
#define SYS_truncate 129
|
||||
#define SYS_ftruncate 130
|
||||
#define SYS_nosys 131
|
||||
/* 129 is old truncate */
|
||||
/* 130 is old ftruncate */
|
||||
#define SYS_sysconf 132
|
||||
#define SYS_nosys 133
|
||||
#define SYS_nosys 134
|
||||
#define SYS_nosys 135
|
||||
#define SYS_mkdir 136
|
||||
#define SYS_rmdir 137
|
||||
#define SYS_nosys 138
|
||||
#define SYS_sigreturn 139
|
||||
#define SYS_nosys 140
|
||||
#define SYS_nosys 141
|
||||
#define SYS_nosys 142
|
||||
#define SYS_nosys 143
|
||||
#define SYS_nosys 144
|
||||
#define SYS_nosys 145
|
||||
#define SYS_nosys 146
|
||||
#define SYS_nosys 147
|
||||
#define SYS_nosys 148
|
||||
#define SYS_nosys 149
|
||||
#define SYS_nosys 150
|
||||
#define SYS_privgrp 151
|
||||
/* 144 is old getrlimit */
|
||||
/* 145 is old setrlimit */
|
||||
#define SYS_rtprio 152
|
||||
#define SYS_plock 153
|
||||
#define SYS_hpux_netioctl 154
|
||||
#define SYS_hpux_lockf 155
|
||||
#define SYS_netioctl 154
|
||||
#define SYS_lockf 155
|
||||
#define SYS_semget 156
|
||||
#define SYS_semctl 157
|
||||
#define SYS_semop 158
|
||||
#define SYS_semget 156
|
||||
#define SYS_semctl 157
|
||||
#define SYS_semop 158
|
||||
#define SYS_msgget 159
|
||||
#define SYS_msgctl 160
|
||||
#define SYS_msgsnd 161
|
||||
#define SYS_msgrcv 162
|
||||
#define SYS_msgget 159
|
||||
#define SYS_msgctl 160
|
||||
#define SYS_msgsnd 161
|
||||
|
@ -175,83 +111,36 @@
|
|||
#define SYS_shmctl 164
|
||||
#define SYS_shmat 165
|
||||
#define SYS_shmdt 166
|
||||
#define SYS_shmget 163
|
||||
#define SYS_shmctl 164
|
||||
#define SYS_shmat 165
|
||||
#define SYS_shmdt 166
|
||||
#define SYS_hpux_advise 167
|
||||
#define SYS_dux_notconfigured 168
|
||||
#define SYS_cluster 169
|
||||
#define SYS_mkrnod 170
|
||||
#define SYS_nosys 171
|
||||
#define SYS_dux_notconfigured 172
|
||||
#define SYS_nosys 173
|
||||
#define SYS_hpux_getcontext 174
|
||||
#define SYS_nosys 175
|
||||
#define SYS_nosys 176
|
||||
#define SYS_nosys 177
|
||||
#define SYS_lsync 178
|
||||
#define SYS_nosys 179
|
||||
#define SYS_mysite 180
|
||||
#define SYS_returnzero 181
|
||||
#define SYS_nosys 182
|
||||
#define SYS_nosys 183
|
||||
#define SYS_nosys 184
|
||||
#define SYS_nosys 185
|
||||
#define SYS_setacl 186
|
||||
#define SYS_fsetacl 187
|
||||
#define SYS_getacl 188
|
||||
#define SYS_fgetacl 189
|
||||
#define SYS_hpux_getaccess 190
|
||||
#define SYS_getaudid 191
|
||||
#define SYS_setaudid 192
|
||||
#define SYS_getaudproc 193
|
||||
#define SYS_setaudproc 194
|
||||
#define SYS_getevent 195
|
||||
#define SYS_setevent 196
|
||||
#define SYS_audwrite 197
|
||||
#define SYS_audswitch 198
|
||||
#define SYS_audctl 199
|
||||
#define SYS_hpux_waitpid 200
|
||||
#define SYS_nosys 201
|
||||
#define SYS_netioctl 202
|
||||
#define SYS_nosys 203
|
||||
#define SYS_nosys 204
|
||||
#define SYS_nosys 205
|
||||
#define SYS_nosys 206
|
||||
#define SYS_nosys 207
|
||||
#define SYS_nosys 208
|
||||
#define SYS_nosys 209
|
||||
#define SYS_nosys 210
|
||||
#define SYS_nosys 211
|
||||
#define SYS_nosys 212
|
||||
#define SYS_nosys 213
|
||||
#define SYS_nosys 214
|
||||
#define SYS_nosys 215
|
||||
#define SYS_nosys 216
|
||||
#define SYS_nosys 217
|
||||
#define SYS_nosys 218
|
||||
#define SYS_nosys 219
|
||||
#define SYS_nosys 220
|
||||
#define SYS_nosys 221
|
||||
#define SYS_nosys 222
|
||||
#define SYS_nosys 223
|
||||
#define SYS_nosys 224
|
||||
#define SYS_pathconf 225
|
||||
#define SYS_fpathconf 226
|
||||
#define SYS_nosys 227
|
||||
#define SYS_nosys 228
|
||||
#define SYS_async_daemon 229
|
||||
#define SYS_nfs_fcntl 230
|
||||
#define SYS_m68020_advise 167
|
||||
#define SYS_getcontext 174
|
||||
#define SYS_getaccess 190
|
||||
#define SYS_waitpid 200
|
||||
#define SYS_getdirentries 231
|
||||
#define SYS_ogetdomainname 232
|
||||
#define SYS_nfs_getfh 233
|
||||
#define SYS_vfsmount 234
|
||||
#define SYS_nfs_svc 235
|
||||
#define SYS_osetdomainname 236
|
||||
#define SYS_statfs 237
|
||||
#define SYS_fstatfs 238
|
||||
#define SYS_hpux_sigaction 239
|
||||
#define SYS_hpux_sigprocmask 240
|
||||
#define SYS_hpux_sigpending 241
|
||||
#define SYS_hpux_sigsuspend 242
|
||||
/* 232 is old getdomainname */
|
||||
/* 236 is old setdomainname */
|
||||
#define SYS_sigaction 239
|
||||
#define SYS_sigprocmask 240
|
||||
#define SYS_sigpending 241
|
||||
#define SYS_sigsuspend 242
|
||||
#define SYS_getnumfds 268
|
||||
#define SYS_fchdir 272
|
||||
/* 275 is old accept */
|
||||
#define SYS_bind 276
|
||||
#define SYS_connect 277
|
||||
/* 278 is old getpeername */
|
||||
/* 279 is old getsockname */
|
||||
#define SYS_getsockopt 280
|
||||
#define SYS_listen 281
|
||||
/* 282 is old recv */
|
||||
/* 283 is old recvfrom */
|
||||
/* 284 is old recvmsg */
|
||||
/* 285 is old send */
|
||||
/* 286 is old sendmsg */
|
||||
#define SYS_sendto 287
|
||||
#define SYS_setsockopt2 288
|
||||
#define SYS_shutdown 289
|
||||
#define SYS_socket 290
|
||||
#define SYS_socketpair 291
|
||||
#define SYS_nsemctl 312
|
||||
#define SYS_nmsgctl 313
|
||||
#define SYS_nshmctl 314
|
||||
|
|
|
@ -2,174 +2,174 @@
|
|||
* System call names.
|
||||
*
|
||||
* DO NOT EDIT-- this file is automatically generated.
|
||||
* created from $Id: hpux_syscalls.c,v 1.5 1994/05/17 10:37:16 cgd Exp $
|
||||
* created from: syscalls.master,v 1.3 1994/05/23 08:03:32
|
||||
*/
|
||||
|
||||
char *hpux_syscallnames[] = {
|
||||
"nosys", /* 0 = nosys */
|
||||
"#0", /* 0 = indir or out-of-range */
|
||||
"exit", /* 1 = exit */
|
||||
"fork", /* 2 = fork */
|
||||
"hpux_read", /* 3 = hpux_read */
|
||||
"hpux_write", /* 4 = hpux_write */
|
||||
"hpux_open", /* 5 = hpux_open */
|
||||
"read", /* 3 = read */
|
||||
"write", /* 4 = write */
|
||||
"open", /* 5 = open */
|
||||
"close", /* 6 = close */
|
||||
"hpux_wait", /* 7 = hpux_wait */
|
||||
"creat", /* 8 = creat */
|
||||
"owait", /* 7 = owait */
|
||||
"ocreat", /* 8 = ocreat */
|
||||
"link", /* 9 = link */
|
||||
"unlink", /* 10 = unlink */
|
||||
"execv", /* 11 = execv */
|
||||
"chdir", /* 12 = chdir */
|
||||
"old.hpux_time", /* 13 = old hpux_time */
|
||||
"old.time", /* 13 = old time */
|
||||
"mknod", /* 14 = mknod */
|
||||
"chmod", /* 15 = chmod */
|
||||
"chown", /* 16 = chown */
|
||||
"break", /* 17 = break */
|
||||
"old.hpux_stat", /* 18 = old hpux_stat */
|
||||
"lseek", /* 19 = lseek */
|
||||
"old.stat", /* 18 = old stat */
|
||||
"olseek", /* 19 = olseek */
|
||||
"getpid", /* 20 = getpid */
|
||||
"mount", /* 21 = mount */
|
||||
"umount", /* 22 = umount */
|
||||
"mount", /* 21 = mount (unimplemented) */
|
||||
"umount", /* 22 = umount (unimplemented) */
|
||||
"setuid", /* 23 = setuid */
|
||||
"getuid", /* 24 = getuid */
|
||||
"old.hpux_stime", /* 25 = old hpux_stime */
|
||||
"hpux_ptrace", /* 26 = hpux_ptrace */
|
||||
"old.hpux_alarm", /* 27 = old hpux_alarm */
|
||||
"old.hpux_fstat", /* 28 = old hpux_fstat */
|
||||
"old.hpux_pause", /* 29 = old hpux_pause */
|
||||
"old.hpux_utime", /* 30 = old hpux_utime */
|
||||
"old.hpux_stty", /* 31 = old hpux_stty */
|
||||
"old.hpux_gtty", /* 32 = old hpux_gtty */
|
||||
"old.stime", /* 25 = old stime */
|
||||
"ptrace", /* 26 = ptrace */
|
||||
"old.alarm", /* 27 = old alarm */
|
||||
"old.fstat", /* 28 = old fstat */
|
||||
"old.pause", /* 29 = old pause */
|
||||
"old.utime", /* 30 = old utime */
|
||||
"old.stty", /* 31 = old stty */
|
||||
"old.gtty", /* 32 = old gtty */
|
||||
"access", /* 33 = access */
|
||||
"old.hpux_nice", /* 34 = old hpux_nice */
|
||||
"old.hpux_ftime", /* 35 = old hpux_ftime */
|
||||
"old.nice", /* 34 = old nice */
|
||||
"old.ftime", /* 35 = old ftime */
|
||||
"sync", /* 36 = sync */
|
||||
"hpux_kill", /* 37 = hpux_kill */
|
||||
"hpux_stat", /* 38 = hpux_stat */
|
||||
"old.hpux_setpgrp", /* 39 = old hpux_setpgrp */
|
||||
"hpux_lstat", /* 40 = hpux_lstat */
|
||||
"hpux_dup", /* 41 = hpux_dup */
|
||||
"kill", /* 37 = kill */
|
||||
"stat", /* 38 = stat */
|
||||
"old.setpgrp", /* 39 = old setpgrp */
|
||||
"lstat", /* 40 = lstat */
|
||||
"dup", /* 41 = dup */
|
||||
"pipe", /* 42 = pipe */
|
||||
"old.hpux_times", /* 43 = old hpux_times */
|
||||
"old.times", /* 43 = old times */
|
||||
"profil", /* 44 = profil */
|
||||
"ki_syscall", /* 45 = ki_syscall */
|
||||
"ki_syscall", /* 45 = ki_syscall (unimplemented) */
|
||||
"setgid", /* 46 = setgid */
|
||||
"getgid", /* 47 = getgid */
|
||||
"old.hpux_ssig", /* 48 = old hpux_ssig */
|
||||
"#49", /* 49 = reserved */
|
||||
"#50", /* 50 = reserved */
|
||||
"acct", /* 51 = acct */
|
||||
"#52", /* 52 = old set phys addr */
|
||||
"#53", /* 53 = old lock in core */
|
||||
"hpux_ioctl", /* 54 = hpux_ioctl */
|
||||
"reboot", /* 55 = reboot */
|
||||
"old.ssig", /* 48 = old ssig */
|
||||
"#49", /* 49 = reserved for USG */
|
||||
"#50", /* 50 = reserved for USG */
|
||||
"acct", /* 51 = acct (unimplemented) */
|
||||
"#52", /* 52 = nosys */
|
||||
"#53", /* 53 = nosys */
|
||||
"ioctl", /* 54 = ioctl */
|
||||
"reboot", /* 55 = reboot (unimplemented) */
|
||||
"symlink", /* 56 = symlink */
|
||||
"hpux_utssys", /* 57 = hpux_utssys */
|
||||
"utssys", /* 57 = utssys */
|
||||
"readlink", /* 58 = readlink */
|
||||
"execve", /* 59 = execve */
|
||||
"umask", /* 60 = umask */
|
||||
"chroot", /* 61 = chroot */
|
||||
"hpux_fcntl", /* 62 = hpux_fcntl */
|
||||
"hpux_ulimit", /* 63 = hpux_ulimit */
|
||||
"nosys", /* 64 = nosys */
|
||||
"nosys", /* 65 = nosys */
|
||||
"fcntl", /* 62 = fcntl */
|
||||
"ulimit", /* 63 = ulimit */
|
||||
"#64", /* 64 = nosys */
|
||||
"#65", /* 65 = nosys */
|
||||
"vfork", /* 66 = vfork */
|
||||
"hpux_read", /* 67 = hpux_read */
|
||||
"hpux_write", /* 68 = hpux_write */
|
||||
"nosys", /* 69 = nosys */
|
||||
"nosys", /* 70 = nosys */
|
||||
"nosys", /* 71 = nosys */
|
||||
"nosys", /* 72 = nosys */
|
||||
"nosys", /* 73 = nosys */
|
||||
"mprotect", /* 74 = mprotect */
|
||||
"nosys", /* 75 = nosys */
|
||||
"nosys", /* 76 = nosys */
|
||||
"nosys", /* 77 = nosys */
|
||||
"nosys", /* 78 = nosys */
|
||||
"vread", /* 67 = vread */
|
||||
"vwrite", /* 68 = vwrite */
|
||||
"#69", /* 69 = nosys */
|
||||
"#70", /* 70 = nosys */
|
||||
"mmap", /* 71 = mmap */
|
||||
"#72", /* 72 = nosys */
|
||||
"munmap", /* 73 = munmap */
|
||||
"mprotect", /* 74 = mprotect (unimplemented) */
|
||||
"#75", /* 75 = nosys */
|
||||
"#76", /* 76 = nosys */
|
||||
"#77", /* 77 = nosys */
|
||||
"#78", /* 78 = nosys */
|
||||
"getgroups", /* 79 = getgroups */
|
||||
"setgroups", /* 80 = setgroups */
|
||||
"hpux_getpgrp2", /* 81 = hpux_getpgrp2 */
|
||||
"hpux_setpgrp2", /* 82 = hpux_setpgrp2 */
|
||||
"getpgrp2", /* 81 = getpgrp2 */
|
||||
"setpgrp2", /* 82 = setpgrp2 */
|
||||
"setitimer", /* 83 = setitimer */
|
||||
"hpux_wait3", /* 84 = hpux_wait3 */
|
||||
"swapon", /* 85 = swapon */
|
||||
"wait3", /* 84 = wait3 */
|
||||
"swapon", /* 85 = swapon (unimplemented) */
|
||||
"getitimer", /* 86 = getitimer */
|
||||
"nosys", /* 87 = nosys */
|
||||
"nosys", /* 88 = nosys */
|
||||
"nosys", /* 89 = nosys */
|
||||
"#87", /* 87 = nosys */
|
||||
"#88", /* 88 = nosys */
|
||||
"#89", /* 89 = nosys */
|
||||
"dup2", /* 90 = dup2 */
|
||||
"nosys", /* 91 = nosys */
|
||||
"hpux_fstat", /* 92 = hpux_fstat */
|
||||
"#91", /* 91 = nosys */
|
||||
"fstat", /* 92 = fstat */
|
||||
"select", /* 93 = select */
|
||||
"nosys", /* 94 = nosys */
|
||||
"#94", /* 94 = nosys */
|
||||
"fsync", /* 95 = fsync */
|
||||
"nosys", /* 96 = nosys */
|
||||
"nosys", /* 97 = nosys */
|
||||
"nosys", /* 98 = nosys */
|
||||
"nosys", /* 99 = nosys */
|
||||
"nosys", /* 100 = nosys */
|
||||
"nosys", /* 101 = nosys */
|
||||
"nosys", /* 102 = nosys */
|
||||
"#96", /* 96 = nosys */
|
||||
"#97", /* 97 = nosys */
|
||||
"#98", /* 98 = nosys */
|
||||
"#99", /* 99 = nosys */
|
||||
"#100", /* 100 = nosys */
|
||||
"#101", /* 101 = nosys */
|
||||
"#102", /* 102 = nosys */
|
||||
"sigreturn", /* 103 = sigreturn */
|
||||
"nosys", /* 104 = nosys */
|
||||
"nosys", /* 105 = nosys */
|
||||
"nosys", /* 106 = nosys */
|
||||
"nosys", /* 107 = nosys */
|
||||
"hpux_sigvec", /* 108 = hpux_sigvec */
|
||||
"hpux_sigblock", /* 109 = hpux_sigblock */
|
||||
"hpux_sigsetmask", /* 110 = hpux_sigsetmask */
|
||||
"hpux_sigpause", /* 111 = hpux_sigpause */
|
||||
"#104", /* 104 = nosys */
|
||||
"#105", /* 105 = nosys */
|
||||
"#106", /* 106 = nosys */
|
||||
"#107", /* 107 = nosys */
|
||||
"sigvec", /* 108 = sigvec */
|
||||
"sigblock", /* 109 = sigblock */
|
||||
"sigsetmask", /* 110 = sigsetmask */
|
||||
"sigpause", /* 111 = sigpause */
|
||||
"osigstack", /* 112 = osigstack */
|
||||
"nosys", /* 113 = nosys */
|
||||
"nosys", /* 114 = nosys */
|
||||
"nosys", /* 115 = nosys */
|
||||
"#113", /* 113 = nosys */
|
||||
"#114", /* 114 = nosys */
|
||||
"#115", /* 115 = nosys */
|
||||
"gettimeofday", /* 116 = gettimeofday */
|
||||
"nosys", /* 117 = nosys */
|
||||
"nosys", /* 118 = nosys */
|
||||
"hpib_io_stub", /* 119 = hpib_io_stub */
|
||||
"hpux_readv", /* 120 = hpux_readv */
|
||||
"hpux_writev", /* 121 = hpux_writev */
|
||||
"#117", /* 117 = nosys */
|
||||
"#118", /* 118 = nosys */
|
||||
"hpib_io_stub", /* 119 = hpib_io_stub (unimplemented) */
|
||||
"readv", /* 120 = readv */
|
||||
"writev", /* 121 = writev */
|
||||
"settimeofday", /* 122 = settimeofday */
|
||||
"fchown", /* 123 = fchown */
|
||||
"fchmod", /* 124 = fchmod */
|
||||
"nosys", /* 125 = nosys */
|
||||
"hpux_setresuid", /* 126 = hpux_setresuid */
|
||||
"hpux_setresgid", /* 127 = hpux_setresgid */
|
||||
"#125", /* 125 = nosys */
|
||||
"setresuid", /* 126 = setresuid */
|
||||
"setresgid", /* 127 = setresgid */
|
||||
"rename", /* 128 = rename */
|
||||
"truncate", /* 129 = truncate */
|
||||
"ftruncate", /* 130 = ftruncate */
|
||||
"nosys", /* 131 = nosys */
|
||||
"old.truncate", /* 129 = old truncate */
|
||||
"old.ftruncate", /* 130 = old ftruncate */
|
||||
"#131", /* 131 = nosys */
|
||||
"sysconf", /* 132 = sysconf */
|
||||
"nosys", /* 133 = nosys */
|
||||
"nosys", /* 134 = nosys */
|
||||
"nosys", /* 135 = nosys */
|
||||
"#133", /* 133 = nosys */
|
||||
"#134", /* 134 = nosys */
|
||||
"#135", /* 135 = nosys */
|
||||
"mkdir", /* 136 = mkdir */
|
||||
"rmdir", /* 137 = rmdir */
|
||||
"nosys", /* 138 = nosys */
|
||||
"sigreturn", /* 139 = sigreturn */
|
||||
"nosys", /* 140 = nosys */
|
||||
"nosys", /* 141 = nosys */
|
||||
"nosys", /* 142 = nosys */
|
||||
"nosys", /* 143 = nosys */
|
||||
"nosys", /* 144 = nosys */
|
||||
"nosys", /* 145 = nosys */
|
||||
"nosys", /* 146 = nosys */
|
||||
"nosys", /* 147 = nosys */
|
||||
"nosys", /* 148 = nosys */
|
||||
"nosys", /* 149 = nosys */
|
||||
"nosys", /* 150 = nosys */
|
||||
"privgrp", /* 151 = privgrp */
|
||||
"#138", /* 138 = nosys */
|
||||
"#139", /* 139 = nosys */
|
||||
"#140", /* 140 = nosys */
|
||||
"#141", /* 141 = nosys */
|
||||
"#142", /* 142 = nosys */
|
||||
"#143", /* 143 = nosys */
|
||||
"old.getrlimit", /* 144 = old getrlimit */
|
||||
"old.setrlimit", /* 145 = old setrlimit */
|
||||
"#146", /* 146 = nosys */
|
||||
"#147", /* 147 = nosys */
|
||||
"#148", /* 148 = nosys */
|
||||
"#149", /* 149 = nosys */
|
||||
"#150", /* 150 = nosys */
|
||||
"privgrp", /* 151 = privgrp (unimplemented) */
|
||||
"rtprio", /* 152 = rtprio */
|
||||
"plock", /* 153 = plock */
|
||||
"hpux_netioctl", /* 154 = hpux_netioctl */
|
||||
"hpux_lockf", /* 155 = hpux_lockf */
|
||||
"plock", /* 153 = plock (unimplemented) */
|
||||
"netioctl", /* 154 = netioctl */
|
||||
"lockf", /* 155 = lockf */
|
||||
#ifdef SYSVSEM
|
||||
"semget", /* 156 = semget */
|
||||
"semctl", /* 157 = semctl */
|
||||
"semop", /* 158 = semop */
|
||||
#else
|
||||
"semget", /* 156 = semget */
|
||||
"semctl", /* 157 = semctl */
|
||||
"semop", /* 158 = semop */
|
||||
"semget", /* 156 = semget (unimplemented) */
|
||||
"semctl", /* 157 = semctl (unimplemented) */
|
||||
"semop", /* 158 = semop (unimplemented) */
|
||||
#endif
|
||||
#ifdef SYSVMSG
|
||||
"msgget", /* 159 = msgget */
|
||||
|
@ -177,10 +177,10 @@ char *hpux_syscallnames[] = {
|
|||
"msgsnd", /* 161 = msgsnd */
|
||||
"msgrcv", /* 162 = msgrcv */
|
||||
#else
|
||||
"msgget", /* 159 = msgget */
|
||||
"msgctl", /* 160 = msgctl */
|
||||
"msgsnd", /* 161 = msgsnd */
|
||||
"msgrcv", /* 162 = msgrcv */
|
||||
"msgget", /* 159 = msgget (unimplemented) */
|
||||
"msgctl", /* 160 = msgctl (unimplemented) */
|
||||
"msgsnd", /* 161 = msgsnd (unimplemented) */
|
||||
"msgrcv", /* 162 = msgrcv (unimplemented) */
|
||||
#endif
|
||||
#ifdef SYSVSHM
|
||||
"shmget", /* 163 = shmget */
|
||||
|
@ -188,85 +188,169 @@ char *hpux_syscallnames[] = {
|
|||
"shmat", /* 165 = shmat */
|
||||
"shmdt", /* 166 = shmdt */
|
||||
#else
|
||||
"shmget", /* 163 = shmget */
|
||||
"shmctl", /* 164 = shmctl */
|
||||
"shmat", /* 165 = shmat */
|
||||
"shmdt", /* 166 = shmdt */
|
||||
"shmget", /* 163 = shmget (unimplemented) */
|
||||
"shmctl", /* 164 = shmctl (unimplemented) */
|
||||
"shmat", /* 165 = shmat (unimplemented) */
|
||||
"shmdt", /* 166 = shmdt (unimplemented) */
|
||||
#endif
|
||||
"hpux_advise", /* 167 = hpux_advise */
|
||||
"dux_notconfigured", /* 168 = dux_notconfigured */
|
||||
"cluster", /* 169 = cluster */
|
||||
"mkrnod", /* 170 = mkrnod */
|
||||
"nosys", /* 171 = nosys */
|
||||
"dux_notconfigured", /* 172 = dux_notconfigured */
|
||||
"nosys", /* 173 = nosys */
|
||||
"hpux_getcontext", /* 174 = hpux_getcontext */
|
||||
"nosys", /* 175 = nosys */
|
||||
"nosys", /* 176 = nosys */
|
||||
"nosys", /* 177 = nosys */
|
||||
"lsync", /* 178 = lsync */
|
||||
"nosys", /* 179 = nosys */
|
||||
"mysite", /* 180 = mysite */
|
||||
"returnzero", /* 181 = returnzero */
|
||||
"nosys", /* 182 = nosys */
|
||||
"nosys", /* 183 = nosys */
|
||||
"nosys", /* 184 = nosys */
|
||||
"nosys", /* 185 = nosys */
|
||||
"setacl", /* 186 = setacl */
|
||||
"fsetacl", /* 187 = fsetacl */
|
||||
"getacl", /* 188 = getacl */
|
||||
"fgetacl", /* 189 = fgetacl */
|
||||
"hpux_getaccess", /* 190 = hpux_getaccess */
|
||||
"getaudid", /* 191 = getaudid */
|
||||
"setaudid", /* 192 = setaudid */
|
||||
"getaudproc", /* 193 = getaudproc */
|
||||
"setaudproc", /* 194 = setaudproc */
|
||||
"getevent", /* 195 = getevent */
|
||||
"setevent", /* 196 = setevent */
|
||||
"audwrite", /* 197 = audwrite */
|
||||
"audswitch", /* 198 = audswitch */
|
||||
"audctl", /* 199 = audctl */
|
||||
"hpux_waitpid", /* 200 = hpux_waitpid */
|
||||
"nosys", /* 201 = nosys */
|
||||
"netioctl", /* 202 = netioctl */
|
||||
"nosys", /* 203 = nosys */
|
||||
"nosys", /* 204 = nosys */
|
||||
"nosys", /* 205 = nosys */
|
||||
"nosys", /* 206 = nosys */
|
||||
"nosys", /* 207 = nosys */
|
||||
"nosys", /* 208 = nosys */
|
||||
"nosys", /* 209 = nosys */
|
||||
"nosys", /* 210 = nosys */
|
||||
"nosys", /* 211 = nosys */
|
||||
"nosys", /* 212 = nosys */
|
||||
"nosys", /* 213 = nosys */
|
||||
"nosys", /* 214 = nosys */
|
||||
"nosys", /* 215 = nosys */
|
||||
"nosys", /* 216 = nosys */
|
||||
"nosys", /* 217 = nosys */
|
||||
"nosys", /* 218 = nosys */
|
||||
"nosys", /* 219 = nosys */
|
||||
"nosys", /* 220 = nosys */
|
||||
"nosys", /* 221 = nosys */
|
||||
"nosys", /* 222 = nosys */
|
||||
"nosys", /* 223 = nosys */
|
||||
"nosys", /* 224 = nosys */
|
||||
"pathconf", /* 225 = pathconf */
|
||||
"fpathconf", /* 226 = fpathconf */
|
||||
"nosys", /* 227 = nosys */
|
||||
"nosys", /* 228 = nosys */
|
||||
"async_daemon", /* 229 = async_daemon */
|
||||
"nfs_fcntl", /* 230 = nfs_fcntl */
|
||||
"m68020_advise", /* 167 = m68020_advise */
|
||||
"nsp_init", /* 168 = nsp_init (unimplemented) */
|
||||
"cluster", /* 169 = cluster (unimplemented) */
|
||||
"mkrnod", /* 170 = mkrnod (unimplemented) */
|
||||
"#171", /* 171 = nosys */
|
||||
"unsp_open", /* 172 = unsp_open (unimplemented) */
|
||||
"#173", /* 173 = nosys */
|
||||
"getcontext", /* 174 = getcontext */
|
||||
"#175", /* 175 = nosys */
|
||||
"#176", /* 176 = nosys */
|
||||
"#177", /* 177 = nosys */
|
||||
"lsync", /* 178 = lsync (unimplemented) */
|
||||
"#179", /* 179 = nosys */
|
||||
"mysite", /* 180 = mysite (unimplemented) */
|
||||
"sitels", /* 181 = sitels (unimplemented) */
|
||||
"#182", /* 182 = nosys */
|
||||
"#183", /* 183 = nosys */
|
||||
"dskless_stats", /* 184 = dskless_stats (unimplemented) */
|
||||
"#185", /* 185 = nosys */
|
||||
"setacl", /* 186 = setacl (unimplemented) */
|
||||
"fsetacl", /* 187 = fsetacl (unimplemented) */
|
||||
"getacl", /* 188 = getacl (unimplemented) */
|
||||
"fgetacl", /* 189 = fgetacl (unimplemented) */
|
||||
"getaccess", /* 190 = getaccess */
|
||||
"getaudid", /* 191 = getaudid (unimplemented) */
|
||||
"setaudid", /* 192 = setaudid (unimplemented) */
|
||||
"getaudproc", /* 193 = getaudproc (unimplemented) */
|
||||
"setaudproc", /* 194 = setaudproc (unimplemented) */
|
||||
"getevent", /* 195 = getevent (unimplemented) */
|
||||
"setevent", /* 196 = setevent (unimplemented) */
|
||||
"audwrite", /* 197 = audwrite (unimplemented) */
|
||||
"audswitch", /* 198 = audswitch (unimplemented) */
|
||||
"audctl", /* 199 = audctl (unimplemented) */
|
||||
"waitpid", /* 200 = waitpid */
|
||||
"#201", /* 201 = nosys */
|
||||
"#202", /* 202 = nosys */
|
||||
"#203", /* 203 = nosys */
|
||||
"#204", /* 204 = nosys */
|
||||
"#205", /* 205 = nosys */
|
||||
"#206", /* 206 = nosys */
|
||||
"#207", /* 207 = nosys */
|
||||
"#208", /* 208 = nosys */
|
||||
"#209", /* 209 = nosys */
|
||||
"#210", /* 210 = nosys */
|
||||
"#211", /* 211 = nosys */
|
||||
"#212", /* 212 = nosys */
|
||||
"#213", /* 213 = nosys */
|
||||
"#214", /* 214 = nosys */
|
||||
"#215", /* 215 = nosys */
|
||||
"#216", /* 216 = nosys */
|
||||
"#217", /* 217 = nosys */
|
||||
"#218", /* 218 = nosys */
|
||||
"#219", /* 219 = nosys */
|
||||
"#220", /* 220 = nosys */
|
||||
"#221", /* 221 = nosys */
|
||||
"#222", /* 222 = nosys */
|
||||
"#223", /* 223 = nosys */
|
||||
"#224", /* 224 = nosys */
|
||||
"pathconf", /* 225 = pathconf (unimplemented) */
|
||||
"fpathconf", /* 226 = fpathconf (unimplemented) */
|
||||
"#227", /* 227 = nosys */
|
||||
"#228", /* 228 = nosys */
|
||||
"async_daemon", /* 229 = async_daemon (unimplemented) */
|
||||
"nfs_fcntl", /* 230 = nfs_fcntl (unimplemented) */
|
||||
"getdirentries", /* 231 = getdirentries */
|
||||
"ogetdomainname", /* 232 = ogetdomainname */
|
||||
"nfs_getfh", /* 233 = nfs_getfh */
|
||||
"vfsmount", /* 234 = vfsmount */
|
||||
"nfs_svc", /* 235 = nfs_svc */
|
||||
"osetdomainname", /* 236 = osetdomainname */
|
||||
"statfs", /* 237 = statfs */
|
||||
"fstatfs", /* 238 = fstatfs */
|
||||
"hpux_sigaction", /* 239 = hpux_sigaction */
|
||||
"hpux_sigprocmask", /* 240 = hpux_sigprocmask */
|
||||
"hpux_sigpending", /* 241 = hpux_sigpending */
|
||||
"hpux_sigsuspend", /* 242 = hpux_sigsuspend */
|
||||
"old.getdomainname", /* 232 = old getdomainname */
|
||||
"nfs_getfh", /* 233 = nfs_getfh (unimplemented) */
|
||||
"vfsmount", /* 234 = vfsmount (unimplemented) */
|
||||
"nfs_svc", /* 235 = nfs_svc (unimplemented) */
|
||||
"old.setdomainname", /* 236 = old setdomainname */
|
||||
"statfs", /* 237 = statfs (unimplemented) */
|
||||
"fstatfs", /* 238 = fstatfs (unimplemented) */
|
||||
"sigaction", /* 239 = sigaction */
|
||||
"sigprocmask", /* 240 = sigprocmask */
|
||||
"sigpending", /* 241 = sigpending */
|
||||
"sigsuspend", /* 242 = sigsuspend */
|
||||
"fsctl", /* 243 = fsctl (unimplemented) */
|
||||
"#244", /* 244 = nosys */
|
||||
"pstat", /* 245 = pstat (unimplemented) */
|
||||
"#246", /* 246 = nosys */
|
||||
"#247", /* 247 = nosys */
|
||||
"#248", /* 248 = nosys */
|
||||
"#249", /* 249 = nosys */
|
||||
"#250", /* 250 = nosys */
|
||||
"#251", /* 251 = nosys */
|
||||
"#252", /* 252 = nosys */
|
||||
"#253", /* 253 = nosys */
|
||||
"#254", /* 254 = nosys */
|
||||
"#255", /* 255 = nosys */
|
||||
"#256", /* 256 = nosys */
|
||||
"#257", /* 257 = nosys */
|
||||
"#258", /* 258 = nosys */
|
||||
"#259", /* 259 = nosys */
|
||||
"#260", /* 260 = nosys */
|
||||
"#261", /* 261 = nosys */
|
||||
"#262", /* 262 = nosys */
|
||||
"#263", /* 263 = nosys */
|
||||
"#264", /* 264 = nosys */
|
||||
"#265", /* 265 = nosys */
|
||||
"#266", /* 266 = nosys */
|
||||
"#267", /* 267 = nosys */
|
||||
"getnumfds", /* 268 = getnumfds */
|
||||
"#269", /* 269 = nosys */
|
||||
"#270", /* 270 = nosys */
|
||||
"#271", /* 271 = nosys */
|
||||
"fchdir", /* 272 = fchdir */
|
||||
"#273", /* 273 = nosys */
|
||||
"#274", /* 274 = nosys */
|
||||
"old.accept", /* 275 = old accept */
|
||||
"bind", /* 276 = bind */
|
||||
"connect", /* 277 = connect */
|
||||
"old.getpeername", /* 278 = old getpeername */
|
||||
"old.getsockname", /* 279 = old getsockname */
|
||||
"getsockopt", /* 280 = getsockopt */
|
||||
"listen", /* 281 = listen */
|
||||
"old.recv", /* 282 = old recv */
|
||||
"old.recvfrom", /* 283 = old recvfrom */
|
||||
"old.recvmsg", /* 284 = old recvmsg */
|
||||
"old.send", /* 285 = old send */
|
||||
"old.sendmsg", /* 286 = old sendmsg */
|
||||
"sendto", /* 287 = sendto */
|
||||
"setsockopt2", /* 288 = setsockopt2 */
|
||||
"shutdown", /* 289 = shutdown */
|
||||
"socket", /* 290 = socket */
|
||||
"socketpair", /* 291 = socketpair */
|
||||
"#292", /* 292 = nosys */
|
||||
"#293", /* 293 = nosys */
|
||||
"#294", /* 294 = nosys */
|
||||
"#295", /* 295 = nosys */
|
||||
"#296", /* 296 = nosys */
|
||||
"#297", /* 297 = nosys */
|
||||
"#298", /* 298 = nosys */
|
||||
"#299", /* 299 = nosys */
|
||||
"#300", /* 300 = nosys */
|
||||
"#301", /* 301 = nosys */
|
||||
"#302", /* 302 = nosys */
|
||||
"#303", /* 303 = nosys */
|
||||
"#304", /* 304 = nosys */
|
||||
"#305", /* 305 = nosys */
|
||||
"#306", /* 306 = nosys */
|
||||
"#307", /* 307 = nosys */
|
||||
"#308", /* 308 = nosys */
|
||||
"#309", /* 309 = nosys */
|
||||
"#310", /* 310 = nosys */
|
||||
"#311", /* 311 = nosys */
|
||||
#ifdef SYSVSHM
|
||||
"nsemctl", /* 312 = nsemctl */
|
||||
#else
|
||||
"nsemctl", /* 312 = nsemctl (unimplemented) */
|
||||
#endif
|
||||
#ifdef SYSVMSG
|
||||
"nmsgctl", /* 313 = nmsgctl */
|
||||
#else
|
||||
"nmsgctl", /* 313 = nmsgctl (unimplemented) */
|
||||
#endif
|
||||
#ifdef SYSVSHM
|
||||
"nshmctl", /* 314 = nshmctl */
|
||||
#else
|
||||
"nshmctl", /* 314 = nshmctl (unimplemented) */
|
||||
#endif
|
||||
};
|
||||
|
|
|
@ -2,23 +2,22 @@
|
|||
* System call switch table.
|
||||
*
|
||||
* DO NOT EDIT-- this file is automatically generated.
|
||||
* created from $Id: hpux_sysent.c,v 1.5 1994/05/17 10:37:18 cgd Exp $
|
||||
* created from: syscalls.master,v 1.3 1994/05/23 08:03:32
|
||||
*/
|
||||
|
||||
#include <sys/param.h>
|
||||
#include <sys/systm.h>
|
||||
|
||||
int nosys();
|
||||
int nosys(),notimp();
|
||||
|
||||
int nosys();
|
||||
int exit();
|
||||
int fork();
|
||||
int hpux_fork();
|
||||
int hpux_read();
|
||||
int hpux_write();
|
||||
int hpux_open();
|
||||
int close();
|
||||
int hpux_wait();
|
||||
int ocreat();
|
||||
int hpux_creat();
|
||||
int link();
|
||||
int unlink();
|
||||
int hpux_execv();
|
||||
|
@ -27,10 +26,8 @@ int mknod();
|
|||
int chmod();
|
||||
int chown();
|
||||
int obreak();
|
||||
int lseek();
|
||||
int olseek();
|
||||
int getpid();
|
||||
int notimp();
|
||||
int notimp();
|
||||
int setuid();
|
||||
int getuid();
|
||||
int hpux_ptrace();
|
||||
|
@ -42,12 +39,9 @@ int hpux_lstat();
|
|||
int hpux_dup();
|
||||
int pipe();
|
||||
int profil();
|
||||
int notimp();
|
||||
int setgid();
|
||||
int getgid();
|
||||
int notimp();
|
||||
int hpux_ioctl();
|
||||
int notimp();
|
||||
int symlink();
|
||||
int hpux_utssys();
|
||||
int readlink();
|
||||
|
@ -56,96 +50,41 @@ int umask();
|
|||
int chroot();
|
||||
int hpux_fcntl();
|
||||
int hpux_ulimit();
|
||||
int nosys();
|
||||
int nosys();
|
||||
int vfork();
|
||||
int hpux_vfork();
|
||||
int hpux_read();
|
||||
int hpux_write();
|
||||
int nosys();
|
||||
int nosys();
|
||||
int nosys();
|
||||
int nosys();
|
||||
int nosys();
|
||||
int notimp();
|
||||
int nosys();
|
||||
int nosys();
|
||||
int nosys();
|
||||
int nosys();
|
||||
int hpux_mmap();
|
||||
int munmap();
|
||||
int getgroups();
|
||||
int setgroups();
|
||||
int hpux_getpgrp2();
|
||||
int hpux_setpgrp2();
|
||||
int setitimer();
|
||||
int hpux_wait3();
|
||||
int notimp();
|
||||
int getitimer();
|
||||
int nosys();
|
||||
int nosys();
|
||||
int nosys();
|
||||
int dup2();
|
||||
int nosys();
|
||||
int hpux_fstat();
|
||||
int select();
|
||||
int nosys();
|
||||
int fsync();
|
||||
int nosys();
|
||||
int nosys();
|
||||
int nosys();
|
||||
int nosys();
|
||||
int nosys();
|
||||
int nosys();
|
||||
int nosys();
|
||||
int sigreturn();
|
||||
int nosys();
|
||||
int nosys();
|
||||
int nosys();
|
||||
int nosys();
|
||||
int hpux_sigvec();
|
||||
int hpux_sigblock();
|
||||
int hpux_sigsetmask();
|
||||
int hpux_sigpause();
|
||||
int osigstack();
|
||||
int nosys();
|
||||
int nosys();
|
||||
int nosys();
|
||||
int gettimeofday();
|
||||
int nosys();
|
||||
int nosys();
|
||||
int notimp();
|
||||
int hpux_readv();
|
||||
int hpux_writev();
|
||||
int settimeofday();
|
||||
int fchown();
|
||||
int fchmod();
|
||||
int nosys();
|
||||
int hpux_setresuid();
|
||||
int hpux_setresgid();
|
||||
int rename();
|
||||
int truncate();
|
||||
int ftruncate();
|
||||
int nosys();
|
||||
int notimp();
|
||||
int nosys();
|
||||
int nosys();
|
||||
int nosys();
|
||||
int hpux_sysconf();
|
||||
int mkdir();
|
||||
int rmdir();
|
||||
int nosys();
|
||||
int sigreturn();
|
||||
int nosys();
|
||||
int nosys();
|
||||
int nosys();
|
||||
int nosys();
|
||||
int nosys();
|
||||
int nosys();
|
||||
int nosys();
|
||||
int nosys();
|
||||
int nosys();
|
||||
int nosys();
|
||||
int nosys();
|
||||
int notimp();
|
||||
int hpux_rtprio();
|
||||
int notimp();
|
||||
int hpux_netioctl();
|
||||
int hpux_lockf();
|
||||
#ifdef SYSVSEM
|
||||
|
@ -153,9 +92,6 @@ int semget();
|
|||
int semctl();
|
||||
int semop();
|
||||
#else
|
||||
int notimp();
|
||||
int notimp();
|
||||
int notimp();
|
||||
#endif
|
||||
#ifdef SYSVMSG
|
||||
int msgget();
|
||||
|
@ -163,100 +99,48 @@ int msgctl();
|
|||
int msgsnd();
|
||||
int msgrcv();
|
||||
#else
|
||||
int notimp();
|
||||
int notimp();
|
||||
int notimp();
|
||||
int notimp();
|
||||
#endif
|
||||
#ifdef SYSVSHM
|
||||
int shmget();
|
||||
int shmctl();
|
||||
int hpux_shmctl();
|
||||
int shmat();
|
||||
int shmdt();
|
||||
#else
|
||||
int notimp();
|
||||
int notimp();
|
||||
int notimp();
|
||||
int notimp();
|
||||
#endif
|
||||
int hpux_advise();
|
||||
int notimp();
|
||||
int notimp();
|
||||
int notimp();
|
||||
int nosys();
|
||||
int notimp();
|
||||
int nosys();
|
||||
int hpux_getcontext();
|
||||
int nosys();
|
||||
int nosys();
|
||||
int nosys();
|
||||
int notimp();
|
||||
int nosys();
|
||||
int notimp();
|
||||
int notimp();
|
||||
int nosys();
|
||||
int nosys();
|
||||
int nosys();
|
||||
int nosys();
|
||||
int notimp();
|
||||
int notimp();
|
||||
int notimp();
|
||||
int notimp();
|
||||
int hpux_getaccess();
|
||||
int notimp();
|
||||
int notimp();
|
||||
int notimp();
|
||||
int notimp();
|
||||
int notimp();
|
||||
int notimp();
|
||||
int notimp();
|
||||
int notimp();
|
||||
int notimp();
|
||||
int hpux_waitpid();
|
||||
int nosys();
|
||||
int notimp();
|
||||
int nosys();
|
||||
int nosys();
|
||||
int nosys();
|
||||
int nosys();
|
||||
int nosys();
|
||||
int nosys();
|
||||
int nosys();
|
||||
int nosys();
|
||||
int nosys();
|
||||
int nosys();
|
||||
int nosys();
|
||||
int nosys();
|
||||
int nosys();
|
||||
int nosys();
|
||||
int nosys();
|
||||
int nosys();
|
||||
int nosys();
|
||||
int nosys();
|
||||
int nosys();
|
||||
int nosys();
|
||||
int nosys();
|
||||
int nosys();
|
||||
int notimp();
|
||||
int notimp();
|
||||
int nosys();
|
||||
int nosys();
|
||||
int notimp();
|
||||
int notimp();
|
||||
int getdirentries();
|
||||
int ogetdomainname();
|
||||
int notimp();
|
||||
int notimp();
|
||||
int notimp();
|
||||
int osetdomainname();
|
||||
int notimp();
|
||||
int notimp();
|
||||
int hpux_sigaction();
|
||||
int hpux_sigprocmask();
|
||||
int hpux_sigpending();
|
||||
int hpux_sigsuspend();
|
||||
int getdtablesize();
|
||||
int fchdir();
|
||||
int bind();
|
||||
int connect();
|
||||
int getsockopt();
|
||||
int listen();
|
||||
int sendto();
|
||||
int hpux_setsockopt2();
|
||||
int shutdown();
|
||||
int socket();
|
||||
int socketpair();
|
||||
#ifdef SYSVSHM
|
||||
int semctl();
|
||||
#else
|
||||
#endif
|
||||
#ifdef SYSVMSG
|
||||
int msgctl();
|
||||
#else
|
||||
#endif
|
||||
#ifdef SYSVSHM
|
||||
int hpux_nshmctl();
|
||||
#else
|
||||
#endif
|
||||
|
||||
#ifdef XXX_UNUSED
|
||||
#ifdef COMPAT_OHPUX
|
||||
#define compat(n, name) n, __CONCAT(o,name)
|
||||
|
||||
int ohpux_time();
|
||||
|
@ -273,6 +157,10 @@ int ohpux_ftime();
|
|||
int ohpux_setpgrp();
|
||||
int ohpux_times();
|
||||
int ohpux_ssig();
|
||||
int otruncate();
|
||||
int oftruncate();
|
||||
int ogetrlimit();
|
||||
int osetrlimit();
|
||||
#ifdef SYSVSEM
|
||||
#else
|
||||
#endif
|
||||
|
@ -282,124 +170,143 @@ int ohpux_ssig();
|
|||
#ifdef SYSVSHM
|
||||
#else
|
||||
#endif
|
||||
int ogetdomainname();
|
||||
int osetdomainname();
|
||||
int oaccept();
|
||||
int ogetpeername();
|
||||
int ogetsockname();
|
||||
int orecv();
|
||||
int orecvfrom();
|
||||
int orecvmsg();
|
||||
int osend();
|
||||
int osendmsg();
|
||||
#ifdef SYSVSHM
|
||||
#else
|
||||
#endif
|
||||
#ifdef SYSVMSG
|
||||
#else
|
||||
#endif
|
||||
#ifdef SYSVSHM
|
||||
#else
|
||||
#endif
|
||||
|
||||
#else /* XXX_UNUSED */
|
||||
#else /* COMPAT_OHPUX */
|
||||
#define compat(n, name) 0, nosys
|
||||
#endif /* XXX_UNUSED */
|
||||
#endif /* COMPAT_OHPUX */
|
||||
|
||||
struct sysent hpux_sysent[] = {
|
||||
{ 0, nosys }, /* 0 = nosys */
|
||||
{ 0, nosys }, /* 0 = indir or out-of-range */
|
||||
{ 1, exit }, /* 1 = exit */
|
||||
{ 0, fork }, /* 2 = fork */
|
||||
{ 3, hpux_read }, /* 3 = hpux_read */
|
||||
{ 3, hpux_write }, /* 4 = hpux_write */
|
||||
{ 3, hpux_open }, /* 5 = hpux_open */
|
||||
{ 0, hpux_fork }, /* 2 = fork */
|
||||
{ 3, hpux_read }, /* 3 = read */
|
||||
{ 3, hpux_write }, /* 4 = write */
|
||||
{ 3, hpux_open }, /* 5 = open */
|
||||
{ 1, close }, /* 6 = close */
|
||||
{ 1, hpux_wait }, /* 7 = hpux_wait */
|
||||
{ 2, ocreat }, /* 8 = creat */
|
||||
{ 1, hpux_wait }, /* 7 = owait */
|
||||
{ 2, hpux_creat }, /* 8 = ocreat */
|
||||
{ 2, link }, /* 9 = link */
|
||||
{ 1, unlink }, /* 10 = unlink */
|
||||
{ 2, hpux_execv }, /* 11 = execv */
|
||||
{ 1, chdir }, /* 12 = chdir */
|
||||
{ compat(1,hpux_time) }, /* 13 = old hpux_time */
|
||||
{ compat(1,hpux_time) }, /* 13 = old time */
|
||||
{ 3, mknod }, /* 14 = mknod */
|
||||
{ 2, chmod }, /* 15 = chmod */
|
||||
{ 3, chown }, /* 16 = chown */
|
||||
{ 1, obreak }, /* 17 = break */
|
||||
{ compat(2,hpux_stat) }, /* 18 = old hpux_stat */
|
||||
{ 3, lseek }, /* 19 = lseek */
|
||||
{ compat(2,hpux_stat) }, /* 18 = old stat */
|
||||
{ 3, olseek }, /* 19 = olseek */
|
||||
{ 0, getpid }, /* 20 = getpid */
|
||||
{ 3, notimp }, /* 21 = mount */
|
||||
{ 1, notimp }, /* 22 = umount */
|
||||
{ 3, notimp }, /* 21 = mount (unimplemented) */
|
||||
{ 1, notimp }, /* 22 = umount (unimplemented) */
|
||||
{ 1, setuid }, /* 23 = setuid */
|
||||
{ 0, getuid }, /* 24 = getuid */
|
||||
{ compat(1,hpux_stime) }, /* 25 = old hpux_stime */
|
||||
{ 4, hpux_ptrace }, /* 26 = hpux_ptrace */
|
||||
{ compat(1,hpux_alarm) }, /* 27 = old hpux_alarm */
|
||||
{ compat(2,hpux_fstat) }, /* 28 = old hpux_fstat */
|
||||
{ compat(0,hpux_pause) }, /* 29 = old hpux_pause */
|
||||
{ compat(2,hpux_utime) }, /* 30 = old hpux_utime */
|
||||
{ compat(2,hpux_stty) }, /* 31 = old hpux_stty */
|
||||
{ compat(2,hpux_gtty) }, /* 32 = old hpux_gtty */
|
||||
{ compat(1,hpux_stime) }, /* 25 = old stime */
|
||||
{ 4, hpux_ptrace }, /* 26 = ptrace */
|
||||
{ compat(1,hpux_alarm) }, /* 27 = old alarm */
|
||||
{ compat(2,hpux_fstat) }, /* 28 = old fstat */
|
||||
{ compat(0,hpux_pause) }, /* 29 = old pause */
|
||||
{ compat(2,hpux_utime) }, /* 30 = old utime */
|
||||
{ compat(2,hpux_stty) }, /* 31 = old stty */
|
||||
{ compat(2,hpux_gtty) }, /* 32 = old gtty */
|
||||
{ 2, access }, /* 33 = access */
|
||||
{ compat(1,hpux_nice) }, /* 34 = old hpux_nice */
|
||||
{ compat(1,hpux_ftime) }, /* 35 = old hpux_ftime */
|
||||
{ compat(1,hpux_nice) }, /* 34 = old nice */
|
||||
{ compat(1,hpux_ftime) }, /* 35 = old ftime */
|
||||
{ 0, sync }, /* 36 = sync */
|
||||
{ 2, hpux_kill }, /* 37 = hpux_kill */
|
||||
{ 2, hpux_stat }, /* 38 = hpux_stat */
|
||||
{ compat(1,hpux_setpgrp) }, /* 39 = old hpux_setpgrp */
|
||||
{ 2, hpux_lstat }, /* 40 = hpux_lstat */
|
||||
{ 1, hpux_dup }, /* 41 = hpux_dup */
|
||||
{ 2, hpux_kill }, /* 37 = kill */
|
||||
{ 2, hpux_stat }, /* 38 = stat */
|
||||
{ compat(1,hpux_setpgrp) }, /* 39 = old setpgrp */
|
||||
{ 2, hpux_lstat }, /* 40 = lstat */
|
||||
{ 1, hpux_dup }, /* 41 = dup */
|
||||
{ 0, pipe }, /* 42 = pipe */
|
||||
{ compat(1,hpux_times) }, /* 43 = old hpux_times */
|
||||
{ compat(1,hpux_times) }, /* 43 = old times */
|
||||
{ 4, profil }, /* 44 = profil */
|
||||
{ 4, notimp }, /* 45 = ki_syscall */
|
||||
{ 4, notimp }, /* 45 = ki_syscall (unimplemented) */
|
||||
{ 1, setgid }, /* 46 = setgid */
|
||||
{ 0, getgid }, /* 47 = getgid */
|
||||
{ compat(2,hpux_ssig) }, /* 48 = old hpux_ssig */
|
||||
{ 0, nosys }, /* 49 = reserved */
|
||||
{ 0, nosys }, /* 50 = reserved */
|
||||
{ 1, notimp }, /* 51 = acct */
|
||||
{ 0, nosys }, /* 52 = old set phys addr */
|
||||
{ 0, nosys }, /* 53 = old lock in core */
|
||||
{ 3, hpux_ioctl }, /* 54 = hpux_ioctl */
|
||||
{ 4, notimp }, /* 55 = reboot */
|
||||
{ compat(2,hpux_ssig) }, /* 48 = old ssig */
|
||||
{ 0, nosys }, /* 49 = reserved for USG */
|
||||
{ 0, nosys }, /* 50 = reserved for USG */
|
||||
{ 1, notimp }, /* 51 = acct (unimplemented) */
|
||||
{ 0, nosys }, /* 52 = nosys */
|
||||
{ 0, nosys }, /* 53 = nosys */
|
||||
{ 3, hpux_ioctl }, /* 54 = ioctl */
|
||||
{ 4, notimp }, /* 55 = reboot (unimplemented) */
|
||||
{ 2, symlink }, /* 56 = symlink */
|
||||
{ 3, hpux_utssys }, /* 57 = hpux_utssys */
|
||||
{ 3, hpux_utssys }, /* 57 = utssys */
|
||||
{ 3, readlink }, /* 58 = readlink */
|
||||
{ 3, execve }, /* 59 = execve */
|
||||
{ 1, umask }, /* 60 = umask */
|
||||
{ 1, chroot }, /* 61 = chroot */
|
||||
{ 3, hpux_fcntl }, /* 62 = hpux_fcntl */
|
||||
{ 2, hpux_ulimit }, /* 63 = hpux_ulimit */
|
||||
{ 3, hpux_fcntl }, /* 62 = fcntl */
|
||||
{ 2, hpux_ulimit }, /* 63 = ulimit */
|
||||
{ 0, nosys }, /* 64 = nosys */
|
||||
{ 0, nosys }, /* 65 = nosys */
|
||||
{ 0, vfork }, /* 66 = vfork */
|
||||
{ 0, hpux_read }, /* 67 = hpux_read */
|
||||
{ 0, hpux_write }, /* 68 = hpux_write */
|
||||
{ 0, hpux_vfork }, /* 66 = vfork */
|
||||
{ 0, hpux_read }, /* 67 = vread */
|
||||
{ 0, hpux_write }, /* 68 = vwrite */
|
||||
{ 0, nosys }, /* 69 = nosys */
|
||||
{ 0, nosys }, /* 70 = nosys */
|
||||
{ 0, nosys }, /* 71 = nosys */
|
||||
{ 6, hpux_mmap }, /* 71 = mmap */
|
||||
{ 0, nosys }, /* 72 = nosys */
|
||||
{ 0, nosys }, /* 73 = nosys */
|
||||
{ 3, notimp }, /* 74 = mprotect */
|
||||
{ 2, munmap }, /* 73 = munmap */
|
||||
{ 3, notimp }, /* 74 = mprotect (unimplemented) */
|
||||
{ 0, nosys }, /* 75 = nosys */
|
||||
{ 0, nosys }, /* 76 = nosys */
|
||||
{ 0, nosys }, /* 77 = nosys */
|
||||
{ 0, nosys }, /* 78 = nosys */
|
||||
{ 2, getgroups }, /* 79 = getgroups */
|
||||
{ 2, setgroups }, /* 80 = setgroups */
|
||||
{ 1, hpux_getpgrp2 }, /* 81 = hpux_getpgrp2 */
|
||||
{ 2, hpux_setpgrp2 }, /* 82 = hpux_setpgrp2 */
|
||||
{ 1, hpux_getpgrp2 }, /* 81 = getpgrp2 */
|
||||
{ 2, hpux_setpgrp2 }, /* 82 = setpgrp2 */
|
||||
{ 3, setitimer }, /* 83 = setitimer */
|
||||
{ 3, hpux_wait3 }, /* 84 = hpux_wait3 */
|
||||
{ 1, notimp }, /* 85 = swapon */
|
||||
{ 3, hpux_wait3 }, /* 84 = wait3 */
|
||||
{ 5, notimp }, /* 85 = swapon (unimplemented) */
|
||||
{ 2, getitimer }, /* 86 = getitimer */
|
||||
{ 0, nosys }, /* 87 = nosys */
|
||||
{ 0, nosys }, /* 88 = nosys */
|
||||
{ 0, nosys }, /* 89 = nosys */
|
||||
{ 2, dup2 }, /* 90 = dup2 */
|
||||
{ 2, nosys }, /* 91 = nosys */
|
||||
{ 2, hpux_fstat }, /* 92 = hpux_fstat */
|
||||
{ 0, nosys }, /* 91 = nosys */
|
||||
{ 2, hpux_fstat }, /* 92 = fstat */
|
||||
{ 5, select }, /* 93 = select */
|
||||
{ 0, nosys }, /* 94 = nosys */
|
||||
{ 1, fsync }, /* 95 = fsync */
|
||||
{ 0, nosys }, /* 96 = nosys */
|
||||
{ 3, nosys }, /* 97 = nosys */
|
||||
{ 2, nosys }, /* 98 = nosys */
|
||||
{ 2, nosys }, /* 99 = nosys */
|
||||
{ 0, nosys }, /* 97 = nosys */
|
||||
{ 0, nosys }, /* 98 = nosys */
|
||||
{ 0, nosys }, /* 99 = nosys */
|
||||
{ 0, nosys }, /* 100 = nosys */
|
||||
{ 0, nosys }, /* 101 = nosys */
|
||||
{ 0, nosys }, /* 102 = nosys */
|
||||
{ 1, sigreturn }, /* 103 = sigreturn */
|
||||
{ 2, nosys }, /* 104 = nosys */
|
||||
{ 0, nosys }, /* 104 = nosys */
|
||||
{ 0, nosys }, /* 105 = nosys */
|
||||
{ 0, nosys }, /* 106 = nosys */
|
||||
{ 0, nosys }, /* 107 = nosys */
|
||||
{ 3, hpux_sigvec }, /* 108 = hpux_sigvec */
|
||||
{ 1, hpux_sigblock }, /* 109 = hpux_sigblock */
|
||||
{ 1, hpux_sigsetmask }, /* 110 = hpux_sigsetmask */
|
||||
{ 1, hpux_sigpause }, /* 111 = hpux_sigpause */
|
||||
{ 3, hpux_sigvec }, /* 108 = sigvec */
|
||||
{ 1, hpux_sigblock }, /* 109 = sigblock */
|
||||
{ 1, hpux_sigsetmask }, /* 110 = sigsetmask */
|
||||
{ 1, hpux_sigpause }, /* 111 = sigpause */
|
||||
{ 2, osigstack }, /* 112 = osigstack */
|
||||
{ 0, nosys }, /* 113 = nosys */
|
||||
{ 0, nosys }, /* 114 = nosys */
|
||||
|
@ -407,51 +314,51 @@ struct sysent hpux_sysent[] = {
|
|||
{ 2, gettimeofday }, /* 116 = gettimeofday */
|
||||
{ 0, nosys }, /* 117 = nosys */
|
||||
{ 0, nosys }, /* 118 = nosys */
|
||||
{ 3, notimp }, /* 119 = hpib_io_stub */
|
||||
{ 3, hpux_readv }, /* 120 = hpux_readv */
|
||||
{ 3, hpux_writev }, /* 121 = hpux_writev */
|
||||
{ 3, notimp }, /* 119 = hpib_io_stub (unimplemented) */
|
||||
{ 3, hpux_readv }, /* 120 = readv */
|
||||
{ 3, hpux_writev }, /* 121 = writev */
|
||||
{ 2, settimeofday }, /* 122 = settimeofday */
|
||||
{ 3, fchown }, /* 123 = fchown */
|
||||
{ 2, fchmod }, /* 124 = fchmod */
|
||||
{ 0, nosys }, /* 125 = nosys */
|
||||
{ 3, hpux_setresuid }, /* 126 = hpux_setresuid */
|
||||
{ 3, hpux_setresgid }, /* 127 = hpux_setresgid */
|
||||
{ 3, hpux_setresuid }, /* 126 = setresuid */
|
||||
{ 3, hpux_setresgid }, /* 127 = setresgid */
|
||||
{ 2, rename }, /* 128 = rename */
|
||||
{ 2, truncate }, /* 129 = truncate */
|
||||
{ 2, ftruncate }, /* 130 = ftruncate */
|
||||
{ compat(2,truncate) }, /* 129 = old truncate */
|
||||
{ compat(2,ftruncate) }, /* 130 = old ftruncate */
|
||||
{ 0, nosys }, /* 131 = nosys */
|
||||
{ 1, notimp }, /* 132 = sysconf */
|
||||
{ 1, hpux_sysconf }, /* 132 = sysconf */
|
||||
{ 0, nosys }, /* 133 = nosys */
|
||||
{ 0, nosys }, /* 134 = nosys */
|
||||
{ 0, nosys }, /* 135 = nosys */
|
||||
{ 2, mkdir }, /* 136 = mkdir */
|
||||
{ 1, rmdir }, /* 137 = rmdir */
|
||||
{ 0, nosys }, /* 138 = nosys */
|
||||
{ 0, sigreturn }, /* 139 = sigreturn */
|
||||
{ 0, nosys }, /* 139 = nosys */
|
||||
{ 0, nosys }, /* 140 = nosys */
|
||||
{ 0, nosys }, /* 141 = nosys */
|
||||
{ 0, nosys }, /* 142 = nosys */
|
||||
{ 0, nosys }, /* 143 = nosys */
|
||||
{ 0, nosys }, /* 144 = nosys */
|
||||
{ 0, nosys }, /* 145 = nosys */
|
||||
{ compat(2,getrlimit) }, /* 144 = old getrlimit */
|
||||
{ compat(2,setrlimit) }, /* 145 = old setrlimit */
|
||||
{ 0, nosys }, /* 146 = nosys */
|
||||
{ 0, nosys }, /* 147 = nosys */
|
||||
{ 0, nosys }, /* 148 = nosys */
|
||||
{ 0, nosys }, /* 149 = nosys */
|
||||
{ 0, nosys }, /* 150 = nosys */
|
||||
{ 3, notimp }, /* 151 = privgrp */
|
||||
{ 3, notimp }, /* 151 = privgrp (unimplemented) */
|
||||
{ 2, hpux_rtprio }, /* 152 = rtprio */
|
||||
{ 1, notimp }, /* 153 = plock */
|
||||
{ 2, hpux_netioctl }, /* 154 = hpux_netioctl */
|
||||
{ 4, hpux_lockf }, /* 155 = hpux_lockf */
|
||||
{ 1, notimp }, /* 153 = plock (unimplemented) */
|
||||
{ 2, hpux_netioctl }, /* 154 = netioctl */
|
||||
{ 4, hpux_lockf }, /* 155 = lockf */
|
||||
#ifdef SYSVSEM
|
||||
{ 3, semget }, /* 156 = semget */
|
||||
{ 4, semctl }, /* 157 = semctl */
|
||||
{ 3, semop }, /* 158 = semop */
|
||||
#else
|
||||
{ 3, notimp }, /* 156 = semget */
|
||||
{ 4, notimp }, /* 157 = semctl */
|
||||
{ 3, notimp }, /* 158 = semop */
|
||||
{ 3, notimp }, /* 156 = semget (unimplemented) */
|
||||
{ 4, notimp }, /* 157 = semctl (unimplemented) */
|
||||
{ 3, notimp }, /* 158 = semop (unimplemented) */
|
||||
#endif
|
||||
#ifdef SYSVMSG
|
||||
{ 2, msgget }, /* 159 = msgget */
|
||||
|
@ -459,66 +366,66 @@ struct sysent hpux_sysent[] = {
|
|||
{ 4, msgsnd }, /* 161 = msgsnd */
|
||||
{ 5, msgrcv }, /* 162 = msgrcv */
|
||||
#else
|
||||
{ 2, notimp }, /* 159 = msgget */
|
||||
{ 3, notimp }, /* 160 = msgctl */
|
||||
{ 4, notimp }, /* 161 = msgsnd */
|
||||
{ 5, notimp }, /* 162 = msgrcv */
|
||||
{ 2, notimp }, /* 159 = msgget (unimplemented) */
|
||||
{ 3, notimp }, /* 160 = msgctl (unimplemented) */
|
||||
{ 4, notimp }, /* 161 = msgsnd (unimplemented) */
|
||||
{ 5, notimp }, /* 162 = msgrcv (unimplemented) */
|
||||
#endif
|
||||
#ifdef SYSVSHM
|
||||
{ 3, shmget }, /* 163 = shmget */
|
||||
{ 3, shmctl }, /* 164 = shmctl */
|
||||
{ 3, hpux_shmctl }, /* 164 = shmctl */
|
||||
{ 3, shmat }, /* 165 = shmat */
|
||||
{ 1, shmdt }, /* 166 = shmdt */
|
||||
#else
|
||||
{ 3, notimp }, /* 163 = shmget */
|
||||
{ 3, notimp }, /* 164 = shmctl */
|
||||
{ 3, notimp }, /* 165 = shmat */
|
||||
{ 1, notimp }, /* 166 = shmdt */
|
||||
{ 3, notimp }, /* 163 = shmget (unimplemented) */
|
||||
{ 3, notimp }, /* 164 = shmctl (unimplemented) */
|
||||
{ 3, notimp }, /* 165 = shmat (unimplemented) */
|
||||
{ 1, notimp }, /* 166 = shmdt (unimplemented) */
|
||||
#endif
|
||||
{ 1, hpux_advise }, /* 167 = hpux_advise */
|
||||
{ 0, notimp }, /* 168 = dux_notconfigured */
|
||||
{ 3, notimp }, /* 169 = cluster */
|
||||
{ 4, notimp }, /* 170 = mkrnod */
|
||||
{ 1, hpux_advise }, /* 167 = m68020_advise */
|
||||
{ 2, notimp }, /* 168 = nsp_init (unimplemented) */
|
||||
{ 3, notimp }, /* 169 = cluster (unimplemented) */
|
||||
{ 4, notimp }, /* 170 = mkrnod (unimplemented) */
|
||||
{ 0, nosys }, /* 171 = nosys */
|
||||
{ 0, notimp }, /* 172 = dux_notconfigured */
|
||||
{ 0, notimp }, /* 172 = unsp_open (unimplemented) */
|
||||
{ 0, nosys }, /* 173 = nosys */
|
||||
{ 3, hpux_getcontext }, /* 174 = hpux_getcontext */
|
||||
{ 3, hpux_getcontext }, /* 174 = getcontext */
|
||||
{ 0, nosys }, /* 175 = nosys */
|
||||
{ 0, nosys }, /* 176 = nosys */
|
||||
{ 0, nosys }, /* 177 = nosys */
|
||||
{ 0, notimp }, /* 178 = lsync */
|
||||
{ 0, notimp }, /* 178 = lsync (unimplemented) */
|
||||
{ 0, nosys }, /* 179 = nosys */
|
||||
{ 0, notimp }, /* 180 = mysite */
|
||||
{ 0, notimp }, /* 181 = returnzero */
|
||||
{ 0, notimp }, /* 180 = mysite (unimplemented) */
|
||||
{ 1, notimp }, /* 181 = sitels (unimplemented) */
|
||||
{ 0, nosys }, /* 182 = nosys */
|
||||
{ 0, nosys }, /* 183 = nosys */
|
||||
{ 0, nosys }, /* 184 = nosys */
|
||||
{ 4, notimp }, /* 184 = dskless_stats (unimplemented) */
|
||||
{ 0, nosys }, /* 185 = nosys */
|
||||
{ 3, notimp }, /* 186 = setacl */
|
||||
{ 3, notimp }, /* 187 = fsetacl */
|
||||
{ 3, notimp }, /* 188 = getacl */
|
||||
{ 3, notimp }, /* 189 = fgetacl */
|
||||
{ 6, hpux_getaccess }, /* 190 = hpux_getaccess */
|
||||
{ 0, notimp }, /* 191 = getaudid */
|
||||
{ 1, notimp }, /* 192 = setaudid */
|
||||
{ 0, notimp }, /* 193 = getaudproc */
|
||||
{ 1, notimp }, /* 194 = setaudproc */
|
||||
{ 2, notimp }, /* 195 = getevent */
|
||||
{ 2, notimp }, /* 196 = setevent */
|
||||
{ 1, notimp }, /* 197 = audwrite */
|
||||
{ 1, notimp }, /* 198 = audswitch */
|
||||
{ 4, notimp }, /* 199 = audctl */
|
||||
{ 3, hpux_waitpid }, /* 200 = hpux_waitpid */
|
||||
{ 3, notimp }, /* 186 = setacl (unimplemented) */
|
||||
{ 3, notimp }, /* 187 = fsetacl (unimplemented) */
|
||||
{ 3, notimp }, /* 188 = getacl (unimplemented) */
|
||||
{ 3, notimp }, /* 189 = fgetacl (unimplemented) */
|
||||
{ 6, hpux_getaccess }, /* 190 = getaccess */
|
||||
{ 0, notimp }, /* 191 = getaudid (unimplemented) */
|
||||
{ 1, notimp }, /* 192 = setaudid (unimplemented) */
|
||||
{ 0, notimp }, /* 193 = getaudproc (unimplemented) */
|
||||
{ 1, notimp }, /* 194 = setaudproc (unimplemented) */
|
||||
{ 2, notimp }, /* 195 = getevent (unimplemented) */
|
||||
{ 2, notimp }, /* 196 = setevent (unimplemented) */
|
||||
{ 1, notimp }, /* 197 = audwrite (unimplemented) */
|
||||
{ 1, notimp }, /* 198 = audswitch (unimplemented) */
|
||||
{ 4, notimp }, /* 199 = audctl (unimplemented) */
|
||||
{ 3, hpux_waitpid }, /* 200 = waitpid */
|
||||
{ 0, nosys }, /* 201 = nosys */
|
||||
{ 2, notimp }, /* 202 = netioctl */
|
||||
{ 6, nosys }, /* 203 = nosys */
|
||||
{ 0, nosys }, /* 202 = nosys */
|
||||
{ 0, nosys }, /* 203 = nosys */
|
||||
{ 0, nosys }, /* 204 = nosys */
|
||||
{ 0, nosys }, /* 205 = nosys */
|
||||
{ 9, nosys }, /* 206 = nosys */
|
||||
{ 0, nosys }, /* 206 = nosys */
|
||||
{ 0, nosys }, /* 207 = nosys */
|
||||
{ 0, nosys }, /* 208 = nosys */
|
||||
{ 6, nosys }, /* 209 = nosys */
|
||||
{ 5, nosys }, /* 210 = nosys */
|
||||
{ 0, nosys }, /* 209 = nosys */
|
||||
{ 0, nosys }, /* 210 = nosys */
|
||||
{ 0, nosys }, /* 211 = nosys */
|
||||
{ 0, nosys }, /* 212 = nosys */
|
||||
{ 0, nosys }, /* 213 = nosys */
|
||||
|
@ -528,29 +435,113 @@ struct sysent hpux_sysent[] = {
|
|||
{ 0, nosys }, /* 217 = nosys */
|
||||
{ 0, nosys }, /* 218 = nosys */
|
||||
{ 0, nosys }, /* 219 = nosys */
|
||||
{ 4, nosys }, /* 220 = nosys */
|
||||
{ 10, nosys }, /* 221 = nosys */
|
||||
{ 0, nosys }, /* 220 = nosys */
|
||||
{ 0, nosys }, /* 221 = nosys */
|
||||
{ 0, nosys }, /* 222 = nosys */
|
||||
{ 0, nosys }, /* 223 = nosys */
|
||||
{ 0, nosys }, /* 224 = nosys */
|
||||
{ 2, notimp }, /* 225 = pathconf */
|
||||
{ 2, notimp }, /* 226 = fpathconf */
|
||||
{ 2, notimp }, /* 225 = pathconf (unimplemented) */
|
||||
{ 2, notimp }, /* 226 = fpathconf (unimplemented) */
|
||||
{ 0, nosys }, /* 227 = nosys */
|
||||
{ 0, nosys }, /* 228 = nosys */
|
||||
{ 0, notimp }, /* 229 = async_daemon */
|
||||
{ 3, notimp }, /* 230 = nfs_fcntl */
|
||||
{ 0, notimp }, /* 229 = async_daemon (unimplemented) */
|
||||
{ 3, notimp }, /* 230 = nfs_fcntl (unimplemented) */
|
||||
{ 4, getdirentries }, /* 231 = getdirentries */
|
||||
{ 2, ogetdomainname }, /* 232 = ogetdomainname */
|
||||
{ 2, notimp }, /* 233 = nfs_getfh */
|
||||
{ 4, notimp }, /* 234 = vfsmount */
|
||||
{ 1, notimp }, /* 235 = nfs_svc */
|
||||
{ 2, osetdomainname }, /* 236 = osetdomainname */
|
||||
{ 0, notimp }, /* 237 = statfs */
|
||||
{ 0, notimp }, /* 238 = fstatfs */
|
||||
{ 3, hpux_sigaction }, /* 239 = hpux_sigaction */
|
||||
{ 3, hpux_sigprocmask }, /* 240 = hpux_sigprocmask */
|
||||
{ 1, hpux_sigpending }, /* 241 = hpux_sigpending */
|
||||
{ 1, hpux_sigsuspend }, /* 242 = hpux_sigsuspend */
|
||||
{ compat(2,getdomainname) }, /* 232 = old getdomainname */
|
||||
{ 2, notimp }, /* 233 = nfs_getfh (unimplemented) */
|
||||
{ 4, notimp }, /* 234 = vfsmount (unimplemented) */
|
||||
{ 1, notimp }, /* 235 = nfs_svc (unimplemented) */
|
||||
{ compat(2,setdomainname) }, /* 236 = old setdomainname */
|
||||
{ 2, notimp }, /* 237 = statfs (unimplemented) */
|
||||
{ 2, notimp }, /* 238 = fstatfs (unimplemented) */
|
||||
{ 3, hpux_sigaction }, /* 239 = sigaction */
|
||||
{ 3, hpux_sigprocmask }, /* 240 = sigprocmask */
|
||||
{ 1, hpux_sigpending }, /* 241 = sigpending */
|
||||
{ 1, hpux_sigsuspend }, /* 242 = sigsuspend */
|
||||
{ 4, notimp }, /* 243 = fsctl (unimplemented) */
|
||||
{ 0, nosys }, /* 244 = nosys */
|
||||
{ 3, notimp }, /* 245 = pstat (unimplemented) */
|
||||
{ 0, nosys }, /* 246 = nosys */
|
||||
{ 0, nosys }, /* 247 = nosys */
|
||||
{ 0, nosys }, /* 248 = nosys */
|
||||
{ 0, nosys }, /* 249 = nosys */
|
||||
{ 0, nosys }, /* 250 = nosys */
|
||||
{ 0, nosys }, /* 251 = nosys */
|
||||
{ 0, nosys }, /* 252 = nosys */
|
||||
{ 0, nosys }, /* 253 = nosys */
|
||||
{ 0, nosys }, /* 254 = nosys */
|
||||
{ 0, nosys }, /* 255 = nosys */
|
||||
{ 0, nosys }, /* 256 = nosys */
|
||||
{ 0, nosys }, /* 257 = nosys */
|
||||
{ 0, nosys }, /* 258 = nosys */
|
||||
{ 0, nosys }, /* 259 = nosys */
|
||||
{ 0, nosys }, /* 260 = nosys */
|
||||
{ 0, nosys }, /* 261 = nosys */
|
||||
{ 0, nosys }, /* 262 = nosys */
|
||||
{ 0, nosys }, /* 263 = nosys */
|
||||
{ 0, nosys }, /* 264 = nosys */
|
||||
{ 0, nosys }, /* 265 = nosys */
|
||||
{ 0, nosys }, /* 266 = nosys */
|
||||
{ 0, nosys }, /* 267 = nosys */
|
||||
{ 0, getdtablesize }, /* 268 = getnumfds */
|
||||
{ 0, nosys }, /* 269 = nosys */
|
||||
{ 0, nosys }, /* 270 = nosys */
|
||||
{ 0, nosys }, /* 271 = nosys */
|
||||
{ 1, fchdir }, /* 272 = fchdir */
|
||||
{ 0, nosys }, /* 273 = nosys */
|
||||
{ 0, nosys }, /* 274 = nosys */
|
||||
{ compat(3,accept) }, /* 275 = old accept */
|
||||
{ 3, bind }, /* 276 = bind */
|
||||
{ 3, connect }, /* 277 = connect */
|
||||
{ compat(3,getpeername) }, /* 278 = old getpeername */
|
||||
{ compat(3,getsockname) }, /* 279 = old getsockname */
|
||||
{ 5, getsockopt }, /* 280 = getsockopt */
|
||||
{ 2, listen }, /* 281 = listen */
|
||||
{ compat(4,recv) }, /* 282 = old recv */
|
||||
{ compat(6,recvfrom) }, /* 283 = old recvfrom */
|
||||
{ compat(3,recvmsg) }, /* 284 = old recvmsg */
|
||||
{ compat(4,send) }, /* 285 = old send */
|
||||
{ compat(3,sendmsg) }, /* 286 = old sendmsg */
|
||||
{ 6, sendto }, /* 287 = sendto */
|
||||
{ 5, hpux_setsockopt2 }, /* 288 = setsockopt2 */
|
||||
{ 2, shutdown }, /* 289 = shutdown */
|
||||
{ 3, socket }, /* 290 = socket */
|
||||
{ 4, socketpair }, /* 291 = socketpair */
|
||||
{ 0, nosys }, /* 292 = nosys */
|
||||
{ 0, nosys }, /* 293 = nosys */
|
||||
{ 0, nosys }, /* 294 = nosys */
|
||||
{ 0, nosys }, /* 295 = nosys */
|
||||
{ 0, nosys }, /* 296 = nosys */
|
||||
{ 0, nosys }, /* 297 = nosys */
|
||||
{ 0, nosys }, /* 298 = nosys */
|
||||
{ 0, nosys }, /* 299 = nosys */
|
||||
{ 0, nosys }, /* 300 = nosys */
|
||||
{ 0, nosys }, /* 301 = nosys */
|
||||
{ 0, nosys }, /* 302 = nosys */
|
||||
{ 0, nosys }, /* 303 = nosys */
|
||||
{ 0, nosys }, /* 304 = nosys */
|
||||
{ 0, nosys }, /* 305 = nosys */
|
||||
{ 0, nosys }, /* 306 = nosys */
|
||||
{ 0, nosys }, /* 307 = nosys */
|
||||
{ 0, nosys }, /* 308 = nosys */
|
||||
{ 0, nosys }, /* 309 = nosys */
|
||||
{ 0, nosys }, /* 310 = nosys */
|
||||
{ 0, nosys }, /* 311 = nosys */
|
||||
#ifdef SYSVSHM
|
||||
{ 4, semctl }, /* 312 = nsemctl */
|
||||
#else
|
||||
{ 4, notimp }, /* 312 = nsemctl (unimplemented) */
|
||||
#endif
|
||||
#ifdef SYSVMSG
|
||||
{ 3, msgctl }, /* 313 = nmsgctl */
|
||||
#else
|
||||
{ 3, notimp }, /* 313 = nmsgctl (unimplemented) */
|
||||
#endif
|
||||
#ifdef SYSVSHM
|
||||
{ 3, hpux_nshmctl }, /* 314 = nshmctl */
|
||||
#else
|
||||
{ 3, notimp }, /* 314 = nshmctl (unimplemented) */
|
||||
#endif
|
||||
};
|
||||
|
||||
int nhpux_sysent = sizeof(hpux_sysent) / sizeof(hpux_sysent[0]);
|
||||
int hpux_nsysent = sizeof(hpux_sysent) / sizeof(hpux_sysent[0]);
|
||||
|
|
|
@ -1,7 +1,7 @@
|
|||
/*
|
||||
* Copyright (c) 1988 University of Utah.
|
||||
* Copyright (c) 1990 The Regents of the University of California.
|
||||
* All rights reserved.
|
||||
* Copyright (c) 1990, 1993
|
||||
* The Regents of the University of California. All rights reserved.
|
||||
*
|
||||
* This code is derived from software contributed to Berkeley by
|
||||
* the Systems Programming Group of the University of Utah Computer
|
||||
|
@ -35,9 +35,10 @@
|
|||
* OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
|
||||
* SUCH DAMAGE.
|
||||
*
|
||||
* from: Utah Hdr: hpux_termio.h 1.1 90/07/09
|
||||
* from: @(#)hpux_termio.h 7.3 (Berkeley) 10/24/90
|
||||
* $Id: hpux_termio.h,v 1.4 1994/01/07 00:44:02 mycroft Exp $
|
||||
* from: Utah $Hdr: hpux_termio.h 1.1 90/07/09$
|
||||
*
|
||||
* from: @(#)hpux_termio.h 8.1 (Berkeley) 6/10/93
|
||||
* $Id: hpux_termio.h,v 1.5 1994/05/23 08:04:24 mycroft Exp $
|
||||
*/
|
||||
|
||||
/* HP-UX termio stuff */
|
||||
|
@ -53,6 +54,8 @@
|
|||
#define HPUXVEOL 5
|
||||
#define HPUXVMIN 4
|
||||
#define HPUXVTIME 5
|
||||
#define HPUXVEOL2 6
|
||||
#define HPUXVSWTCH 7
|
||||
|
||||
/* input modes */
|
||||
#define TIO_IGNBRK 0x00000001 /* 0000001 */
|
||||
|
@ -161,3 +164,28 @@ struct hpux_termio {
|
|||
#define HPUXTCSETA _IOW('T', 2, struct hpux_termio)
|
||||
#define HPUXTCSETAW _IOW('T', 3, struct hpux_termio)
|
||||
#define HPUXTCSETAF _IOW('T', 4, struct hpux_termio)
|
||||
|
||||
/* HP-UX termios stuff */
|
||||
|
||||
#define HPUXNCCS 16
|
||||
|
||||
/* control characters */
|
||||
#define HPUXVMINS 11 /* different than termio */
|
||||
#define HPUXVTIMES 12 /* different than termio */
|
||||
#define HPUXVSUSP 13
|
||||
#define HPUXVSTART 14
|
||||
#define HPUXVSTOP 15
|
||||
|
||||
struct hpux_termios {
|
||||
u_int c_iflag; /* input modes */
|
||||
u_int c_oflag; /* output modes */
|
||||
u_int c_cflag; /* control modes */
|
||||
u_int c_lflag; /* line discipline modes */
|
||||
u_int c_reserved; /* future use */
|
||||
u_char c_cc[HPUXNCCS]; /* control chars */
|
||||
};
|
||||
|
||||
#define HPUXTCGETATTR _IOR('T', 16, struct hpux_termios)
|
||||
#define HPUXTCSETATTR _IOW('T', 17, struct hpux_termios)
|
||||
#define HPUXTCSETATTRD _IOW('T', 18, struct hpux_termios)
|
||||
#define HPUXTCSETATTRF _IOW('T', 19, struct hpux_termios)
|
||||
|
|
|
@ -1,7 +1,7 @@
|
|||
/*
|
||||
* Copyright (c) 1988 University of Utah.
|
||||
* Copyright (c) 1990 The Regents of the University of California.
|
||||
* All rights reserved.
|
||||
* Copyright (c) 1990, 1993
|
||||
* The Regents of the University of California. All rights reserved.
|
||||
*
|
||||
* This code is derived from software contributed to Berkeley by
|
||||
* the Systems Programming Group of the University of Utah Computer
|
||||
|
@ -35,140 +35,180 @@
|
|||
* OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
|
||||
* SUCH DAMAGE.
|
||||
*
|
||||
* from: Utah Hdr: hpux_tty.c 1.1 90/07/09
|
||||
* from: @(#)hpux_tty.c 7.9 (Berkeley) 5/30/91
|
||||
* $Id: hpux_tty.c,v 1.5 1994/05/04 04:09:39 mycroft Exp $
|
||||
* from: Utah $Hdr: hpux_tty.c 1.14 93/08/05$
|
||||
*
|
||||
* from: @(#)hpux_tty.c 8.3 (Berkeley) 1/12/94
|
||||
* $Id: hpux_tty.c,v 1.6 1994/05/23 08:04:26 mycroft Exp $
|
||||
*/
|
||||
|
||||
/*
|
||||
* stty/gtty/termio emulation stuff
|
||||
*/
|
||||
|
||||
#include "param.h"
|
||||
#include "systm.h"
|
||||
#include "filedesc.h"
|
||||
#include "ioctl.h"
|
||||
#include "tty.h"
|
||||
#include "proc.h"
|
||||
#include "file.h"
|
||||
#include "conf.h"
|
||||
#include "buf.h"
|
||||
#include "kernel.h"
|
||||
#ifndef COMPAT_43
|
||||
#define COMPAT_43
|
||||
#endif
|
||||
|
||||
#include "hpux.h"
|
||||
#include "hpux_termio.h"
|
||||
#include <sys/param.h>
|
||||
#include <sys/systm.h>
|
||||
#include <sys/filedesc.h>
|
||||
#include <sys/ioctl.h>
|
||||
#include <sys/proc.h>
|
||||
#include <sys/tty.h>
|
||||
#include <sys/file.h>
|
||||
#include <sys/conf.h>
|
||||
#include <sys/buf.h>
|
||||
#include <sys/kernel.h>
|
||||
|
||||
#include <hp300/hpux/hpux.h>
|
||||
#include <hp300/hpux/hpux_termio.h>
|
||||
|
||||
/*
|
||||
* Map BSD/POSIX style termios info to and from SYS5 style termio stuff.
|
||||
*/
|
||||
hpux_termio(fp, com, data, p)
|
||||
struct file *fp;
|
||||
hpux_termio(fd, com, data, p)
|
||||
int fd, com;
|
||||
caddr_t data;
|
||||
struct proc *p;
|
||||
{
|
||||
struct file *fp;
|
||||
struct termios tios;
|
||||
struct hpux_termios htios;
|
||||
int line, error, (*ioctlrout)();
|
||||
register struct hpux_termio *tiop;
|
||||
int newi = 0;
|
||||
|
||||
fp = p->p_fd->fd_ofiles[fd];
|
||||
ioctlrout = fp->f_ops->fo_ioctl;
|
||||
tiop = (struct hpux_termio *)data;
|
||||
switch (com) {
|
||||
case HPUXTCGETATTR:
|
||||
newi = 1;
|
||||
/* fall into ... */
|
||||
case HPUXTCGETA:
|
||||
/*
|
||||
* Get BSD terminal state
|
||||
*/
|
||||
bzero(data, sizeof(struct hpux_termio));
|
||||
if (error = (*ioctlrout)(fp, TIOCGETA, (caddr_t)&tios, p))
|
||||
break;
|
||||
bzero((char *)&htios, sizeof htios);
|
||||
/*
|
||||
* Set iflag.
|
||||
* Same through ICRNL, no BSD equivs for IUCLC, IENQAK
|
||||
*/
|
||||
tiop->c_iflag = tios.c_iflag & 0x1ff;
|
||||
htios.c_iflag = tios.c_iflag & 0x1ff;
|
||||
if (tios.c_iflag & IXON)
|
||||
tiop->c_iflag |= TIO_IXON;
|
||||
htios.c_iflag |= TIO_IXON;
|
||||
if (tios.c_iflag & IXOFF)
|
||||
tiop->c_iflag |= TIO_IXOFF;
|
||||
htios.c_iflag |= TIO_IXOFF;
|
||||
if (tios.c_iflag & IXANY)
|
||||
tiop->c_iflag |= TIO_IXANY;
|
||||
htios.c_iflag |= TIO_IXANY;
|
||||
/*
|
||||
* Set oflag.
|
||||
* No BSD equivs for OLCUC/OCRNL/ONOCR/ONLRET/OFILL/OFDEL
|
||||
* or any of the delays.
|
||||
*/
|
||||
if (tios.c_oflag & OPOST)
|
||||
tiop->c_oflag |= TIO_OPOST;
|
||||
htios.c_oflag |= TIO_OPOST;
|
||||
if (tios.c_oflag & ONLCR)
|
||||
tiop->c_oflag |= TIO_ONLCR;
|
||||
htios.c_oflag |= TIO_ONLCR;
|
||||
if (tios.c_oflag & OXTABS)
|
||||
tiop->c_oflag |= TIO_TAB3;
|
||||
htios.c_oflag |= TIO_TAB3;
|
||||
/*
|
||||
* Set cflag.
|
||||
* Baud from ospeed, rest from cflag.
|
||||
*/
|
||||
tiop->c_cflag = bsdtohpuxbaud(tios.c_ospeed);
|
||||
htios.c_cflag = bsdtohpuxbaud(tios.c_ospeed);
|
||||
switch (tios.c_cflag & CSIZE) {
|
||||
case CS5:
|
||||
tiop->c_cflag |= TIO_CS5; break;
|
||||
htios.c_cflag |= TIO_CS5; break;
|
||||
case CS6:
|
||||
tiop->c_cflag |= TIO_CS6; break;
|
||||
htios.c_cflag |= TIO_CS6; break;
|
||||
case CS7:
|
||||
tiop->c_cflag |= TIO_CS7; break;
|
||||
htios.c_cflag |= TIO_CS7; break;
|
||||
case CS8:
|
||||
tiop->c_cflag |= TIO_CS8; break;
|
||||
htios.c_cflag |= TIO_CS8; break;
|
||||
}
|
||||
if (tios.c_cflag & CSTOPB)
|
||||
tiop->c_cflag |= TIO_CSTOPB;
|
||||
htios.c_cflag |= TIO_CSTOPB;
|
||||
if (tios.c_cflag & CREAD)
|
||||
tiop->c_cflag |= TIO_CREAD;
|
||||
htios.c_cflag |= TIO_CREAD;
|
||||
if (tios.c_cflag & PARENB)
|
||||
tiop->c_cflag |= TIO_PARENB;
|
||||
htios.c_cflag |= TIO_PARENB;
|
||||
if (tios.c_cflag & PARODD)
|
||||
tiop->c_cflag |= TIO_PARODD;
|
||||
htios.c_cflag |= TIO_PARODD;
|
||||
if (tios.c_cflag & HUPCL)
|
||||
tiop->c_cflag |= TIO_HUPCL;
|
||||
htios.c_cflag |= TIO_HUPCL;
|
||||
if (tios.c_cflag & CLOCAL)
|
||||
tiop->c_cflag |= TIO_CLOCAL;
|
||||
htios.c_cflag |= TIO_CLOCAL;
|
||||
/*
|
||||
* Set lflag.
|
||||
* No BSD equiv for XCASE.
|
||||
*/
|
||||
if (tios.c_lflag & ECHOE)
|
||||
tiop->c_lflag |= TIO_ECHOE;
|
||||
htios.c_lflag |= TIO_ECHOE;
|
||||
if (tios.c_lflag & ECHOK)
|
||||
tiop->c_lflag |= TIO_ECHOK;
|
||||
htios.c_lflag |= TIO_ECHOK;
|
||||
if (tios.c_lflag & ECHO)
|
||||
tiop->c_lflag |= TIO_ECHO;
|
||||
htios.c_lflag |= TIO_ECHO;
|
||||
if (tios.c_lflag & ECHONL)
|
||||
tiop->c_lflag |= TIO_ECHONL;
|
||||
htios.c_lflag |= TIO_ECHONL;
|
||||
if (tios.c_lflag & ISIG)
|
||||
tiop->c_lflag |= TIO_ISIG;
|
||||
htios.c_lflag |= TIO_ISIG;
|
||||
if (tios.c_lflag & ICANON)
|
||||
tiop->c_lflag |= TIO_ICANON;
|
||||
htios.c_lflag |= TIO_ICANON;
|
||||
if (tios.c_lflag & NOFLSH)
|
||||
tiop->c_lflag |= TIO_NOFLSH;
|
||||
htios.c_lflag |= TIO_NOFLSH;
|
||||
/*
|
||||
* Line discipline
|
||||
*/
|
||||
line = 0;
|
||||
(void) (*ioctlrout)(fp, TIOCGETD, (caddr_t)&line, p);
|
||||
tiop->c_line = line;
|
||||
/*
|
||||
* Set editing chars
|
||||
*/
|
||||
tiop->c_cc[HPUXVINTR] = tios.c_cc[VINTR];
|
||||
tiop->c_cc[HPUXVQUIT] = tios.c_cc[VQUIT];
|
||||
tiop->c_cc[HPUXVERASE] = tios.c_cc[VERASE];
|
||||
tiop->c_cc[HPUXVKILL] = tios.c_cc[VKILL];
|
||||
if (tiop->c_lflag & TIO_ICANON) {
|
||||
tiop->c_cc[HPUXVEOF] = tios.c_cc[VEOF];
|
||||
tiop->c_cc[HPUXVEOL] = tios.c_cc[VEOL];
|
||||
} else {
|
||||
tiop->c_cc[HPUXVMIN] = tios.c_cc[VMIN];
|
||||
tiop->c_cc[HPUXVTIME] = tios.c_cc[VTIME];
|
||||
if (!newi) {
|
||||
line = 0;
|
||||
(void) (*ioctlrout)(fp, TIOCGETD, (caddr_t)&line, p);
|
||||
htios.c_reserved = line;
|
||||
}
|
||||
/*
|
||||
* Set editing chars.
|
||||
* No BSD equiv for VSWTCH.
|
||||
*/
|
||||
htios.c_cc[HPUXVINTR] = tios.c_cc[VINTR];
|
||||
htios.c_cc[HPUXVQUIT] = tios.c_cc[VQUIT];
|
||||
htios.c_cc[HPUXVERASE] = tios.c_cc[VERASE];
|
||||
htios.c_cc[HPUXVKILL] = tios.c_cc[VKILL];
|
||||
htios.c_cc[HPUXVEOF] = tios.c_cc[VEOF];
|
||||
htios.c_cc[HPUXVEOL] = tios.c_cc[VEOL];
|
||||
htios.c_cc[HPUXVEOL2] = tios.c_cc[VEOL2];
|
||||
htios.c_cc[HPUXVSWTCH] = 0;
|
||||
#if 1
|
||||
/*
|
||||
* XXX since VMIN and VTIME are not implemented,
|
||||
* we need to return something reasonable.
|
||||
* Otherwise a GETA/SETA combo would always put
|
||||
* the tty in non-blocking mode (since VMIN == VTIME == 0).
|
||||
*/
|
||||
if (fp->f_flag & FNONBLOCK) {
|
||||
htios.c_cc[HPUXVMINS] = 0;
|
||||
htios.c_cc[HPUXVTIMES] = 0;
|
||||
} else {
|
||||
htios.c_cc[HPUXVMINS] = 6;
|
||||
htios.c_cc[HPUXVTIMES] = 1;
|
||||
}
|
||||
#else
|
||||
htios.c_cc[HPUXVMINS] = tios.c_cc[VMIN];
|
||||
htios.c_cc[HPUXVTIMES] = tios.c_cc[VTIME];
|
||||
#endif
|
||||
htios.c_cc[HPUXVSUSP] = tios.c_cc[VSUSP];
|
||||
htios.c_cc[HPUXVSTART] = tios.c_cc[VSTART];
|
||||
htios.c_cc[HPUXVSTOP] = tios.c_cc[VSTOP];
|
||||
if (newi)
|
||||
bcopy((char *)&htios, data, sizeof htios);
|
||||
else
|
||||
termiostotermio(&htios, (struct hpux_termio *)data);
|
||||
break;
|
||||
|
||||
case HPUXTCSETATTR:
|
||||
case HPUXTCSETATTRD:
|
||||
case HPUXTCSETATTRF:
|
||||
newi = 1;
|
||||
/* fall into ... */
|
||||
case HPUXTCSETA:
|
||||
case HPUXTCSETAW:
|
||||
case HPUXTCSETAF:
|
||||
|
@ -177,28 +217,32 @@ hpux_termio(fp, com, data, p)
|
|||
*/
|
||||
if (error = (*ioctlrout)(fp, TIOCGETA, (caddr_t)&tios, p))
|
||||
break;
|
||||
if (newi)
|
||||
bcopy(data, (char *)&htios, sizeof htios);
|
||||
else
|
||||
termiototermios((struct termio *)data, &htios, &tios);
|
||||
/*
|
||||
* Set iflag.
|
||||
* Same through ICRNL, no HP-UX equiv for IMAXBEL
|
||||
*/
|
||||
tios.c_iflag &= ~(IXON|IXOFF|IXANY|0x1ff);
|
||||
tios.c_iflag |= tiop->c_iflag & 0x1ff;
|
||||
if (tiop->c_iflag & TIO_IXON)
|
||||
tios.c_iflag |= htios.c_iflag & 0x1ff;
|
||||
if (htios.c_iflag & TIO_IXON)
|
||||
tios.c_iflag |= IXON;
|
||||
if (tiop->c_iflag & TIO_IXOFF)
|
||||
if (htios.c_iflag & TIO_IXOFF)
|
||||
tios.c_iflag |= IXOFF;
|
||||
if (tiop->c_iflag & TIO_IXANY)
|
||||
if (htios.c_iflag & TIO_IXANY)
|
||||
tios.c_iflag |= IXANY;
|
||||
/*
|
||||
* Set oflag.
|
||||
* No HP-UX equiv for ONOEOT
|
||||
*/
|
||||
tios.c_oflag &= ~(OPOST|ONLCR|OXTABS);
|
||||
if (tiop->c_oflag & TIO_OPOST)
|
||||
if (htios.c_oflag & TIO_OPOST)
|
||||
tios.c_oflag |= OPOST;
|
||||
if (tiop->c_oflag & TIO_ONLCR)
|
||||
if (htios.c_oflag & TIO_ONLCR)
|
||||
tios.c_oflag |= ONLCR;
|
||||
if (tiop->c_oflag & TIO_TAB3)
|
||||
if (htios.c_oflag & TIO_TAB3)
|
||||
tios.c_oflag |= OXTABS;
|
||||
/*
|
||||
* Set cflag.
|
||||
|
@ -206,7 +250,7 @@ hpux_termio(fp, com, data, p)
|
|||
*/
|
||||
tios.c_cflag &=
|
||||
~(CSIZE|CSTOPB|CREAD|PARENB|PARODD|HUPCL|CLOCAL);
|
||||
switch (tiop->c_cflag & TIO_CSIZE) {
|
||||
switch (htios.c_cflag & TIO_CSIZE) {
|
||||
case TIO_CS5:
|
||||
tios.c_cflag |= CS5; break;
|
||||
case TIO_CS6:
|
||||
|
@ -216,17 +260,17 @@ hpux_termio(fp, com, data, p)
|
|||
case TIO_CS8:
|
||||
tios.c_cflag |= CS8; break;
|
||||
}
|
||||
if (tiop->c_cflag & TIO_CSTOPB)
|
||||
if (htios.c_cflag & TIO_CSTOPB)
|
||||
tios.c_cflag |= CSTOPB;
|
||||
if (tiop->c_cflag & TIO_CREAD)
|
||||
if (htios.c_cflag & TIO_CREAD)
|
||||
tios.c_cflag |= CREAD;
|
||||
if (tiop->c_cflag & TIO_PARENB)
|
||||
if (htios.c_cflag & TIO_PARENB)
|
||||
tios.c_cflag |= PARENB;
|
||||
if (tiop->c_cflag & TIO_PARODD)
|
||||
if (htios.c_cflag & TIO_PARODD)
|
||||
tios.c_cflag |= PARODD;
|
||||
if (tiop->c_cflag & TIO_HUPCL)
|
||||
if (htios.c_cflag & TIO_HUPCL)
|
||||
tios.c_cflag |= HUPCL;
|
||||
if (tiop->c_cflag & TIO_CLOCAL)
|
||||
if (htios.c_cflag & TIO_CLOCAL)
|
||||
tios.c_cflag |= CLOCAL;
|
||||
/*
|
||||
* Set lflag.
|
||||
|
@ -234,42 +278,44 @@ hpux_termio(fp, com, data, p)
|
|||
* IEXTEN treated as part of ICANON
|
||||
*/
|
||||
tios.c_lflag &= ~(ECHOE|ECHOK|ECHO|ISIG|ICANON|IEXTEN|NOFLSH);
|
||||
if (tiop->c_lflag & TIO_ECHOE)
|
||||
if (htios.c_lflag & TIO_ECHOE)
|
||||
tios.c_lflag |= ECHOE;
|
||||
if (tiop->c_lflag & TIO_ECHOK)
|
||||
if (htios.c_lflag & TIO_ECHOK)
|
||||
tios.c_lflag |= ECHOK;
|
||||
if (tiop->c_lflag & TIO_ECHO)
|
||||
if (htios.c_lflag & TIO_ECHO)
|
||||
tios.c_lflag |= ECHO;
|
||||
if (tiop->c_lflag & TIO_ECHONL)
|
||||
if (htios.c_lflag & TIO_ECHONL)
|
||||
tios.c_lflag |= ECHONL;
|
||||
if (tiop->c_lflag & TIO_ISIG)
|
||||
if (htios.c_lflag & TIO_ISIG)
|
||||
tios.c_lflag |= ISIG;
|
||||
if (tiop->c_lflag & TIO_ICANON)
|
||||
if (htios.c_lflag & TIO_ICANON)
|
||||
tios.c_lflag |= (ICANON|IEXTEN);
|
||||
if (tiop->c_lflag & TIO_NOFLSH)
|
||||
if (htios.c_lflag & TIO_NOFLSH)
|
||||
tios.c_lflag |= NOFLSH;
|
||||
/*
|
||||
* Set editing chars.
|
||||
* No HP-UX equivs of VEOL2/VWERASE/VREPRINT/VSUSP/VDSUSP
|
||||
* VSTOP/VLNEXT/VDISCARD/VMIN/VTIME/VSTATUS/VERASE2
|
||||
* No HP-UX equivs of VWERASE/VREPRINT/VDSUSP/VLNEXT
|
||||
* /VDISCARD/VSTATUS/VERASE2
|
||||
*/
|
||||
tios.c_cc[VINTR] = tiop->c_cc[HPUXVINTR];
|
||||
tios.c_cc[VQUIT] = tiop->c_cc[HPUXVQUIT];
|
||||
tios.c_cc[VERASE] = tiop->c_cc[HPUXVERASE];
|
||||
tios.c_cc[VKILL] = tiop->c_cc[HPUXVKILL];
|
||||
if (tios.c_lflag & ICANON) {
|
||||
tios.c_cc[VEOF] = tiop->c_cc[HPUXVEOF];
|
||||
tios.c_cc[VEOL] = tiop->c_cc[HPUXVEOL];
|
||||
} else {
|
||||
tios.c_cc[VMIN] = tiop->c_cc[HPUXVMIN];
|
||||
tios.c_cc[VTIME] = tiop->c_cc[HPUXVTIME];
|
||||
}
|
||||
tios.c_cc[VINTR] = htios.c_cc[HPUXVINTR];
|
||||
tios.c_cc[VQUIT] = htios.c_cc[HPUXVQUIT];
|
||||
tios.c_cc[VERASE] = htios.c_cc[HPUXVERASE];
|
||||
tios.c_cc[VKILL] = htios.c_cc[HPUXVKILL];
|
||||
tios.c_cc[VEOF] = htios.c_cc[HPUXVEOF];
|
||||
tios.c_cc[VEOL] = htios.c_cc[HPUXVEOL];
|
||||
tios.c_cc[VEOL2] = htios.c_cc[HPUXVEOL2];
|
||||
tios.c_cc[VMIN] = htios.c_cc[HPUXVMINS];
|
||||
tios.c_cc[VTIME] = htios.c_cc[HPUXVTIMES];
|
||||
tios.c_cc[VSUSP] = htios.c_cc[HPUXVSUSP];
|
||||
tios.c_cc[VSTART] = htios.c_cc[HPUXVSTART];
|
||||
tios.c_cc[VSTOP] = htios.c_cc[HPUXVSTOP];
|
||||
|
||||
/*
|
||||
* Set the new stuff
|
||||
*/
|
||||
if (com == HPUXTCSETA)
|
||||
if (com == HPUXTCSETA || com == HPUXTCSETATTR)
|
||||
com = TIOCSETA;
|
||||
else if (com == HPUXTCSETAW)
|
||||
else if (com == HPUXTCSETAW || com == HPUXTCSETATTRD)
|
||||
com = TIOCSETAW;
|
||||
else
|
||||
com = TIOCSETAF;
|
||||
|
@ -278,23 +324,44 @@ hpux_termio(fp, com, data, p)
|
|||
/*
|
||||
* Set line discipline
|
||||
*/
|
||||
line = tiop->c_line;
|
||||
(void) (*ioctlrout)(fp, TIOCSETD, (caddr_t)&line, p);
|
||||
if (!newi) {
|
||||
line = htios.c_reserved;
|
||||
(void) (*ioctlrout)(fp, TIOCSETD,
|
||||
(caddr_t)&line, p);
|
||||
}
|
||||
/*
|
||||
* Set non-blocking IO if VMIN == VTIME == 0.
|
||||
* Should handle the other cases as well. It also
|
||||
* isn't correct to just turn it off as it could be
|
||||
* on as the result of a fcntl operation.
|
||||
* Set non-blocking IO if VMIN == VTIME == 0, clear
|
||||
* if not. Should handle the other cases as well.
|
||||
* Note it isn't correct to just turn NBIO off like
|
||||
* we do as it could be on as the result of a fcntl
|
||||
* operation.
|
||||
*
|
||||
* XXX - wouldn't need to do this at all if VMIN/VTIME
|
||||
* were implemented.
|
||||
*/
|
||||
line = (tiop->c_cc[HPUXVMIN] == 0 &&
|
||||
tiop->c_cc[HPUXVTIME] == 0);
|
||||
if (line)
|
||||
fp->f_flag |= FNONBLOCK;
|
||||
else
|
||||
fp->f_flag &= ~FNONBLOCK;
|
||||
(void) (*ioctlrout)(fp, FIONBIO, (caddr_t)&line, p);
|
||||
{
|
||||
struct hpux_fcntl_args {
|
||||
int fdes, cmd, arg;
|
||||
} args;
|
||||
int flags, nbio;
|
||||
|
||||
nbio = (htios.c_cc[HPUXVMINS] == 0 &&
|
||||
htios.c_cc[HPUXVTIMES] == 0);
|
||||
if (nbio && (fp->f_flag & FNONBLOCK) == 0 ||
|
||||
!nbio && (fp->f_flag & FNONBLOCK)) {
|
||||
args.fdes = fd;
|
||||
args.cmd = F_GETFL;
|
||||
args.arg = 0;
|
||||
(void) hpux_fcntl(p, &args, &flags);
|
||||
if (nbio)
|
||||
flags |= HPUXNDELAY;
|
||||
else
|
||||
flags &= ~HPUXNDELAY;
|
||||
args.cmd = F_SETFL;
|
||||
args.arg = flags;
|
||||
(void) hpux_fcntl(p, &args, &flags);
|
||||
}
|
||||
}
|
||||
}
|
||||
break;
|
||||
|
||||
|
@ -305,6 +372,59 @@ hpux_termio(fp, com, data, p)
|
|||
return(error);
|
||||
}
|
||||
|
||||
termiototermios(tio, tios, bsdtios)
|
||||
struct hpux_termio *tio;
|
||||
struct hpux_termios *tios;
|
||||
struct termios *bsdtios;
|
||||
{
|
||||
int i;
|
||||
|
||||
bzero((char *)tios, sizeof *tios);
|
||||
tios->c_iflag = tio->c_iflag;
|
||||
tios->c_oflag = tio->c_oflag;
|
||||
tios->c_cflag = tio->c_cflag;
|
||||
tios->c_lflag = tio->c_lflag;
|
||||
tios->c_reserved = tio->c_line;
|
||||
for (i = 0; i <= HPUXVSWTCH; i++)
|
||||
tios->c_cc[i] = tio->c_cc[i];
|
||||
if (tios->c_lflag & TIO_ICANON) {
|
||||
tios->c_cc[HPUXVEOF] = tio->c_cc[HPUXVEOF];
|
||||
tios->c_cc[HPUXVEOL] = tio->c_cc[HPUXVEOL];
|
||||
tios->c_cc[HPUXVMINS] = 0;
|
||||
tios->c_cc[HPUXVTIMES] = 0;
|
||||
} else {
|
||||
tios->c_cc[HPUXVEOF] = 0;
|
||||
tios->c_cc[HPUXVEOL] = 0;
|
||||
tios->c_cc[HPUXVMINS] = tio->c_cc[HPUXVMIN];
|
||||
tios->c_cc[HPUXVTIMES] = tio->c_cc[HPUXVTIME];
|
||||
}
|
||||
tios->c_cc[HPUXVSUSP] = bsdtios->c_cc[VSUSP];
|
||||
tios->c_cc[HPUXVSTART] = bsdtios->c_cc[VSTART];
|
||||
tios->c_cc[HPUXVSTOP] = bsdtios->c_cc[VSTOP];
|
||||
}
|
||||
|
||||
termiostotermio(tios, tio)
|
||||
struct hpux_termios *tios;
|
||||
struct hpux_termio *tio;
|
||||
{
|
||||
int i;
|
||||
|
||||
tio->c_iflag = tios->c_iflag;
|
||||
tio->c_oflag = tios->c_oflag;
|
||||
tio->c_cflag = tios->c_cflag;
|
||||
tio->c_lflag = tios->c_lflag;
|
||||
tio->c_line = tios->c_reserved;
|
||||
for (i = 0; i <= HPUXVSWTCH; i++)
|
||||
tio->c_cc[i] = tios->c_cc[i];
|
||||
if (tios->c_lflag & TIO_ICANON) {
|
||||
tio->c_cc[HPUXVEOF] = tios->c_cc[HPUXVEOF];
|
||||
tio->c_cc[HPUXVEOL] = tios->c_cc[HPUXVEOL];
|
||||
} else {
|
||||
tio->c_cc[HPUXVMIN] = tios->c_cc[HPUXVMINS];
|
||||
tio->c_cc[HPUXVTIME] = tios->c_cc[HPUXVTIMES];
|
||||
}
|
||||
}
|
||||
|
||||
bsdtohpuxbaud(bsdspeed)
|
||||
long bsdspeed;
|
||||
{
|
||||
|
@ -329,8 +449,8 @@ bsdtohpuxbaud(bsdspeed)
|
|||
}
|
||||
}
|
||||
|
||||
hpuxtobsdbaud(hpuxspeed)
|
||||
int hpuxspeed;
|
||||
hpuxtobsdbaud(hpux_speed)
|
||||
int hpux_speed;
|
||||
{
|
||||
static char hpuxtobsdbaudtab[32] = {
|
||||
B0, B50, B75, B110, B134, B150, B200, B300,
|
||||
|
@ -339,32 +459,26 @@ hpuxtobsdbaud(hpuxspeed)
|
|||
B0, B0, B0, B0, B0, B0, EXTA, EXTB
|
||||
};
|
||||
|
||||
return(hpuxtobsdbaudtab[hpuxspeed & TIO_CBAUD]);
|
||||
return(hpuxtobsdbaudtab[hpux_speed & TIO_CBAUD]);
|
||||
}
|
||||
|
||||
/* #ifdef COMPAT */
|
||||
struct ohpux_gtty_args {
|
||||
#ifdef COMPAT_OHPUX
|
||||
struct ohpux_sgtty_args {
|
||||
int fdes;
|
||||
caddr_t cmarg;
|
||||
};
|
||||
|
||||
ohpux_gtty(p, uap, retval)
|
||||
struct proc *p;
|
||||
struct ohpux_gtty_args *uap;
|
||||
struct ohpux_sgtty_args *uap;
|
||||
int *retval;
|
||||
{
|
||||
|
||||
return (getsettty(p, uap->fdes, HPUXTIOCGETP, uap->cmarg));
|
||||
}
|
||||
|
||||
struct ohpux_stty_args {
|
||||
int fdes;
|
||||
caddr_t cmarg;
|
||||
};
|
||||
|
||||
ohpux_stty(p, uap, retval)
|
||||
struct proc *p;
|
||||
struct ohpux_stty_args *uap;
|
||||
struct ohpux_sgtty_args *uap;
|
||||
int *retval;
|
||||
{
|
||||
|
||||
|
@ -422,4 +536,4 @@ getsettty(p, fdes, com, cmarg)
|
|||
}
|
||||
return (error);
|
||||
}
|
||||
/* #endif */
|
||||
#endif
|
||||
|
|
|
@ -1,11 +1,11 @@
|
|||
#! /bin/sh -
|
||||
# from: @(#)makesyscalls.sh 8.1 (Berkeley) 6/11/93
|
||||
# $Id: makesyscalls.sh,v 1.1 1994/01/07 00:44:07 mycroft Exp $
|
||||
# from: @(#)makesyscalls.sh 8.2 (Berkeley) 9/9/93
|
||||
# $Id: makesyscalls.sh,v 1.2 1994/05/23 08:04:27 mycroft Exp $
|
||||
|
||||
set -e
|
||||
|
||||
# name of compat option:
|
||||
compat=XXX_UNUSED
|
||||
compat=COMPAT_OHPUX
|
||||
|
||||
# output files:
|
||||
sysnames="hpux_syscalls.c"
|
||||
|
@ -49,17 +49,17 @@ awk < $1 "
|
|||
printf " * DO NOT EDIT-- this file is automatically generated.\n" > syshdr
|
||||
}
|
||||
NR == 1 {
|
||||
printf " * created from%s\n */\n\n", $0 > sysdcl
|
||||
printf " * created from: %s %s %s %s\n */\n\n",$2,$3,$4,$5 > sysdcl
|
||||
printf "#include <sys/param.h>\n" > sysdcl
|
||||
printf "#include <sys/systm.h>\n\n" > sysdcl
|
||||
printf "int\tnosys();\n\n" > sysdcl
|
||||
printf "int\tnosys(),notimp();\n\n" > sysdcl
|
||||
|
||||
printf "struct sysent hpux_sysent[] = {\n" > sysent
|
||||
|
||||
printf " * created from%s\n */\n\n", $0 > sysnames
|
||||
printf " * created from: %s %s %s %s\n */\n\n",$2,$3,$4,$5 > sysnames
|
||||
printf "char *hpux_syscallnames[] = {\n" > sysnames
|
||||
|
||||
printf " * created from%s\n */\n\n", $0 > syshdr
|
||||
printf " * created from: %s %s %s %s\n */\n\n",$2,$3,$4,$5 > syshdr
|
||||
next
|
||||
}
|
||||
NF == 0 || $1 ~ /^;/ {
|
||||
|
@ -152,6 +152,14 @@ awk < $1 "
|
|||
syscall++
|
||||
next
|
||||
}
|
||||
$2 == "NOTIMPL" {
|
||||
printf("\t{ %d, notimp },\t\t\t/* %d = %s (unimplemented) */\n", \
|
||||
$3, syscall, comment) > sysent
|
||||
printf("\t\"%s\",\t\t\t/* %d = %s (unimplemented) */\n", \
|
||||
$4, syscall, comment) > sysnames
|
||||
syscall++
|
||||
next
|
||||
}
|
||||
{
|
||||
printf "%s: line %d: unrecognized keyword %s\n", infile, NR, $2
|
||||
exit 1
|
||||
|
@ -162,7 +170,7 @@ awk < $1 "
|
|||
printf("#endif /* %s */\n\n", compat) > syscompat
|
||||
|
||||
printf("};\n\n") > sysent
|
||||
printf("int\tnhpux_sysent = sizeof(hpux_sysent) / sizeof(hpux_sysent[0]);\n") > sysent
|
||||
printf("int\thpux_nsysent = sizeof(hpux_sysent) / sizeof(hpux_sysent[0]);\n") > sysent
|
||||
|
||||
printf("};\n") > sysnames
|
||||
} '
|
||||
|
|
|
@ -1,10 +1,14 @@
|
|||
$Id: syscalls.master,v 1.2 1994/05/17 10:36:03 cgd Exp $
|
||||
; System call name/number master file.
|
||||
; Processed to created init_sysent.c, syscalls.c and syscall.h.
|
||||
$Id: syscalls.master,v 1.3 1994/05/23 08:03:32 mycroft Exp $
|
||||
; from: @(#)syscalls.master 8.3 (Berkeley) 2/7/94
|
||||
; System call name/number master file (or rather, slave, from HP-UX).
|
||||
; Processed to created hpux_sysent.c, hpux_syscalls.c and hpux_syscall.h.
|
||||
;
|
||||
; from: Utah $Hdr: hpux_sysent.c 1.33 93/08/13$
|
||||
;
|
||||
|
||||
; Columns: number type nargs name altname/comments
|
||||
; number system call number, must be in order
|
||||
; type one of STD, OBSOL, UNIMPL, NODEF, COMPAT
|
||||
; type one of STD, OBSOL, UNIMPL, COMPAT
|
||||
; nargs number of arguments
|
||||
; name name of syscall routine
|
||||
; altname name of system call if different
|
||||
|
@ -15,175 +19,175 @@
|
|||
; COMPAT included on COMPAT #ifdef
|
||||
; LIBCOMPAT included on COMPAT #ifdef, and placed in syscall.h
|
||||
; OBSOL obsolete, not included in system, only specifies name
|
||||
; NODEF do everything except include in syscall.h
|
||||
; UNIMPL not implemented, placeholder only
|
||||
; UNIMPL not implemented, placeholder only, call nosys
|
||||
; NOTIMPL not implemented, placeholder only, call notimp
|
||||
|
||||
; #ifdef's, etc. may be included, and are copied to the output files.
|
||||
|
||||
0 STD 0 nosys
|
||||
0 UNIMPL 0 indir or out-of-range
|
||||
1 STD 1 exit
|
||||
2 STD 0 fork
|
||||
3 STD 3 hpux_read
|
||||
4 STD 3 hpux_write
|
||||
5 STD 3 hpux_open
|
||||
2 STD 0 hpux_fork fork
|
||||
3 STD 3 hpux_read read
|
||||
4 STD 3 hpux_write write
|
||||
5 STD 3 hpux_open open
|
||||
6 STD 1 close
|
||||
7 STD 1 hpux_wait
|
||||
8 STD 2 ocreat creat
|
||||
7 STD 1 hpux_wait owait
|
||||
8 STD 2 hpux_creat ocreat
|
||||
9 STD 2 link
|
||||
10 STD 1 unlink
|
||||
11 STD 2 hpux_execv execv
|
||||
12 STD 1 chdir
|
||||
13 COMPAT 1 hpux_time
|
||||
13 COMPAT 1 hpux_time time
|
||||
14 STD 3 mknod
|
||||
15 STD 2 chmod
|
||||
16 STD 3 chown
|
||||
17 STD 1 obreak break
|
||||
18 COMPAT 2 hpux_stat
|
||||
19 STD 3 lseek
|
||||
18 COMPAT 2 hpux_stat stat
|
||||
19 STD 3 olseek
|
||||
20 STD 0 getpid
|
||||
21 STD 3 notimp mount
|
||||
22 STD 1 notimp umount
|
||||
21 NOTIMPL 3 mount
|
||||
22 NOTIMPL 1 umount
|
||||
23 STD 1 setuid
|
||||
24 STD 0 getuid
|
||||
25 COMPAT 1 hpux_stime
|
||||
26 STD 4 hpux_ptrace
|
||||
27 COMPAT 1 hpux_alarm
|
||||
28 COMPAT 2 hpux_fstat
|
||||
29 COMPAT 0 hpux_pause
|
||||
30 COMPAT 2 hpux_utime
|
||||
31 COMPAT 2 hpux_stty
|
||||
32 COMPAT 2 hpux_gtty
|
||||
25 COMPAT 1 hpux_stime stime
|
||||
26 STD 4 hpux_ptrace ptrace
|
||||
27 COMPAT 1 hpux_alarm alarm
|
||||
28 COMPAT 2 hpux_fstat fstat
|
||||
29 COMPAT 0 hpux_pause pause
|
||||
30 COMPAT 2 hpux_utime utime
|
||||
31 COMPAT 2 hpux_stty stty
|
||||
32 COMPAT 2 hpux_gtty gtty
|
||||
33 STD 2 access
|
||||
34 COMPAT 1 hpux_nice
|
||||
35 COMPAT 1 hpux_ftime
|
||||
34 COMPAT 1 hpux_nice nice
|
||||
35 COMPAT 1 hpux_ftime ftime
|
||||
36 STD 0 sync
|
||||
37 STD 2 hpux_kill
|
||||
38 STD 2 hpux_stat
|
||||
39 COMPAT 1 hpux_setpgrp
|
||||
40 STD 2 hpux_lstat
|
||||
41 STD 1 hpux_dup
|
||||
37 STD 2 hpux_kill kill
|
||||
38 STD 2 hpux_stat stat
|
||||
39 COMPAT 1 hpux_setpgrp setpgrp
|
||||
40 STD 2 hpux_lstat lstat
|
||||
41 STD 1 hpux_dup dup
|
||||
42 STD 0 pipe
|
||||
43 COMPAT 1 hpux_times
|
||||
43 COMPAT 1 hpux_times times
|
||||
44 STD 4 profil
|
||||
45 STD 4 notimp ki_syscall
|
||||
45 NOTIMPL 4 ki_syscall
|
||||
46 STD 1 setgid
|
||||
47 STD 0 getgid
|
||||
48 COMPAT 2 hpux_ssig
|
||||
49 UNIMPL 0 reserved
|
||||
50 UNIMPL 0 reserved
|
||||
51 STD 1 notimp acct
|
||||
52 UNIMPL 0 old set phys addr
|
||||
53 UNIMPL 0 old lock in core
|
||||
54 STD 3 hpux_ioctl
|
||||
55 STD 4 notimp reboot
|
||||
48 COMPAT 2 hpux_ssig ssig
|
||||
49 UNIMPL 0 reserved for USG
|
||||
50 UNIMPL 0 reserved for USG
|
||||
51 NOTIMPL 1 acct
|
||||
52 UNIMPL 0 nosys
|
||||
53 UNIMPL 0 nosys
|
||||
54 STD 3 hpux_ioctl ioctl
|
||||
55 NOTIMPL 4 reboot
|
||||
56 STD 2 symlink
|
||||
57 STD 3 hpux_utssys
|
||||
57 STD 3 hpux_utssys utssys
|
||||
58 STD 3 readlink
|
||||
59 STD 3 execve
|
||||
60 STD 1 umask
|
||||
61 STD 1 chroot
|
||||
62 STD 3 hpux_fcntl
|
||||
63 STD 2 hpux_ulimit
|
||||
64 STD 0 nosys
|
||||
65 STD 0 nosys
|
||||
66 STD 0 vfork
|
||||
67 STD 0 hpux_read
|
||||
68 STD 0 hpux_write
|
||||
69 STD 0 nosys
|
||||
70 STD 0 nosys
|
||||
71 STD 0 nosys
|
||||
72 STD 0 nosys
|
||||
73 STD 0 nosys
|
||||
74 STD 3 notimp mprotect
|
||||
75 STD 0 nosys
|
||||
76 STD 0 nosys
|
||||
77 STD 0 nosys
|
||||
78 STD 0 nosys
|
||||
62 STD 3 hpux_fcntl fcntl
|
||||
63 STD 2 hpux_ulimit ulimit
|
||||
64 UNIMPL 0 nosys
|
||||
65 UNIMPL 0 nosys
|
||||
66 STD 0 hpux_vfork vfork
|
||||
67 STD 0 hpux_read vread
|
||||
68 STD 0 hpux_write vwrite
|
||||
69 UNIMPL 0 nosys
|
||||
70 UNIMPL 0 nosys
|
||||
71 STD 6 hpux_mmap mmap
|
||||
72 UNIMPL 0 nosys
|
||||
73 STD 2 munmap
|
||||
74 NOTIMPL 3 mprotect
|
||||
75 UNIMPL 0 nosys
|
||||
76 UNIMPL 0 nosys
|
||||
77 UNIMPL 0 nosys
|
||||
78 UNIMPL 0 nosys
|
||||
79 STD 2 getgroups
|
||||
80 STD 2 setgroups
|
||||
81 STD 1 hpux_getpgrp2
|
||||
82 STD 2 hpux_setpgrp2
|
||||
81 STD 1 hpux_getpgrp2 getpgrp2
|
||||
82 STD 2 hpux_setpgrp2 setpgrp2
|
||||
83 STD 3 setitimer
|
||||
84 STD 3 hpux_wait3
|
||||
85 STD 1 notimp swapon
|
||||
84 STD 3 hpux_wait3 wait3
|
||||
85 NOTIMPL 5 swapon
|
||||
86 STD 2 getitimer
|
||||
87 STD 0 nosys
|
||||
88 STD 0 nosys
|
||||
89 STD 0 nosys
|
||||
87 UNIMPL 0 nosys
|
||||
88 UNIMPL 0 nosys
|
||||
89 UNIMPL 0 nosys
|
||||
90 STD 2 dup2
|
||||
91 STD 2 nosys
|
||||
92 STD 2 hpux_fstat
|
||||
91 UNIMPL 0 nosys
|
||||
92 STD 2 hpux_fstat fstat
|
||||
93 STD 5 select
|
||||
94 STD 0 nosys
|
||||
94 UNIMPL 0 nosys
|
||||
95 STD 1 fsync
|
||||
96 STD 0 nosys
|
||||
97 STD 3 nosys
|
||||
98 STD 2 nosys
|
||||
99 STD 2 nosys
|
||||
100 STD 0 nosys
|
||||
101 STD 0 nosys
|
||||
102 STD 0 nosys
|
||||
96 UNIMPL 0 nosys
|
||||
97 UNIMPL 3 nosys
|
||||
98 UNIMPL 2 nosys
|
||||
99 UNIMPL 2 nosys
|
||||
100 UNIMPL 0 nosys
|
||||
101 UNIMPL 0 nosys
|
||||
102 UNIMPL 0 nosys
|
||||
103 STD 1 sigreturn
|
||||
104 STD 2 nosys
|
||||
105 STD 0 nosys
|
||||
106 STD 0 nosys
|
||||
107 STD 0 nosys
|
||||
108 STD 3 hpux_sigvec
|
||||
109 STD 1 hpux_sigblock
|
||||
110 STD 1 hpux_sigsetmask
|
||||
111 STD 1 hpux_sigpause
|
||||
104 UNIMPL 2 nosys
|
||||
105 UNIMPL 0 nosys
|
||||
106 UNIMPL 0 nosys
|
||||
107 UNIMPL 0 nosys
|
||||
108 STD 3 hpux_sigvec sigvec
|
||||
109 STD 1 hpux_sigblock sigblock
|
||||
110 STD 1 hpux_sigsetmask sigsetmask
|
||||
111 STD 1 hpux_sigpause sigpause
|
||||
112 STD 2 osigstack
|
||||
113 STD 0 nosys
|
||||
114 STD 0 nosys
|
||||
115 STD 0 nosys
|
||||
113 UNIMPL 0 nosys
|
||||
114 UNIMPL 0 nosys
|
||||
115 UNIMPL 0 nosys
|
||||
116 STD 2 gettimeofday
|
||||
117 STD 0 nosys
|
||||
118 STD 0 nosys
|
||||
119 STD 3 notimp hpib_io_stub
|
||||
120 STD 3 hpux_readv
|
||||
121 STD 3 hpux_writev
|
||||
117 UNIMPL 0 nosys
|
||||
118 UNIMPL 0 nosys
|
||||
119 NOTIMPL 3 hpib_io_stub
|
||||
120 STD 3 hpux_readv readv
|
||||
121 STD 3 hpux_writev writev
|
||||
122 STD 2 settimeofday
|
||||
123 STD 3 fchown
|
||||
124 STD 2 fchmod
|
||||
125 STD 0 nosys
|
||||
126 STD 3 hpux_setresuid
|
||||
127 STD 3 hpux_setresgid
|
||||
125 UNIMPL 0 nosys
|
||||
126 STD 3 hpux_setresuid setresuid
|
||||
127 STD 3 hpux_setresgid setresgid
|
||||
128 STD 2 rename
|
||||
129 STD 2 truncate
|
||||
130 STD 2 ftruncate
|
||||
131 STD 0 nosys
|
||||
132 STD 1 notimp sysconf
|
||||
133 STD 0 nosys
|
||||
134 STD 0 nosys
|
||||
135 STD 0 nosys
|
||||
129 COMPAT 2 truncate
|
||||
130 COMPAT 2 ftruncate
|
||||
131 UNIMPL 0 nosys
|
||||
132 STD 1 hpux_sysconf sysconf
|
||||
133 UNIMPL 0 nosys
|
||||
134 UNIMPL 0 nosys
|
||||
135 UNIMPL 0 nosys
|
||||
136 STD 2 mkdir
|
||||
137 STD 1 rmdir
|
||||
138 STD 0 nosys
|
||||
139 STD 0 sigreturn
|
||||
140 STD 0 nosys
|
||||
141 STD 0 nosys
|
||||
142 STD 0 nosys
|
||||
143 STD 0 nosys
|
||||
144 STD 0 nosys
|
||||
145 STD 0 nosys
|
||||
146 STD 0 nosys
|
||||
147 STD 0 nosys
|
||||
148 STD 0 nosys
|
||||
149 STD 0 nosys
|
||||
150 STD 0 nosys
|
||||
151 STD 3 notimp privgrp
|
||||
138 UNIMPL 0 nosys
|
||||
139 UNIMPL 0 nosys
|
||||
140 UNIMPL 0 nosys
|
||||
141 UNIMPL 0 nosys
|
||||
142 UNIMPL 0 nosys
|
||||
143 UNIMPL 0 nosys
|
||||
144 COMPAT 2 getrlimit
|
||||
145 COMPAT 2 setrlimit
|
||||
146 UNIMPL 0 nosys
|
||||
147 UNIMPL 0 nosys
|
||||
148 UNIMPL 0 nosys
|
||||
149 UNIMPL 0 nosys
|
||||
150 UNIMPL 0 nosys
|
||||
151 NOTIMPL 3 privgrp
|
||||
152 STD 2 hpux_rtprio rtprio
|
||||
153 STD 1 notimp plock
|
||||
154 STD 2 hpux_netioctl
|
||||
155 STD 4 hpux_lockf
|
||||
153 NOTIMPL 1 plock
|
||||
154 STD 2 hpux_netioctl netioctl
|
||||
155 STD 4 hpux_lockf lockf
|
||||
#ifdef SYSVSEM
|
||||
156 STD 3 semget
|
||||
157 STD 4 semctl
|
||||
158 STD 3 semop
|
||||
#else
|
||||
156 STD 3 notimp semget
|
||||
157 STD 4 notimp semctl
|
||||
158 STD 3 notimp semop
|
||||
156 NOTIMPL 3 semget
|
||||
157 NOTIMPL 4 semctl
|
||||
158 NOTIMPL 3 semop
|
||||
#endif
|
||||
#ifdef SYSVMSG
|
||||
159 STD 2 msgget
|
||||
|
@ -191,95 +195,179 @@
|
|||
161 STD 4 msgsnd
|
||||
162 STD 5 msgrcv
|
||||
#else
|
||||
159 STD 2 notimp msgget
|
||||
160 STD 3 notimp msgctl
|
||||
161 STD 4 notimp msgsnd
|
||||
162 STD 5 notimp msgrcv
|
||||
159 NOTIMPL 2 msgget
|
||||
160 NOTIMPL 3 msgctl
|
||||
161 NOTIMPL 4 msgsnd
|
||||
162 NOTIMPL 5 msgrcv
|
||||
#endif
|
||||
#ifdef SYSVSHM
|
||||
163 STD 3 shmget
|
||||
164 STD 3 shmctl
|
||||
164 STD 3 hpux_shmctl shmctl
|
||||
165 STD 3 shmat
|
||||
166 STD 1 shmdt
|
||||
#else
|
||||
163 STD 3 notimp shmget
|
||||
164 STD 3 notimp shmctl
|
||||
165 STD 3 notimp shmat
|
||||
166 STD 1 notimp shmdt
|
||||
163 NOTIMPL 3 shmget
|
||||
164 NOTIMPL 3 shmctl
|
||||
165 NOTIMPL 3 shmat
|
||||
166 NOTIMPL 1 shmdt
|
||||
#endif
|
||||
167 STD 1 hpux_advise
|
||||
168 STD 0 notimp dux_notconfigured
|
||||
169 STD 3 notimp cluster
|
||||
170 STD 4 notimp mkrnod
|
||||
171 STD 0 nosys
|
||||
172 STD 0 notimp dux_notconfigured
|
||||
173 STD 0 nosys
|
||||
174 STD 3 hpux_getcontext
|
||||
175 STD 0 nosys
|
||||
176 STD 0 nosys
|
||||
177 STD 0 nosys
|
||||
178 STD 0 notimp lsync
|
||||
179 STD 0 nosys
|
||||
180 STD 0 notimp mysite
|
||||
181 STD 0 notimp returnzero
|
||||
182 STD 0 nosys
|
||||
183 STD 0 nosys
|
||||
184 STD 0 nosys
|
||||
185 STD 0 nosys
|
||||
186 STD 3 notimp setacl
|
||||
187 STD 3 notimp fsetacl
|
||||
188 STD 3 notimp getacl
|
||||
189 STD 3 notimp fgetacl
|
||||
190 STD 6 hpux_getaccess
|
||||
191 STD 0 notimp getaudid
|
||||
192 STD 1 notimp setaudid
|
||||
193 STD 0 notimp getaudproc
|
||||
194 STD 1 notimp setaudproc
|
||||
195 STD 2 notimp getevent
|
||||
196 STD 2 notimp setevent
|
||||
197 STD 1 notimp audwrite
|
||||
198 STD 1 notimp audswitch
|
||||
199 STD 4 notimp audctl
|
||||
200 STD 3 hpux_waitpid
|
||||
201 STD 0 nosys
|
||||
202 STD 2 notimp netioctl
|
||||
203 STD 6 nosys
|
||||
204 STD 0 nosys
|
||||
205 STD 0 nosys
|
||||
206 STD 9 nosys
|
||||
207 STD 0 nosys
|
||||
208 STD 0 nosys
|
||||
209 STD 6 nosys
|
||||
210 STD 5 nosys
|
||||
211 STD 0 nosys
|
||||
212 STD 0 nosys
|
||||
213 STD 0 nosys
|
||||
214 STD 0 nosys
|
||||
215 STD 0 nosys
|
||||
216 STD 0 nosys
|
||||
217 STD 0 nosys
|
||||
218 STD 0 nosys
|
||||
219 STD 0 nosys
|
||||
220 STD 4 nosys
|
||||
221 STD 10 nosys
|
||||
222 STD 0 nosys
|
||||
223 STD 0 nosys
|
||||
224 STD 0 nosys
|
||||
225 STD 2 notimp pathconf
|
||||
226 STD 2 notimp fpathconf
|
||||
227 STD 0 nosys
|
||||
228 STD 0 nosys
|
||||
229 STD 0 notimp async_daemon
|
||||
230 STD 3 notimp nfs_fcntl
|
||||
167 STD 1 hpux_advise m68020_advise
|
||||
168 NOTIMPL 2 nsp_init
|
||||
169 NOTIMPL 3 cluster
|
||||
170 NOTIMPL 4 mkrnod
|
||||
171 UNIMPL 0 nosys
|
||||
172 NOTIMPL 0 unsp_open
|
||||
173 UNIMPL 0 nosys
|
||||
174 STD 3 hpux_getcontext getcontext
|
||||
175 UNIMPL 0 nosys
|
||||
176 UNIMPL 0 nosys
|
||||
177 UNIMPL 0 nosys
|
||||
178 NOTIMPL 0 lsync
|
||||
179 UNIMPL 0 nosys
|
||||
180 NOTIMPL 0 mysite
|
||||
181 NOTIMPL 1 sitels
|
||||
182 UNIMPL 0 nosys
|
||||
183 UNIMPL 0 nosys
|
||||
184 NOTIMPL 4 dskless_stats
|
||||
185 UNIMPL 0 nosys
|
||||
186 NOTIMPL 3 setacl
|
||||
187 NOTIMPL 3 fsetacl
|
||||
188 NOTIMPL 3 getacl
|
||||
189 NOTIMPL 3 fgetacl
|
||||
190 STD 6 hpux_getaccess getaccess
|
||||
191 NOTIMPL 0 getaudid
|
||||
192 NOTIMPL 1 setaudid
|
||||
193 NOTIMPL 0 getaudproc
|
||||
194 NOTIMPL 1 setaudproc
|
||||
195 NOTIMPL 2 getevent
|
||||
196 NOTIMPL 2 setevent
|
||||
197 NOTIMPL 1 audwrite
|
||||
198 NOTIMPL 1 audswitch
|
||||
199 NOTIMPL 4 audctl
|
||||
200 STD 3 hpux_waitpid waitpid
|
||||
201 UNIMPL 0 nosys
|
||||
202 UNIMPL 0 nosys
|
||||
203 UNIMPL 6 nosys
|
||||
204 UNIMPL 0 nosys
|
||||
205 UNIMPL 0 nosys
|
||||
206 UNIMPL 9 nosys
|
||||
207 UNIMPL 0 nosys
|
||||
208 UNIMPL 0 nosys
|
||||
209 UNIMPL 6 nosys
|
||||
210 UNIMPL 5 nosys
|
||||
211 UNIMPL 0 nosys
|
||||
212 UNIMPL 0 nosys
|
||||
213 UNIMPL 0 nosys
|
||||
214 UNIMPL 0 nosys
|
||||
215 UNIMPL 0 nosys
|
||||
216 UNIMPL 0 nosys
|
||||
217 UNIMPL 0 nosys
|
||||
218 UNIMPL 0 nosys
|
||||
219 UNIMPL 0 nosys
|
||||
220 UNIMPL 4 nosys
|
||||
221 UNIMPL 10 nosys
|
||||
222 UNIMPL 0 nosys
|
||||
223 UNIMPL 0 nosys
|
||||
224 UNIMPL 0 nosys
|
||||
225 NOTIMPL 2 pathconf
|
||||
226 NOTIMPL 2 fpathconf
|
||||
227 UNIMPL 0 nosys
|
||||
228 UNIMPL 0 nosys
|
||||
229 NOTIMPL 0 async_daemon
|
||||
230 NOTIMPL 3 nfs_fcntl
|
||||
231 STD 4 getdirentries
|
||||
232 STD 2 ogetdomainname
|
||||
233 STD 2 notimp nfs_getfh
|
||||
234 STD 4 notimp vfsmount
|
||||
235 STD 1 notimp nfs_svc
|
||||
236 STD 2 osetdomainname
|
||||
237 STD 0 notimp statfs
|
||||
238 STD 0 notimp fstatfs
|
||||
239 STD 3 hpux_sigaction
|
||||
240 STD 3 hpux_sigprocmask
|
||||
241 STD 1 hpux_sigpending
|
||||
242 STD 1 hpux_sigsuspend
|
||||
232 COMPAT 2 getdomainname
|
||||
233 NOTIMPL 2 nfs_getfh
|
||||
234 NOTIMPL 4 vfsmount
|
||||
235 NOTIMPL 1 nfs_svc
|
||||
236 COMPAT 2 setdomainname
|
||||
237 NOTIMPL 2 statfs
|
||||
238 NOTIMPL 2 fstatfs
|
||||
239 STD 3 hpux_sigaction sigaction
|
||||
240 STD 3 hpux_sigprocmask sigprocmask
|
||||
241 STD 1 hpux_sigpending sigpending
|
||||
242 STD 1 hpux_sigsuspend sigsuspend
|
||||
243 NOTIMPL 4 fsctl
|
||||
244 UNIMPL 0 nosys
|
||||
245 NOTIMPL 3 pstat
|
||||
246 UNIMPL 0 nosys
|
||||
247 UNIMPL 0 nosys
|
||||
248 UNIMPL 0 nosys
|
||||
249 UNIMPL 0 nosys
|
||||
250 UNIMPL 0 nosys
|
||||
251 UNIMPL 0 nosys
|
||||
252 UNIMPL 0 nosys
|
||||
253 UNIMPL 0 nosys
|
||||
254 UNIMPL 0 nosys
|
||||
255 UNIMPL 0 nosys
|
||||
256 UNIMPL 0 nosys
|
||||
257 UNIMPL 0 nosys
|
||||
258 UNIMPL 0 nosys
|
||||
259 UNIMPL 0 nosys
|
||||
260 UNIMPL 0 nosys
|
||||
261 UNIMPL 0 nosys
|
||||
262 UNIMPL 0 nosys
|
||||
263 UNIMPL 0 nosys
|
||||
264 UNIMPL 0 nosys
|
||||
265 UNIMPL 0 nosys
|
||||
266 UNIMPL 0 nosys
|
||||
267 UNIMPL 0 nosys
|
||||
268 STD 0 getdtablesize getnumfds
|
||||
269 UNIMPL 0 nosys
|
||||
270 UNIMPL 0 nosys
|
||||
271 UNIMPL 0 nosys
|
||||
272 STD 1 fchdir
|
||||
273 UNIMPL 0 nosys
|
||||
274 UNIMPL 0 nosys
|
||||
275 COMPAT 3 accept
|
||||
276 STD 3 bind
|
||||
277 STD 3 connect
|
||||
278 COMPAT 3 getpeername
|
||||
279 COMPAT 3 getsockname
|
||||
280 STD 5 getsockopt
|
||||
281 STD 2 listen
|
||||
282 COMPAT 4 recv
|
||||
283 COMPAT 6 recvfrom
|
||||
284 COMPAT 3 recvmsg
|
||||
285 COMPAT 4 send
|
||||
286 COMPAT 3 sendmsg
|
||||
287 STD 6 sendto
|
||||
288 STD 5 hpux_setsockopt2 setsockopt2
|
||||
289 STD 2 shutdown
|
||||
290 STD 3 socket
|
||||
291 STD 4 socketpair
|
||||
292 UNIMPL 0 nosys
|
||||
293 UNIMPL 0 nosys
|
||||
294 UNIMPL 0 nosys
|
||||
295 UNIMPL 0 nosys
|
||||
296 UNIMPL 0 nosys
|
||||
297 UNIMPL 0 nosys
|
||||
298 UNIMPL 0 nosys
|
||||
299 UNIMPL 0 nosys
|
||||
300 UNIMPL 0 nosys
|
||||
301 UNIMPL 0 nosys
|
||||
302 UNIMPL 0 nosys
|
||||
303 UNIMPL 0 nosys
|
||||
304 UNIMPL 0 nosys
|
||||
305 UNIMPL 0 nosys
|
||||
306 UNIMPL 0 nosys
|
||||
307 UNIMPL 0 nosys
|
||||
308 UNIMPL 0 nosys
|
||||
309 UNIMPL 0 nosys
|
||||
310 UNIMPL 0 nosys
|
||||
311 UNIMPL 0 nosys
|
||||
#ifdef SYSVSHM
|
||||
312 STD 4 semctl nsemctl
|
||||
#else
|
||||
312 NOTIMPL 4 nsemctl
|
||||
#endif
|
||||
#ifdef SYSVMSG
|
||||
313 STD 3 msgctl nmsgctl
|
||||
#else
|
||||
313 NOTIMPL 3 nmsgctl
|
||||
#endif
|
||||
#ifdef SYSVSHM
|
||||
314 STD 3 hpux_nshmctl nshmctl
|
||||
#else
|
||||
314 NOTIMPL 3 nshmctl
|
||||
#endif
|
||||
|
|
Loading…
Reference in New Issue