Added getpgrp/setpgrp.

setpgrp is stolen from compat/sunos. It should probbaly be moved to
/compat/common
This commit is contained in:
manu 2002-04-16 20:15:47 +00:00
parent 08948f97d1
commit 5261d673c9
6 changed files with 33 additions and 19 deletions

View File

@ -1,4 +1,4 @@
# $NetBSD: files.irix,v 1.18 2002/03/31 22:22:44 christos Exp $ # $NetBSD: files.irix,v 1.19 2002/04/16 20:15:47 manu Exp $
# #
file arch/mips/mips/irix_syscall.c compat_irix file arch/mips/mips/irix_syscall.c compat_irix
@ -10,6 +10,7 @@ file compat/irix/irix_exec_elf32.c compat_irix & exec_elf32
file compat/irix/irix_fcntl.c compat_irix file compat/irix/irix_fcntl.c compat_irix
file compat/irix/irix_ioctl.c compat_irix file compat/irix/irix_ioctl.c compat_irix
file compat/irix/irix_kmem.c compat_irix file compat/irix/irix_kmem.c compat_irix
file compat/irix/irix_misc.c compat_irix
file compat/irix/irix_mount.c compat_irix file compat/irix/irix_mount.c compat_irix
file compat/irix/irix_prctl.c compat_irix file compat/irix/irix_prctl.c compat_irix
file compat/irix/irix_signal.c compat_irix file compat/irix/irix_signal.c compat_irix

View File

@ -1,10 +1,10 @@
/* $NetBSD: irix_syscall.h,v 1.35 2002/04/14 21:50:50 manu Exp $ */ /* $NetBSD: irix_syscall.h,v 1.36 2002/04/16 20:15:47 manu Exp $ */
/* /*
* System call numbers. * System call numbers.
* *
* DO NOT EDIT-- this file is automatically generated. * DO NOT EDIT-- this file is automatically generated.
* created from NetBSD: syscalls.master,v 1.33 2002/04/12 18:44:59 manu Exp * created from NetBSD: syscalls.master,v 1.34 2002/04/14 21:50:50 manu Exp
*/ */
/* syscall: "syscall" ret: "int" args: */ /* syscall: "syscall" ret: "int" args: */
@ -298,6 +298,12 @@
/* syscall: "mprotect" ret: "int" args: "void *" "int" "int" */ /* syscall: "mprotect" ret: "int" args: "void *" "int" "int" */
#define IRIX_SYS_mprotect 136 #define IRIX_SYS_mprotect 136
/* syscall: "getpgrp" ret: "int" args: */
#define IRIX_SYS_getpgrp 143
/* syscall: "setpgrp" ret: "int" args: "int" "int" */
#define IRIX_SYS_setpgrp 144
/* syscall: "fsync" ret: "int" args: "int" */ /* syscall: "fsync" ret: "int" args: "int" */
#define IRIX_SYS_fsync 146 #define IRIX_SYS_fsync 146

View File

@ -1,10 +1,10 @@
/* $NetBSD: irix_syscallargs.h,v 1.35 2002/04/14 21:50:50 manu Exp $ */ /* $NetBSD: irix_syscallargs.h,v 1.36 2002/04/16 20:15:47 manu Exp $ */
/* /*
* System call argument lists. * System call argument lists.
* *
* DO NOT EDIT-- this file is automatically generated. * DO NOT EDIT-- this file is automatically generated.
* created from NetBSD: syscalls.master,v 1.33 2002/04/12 18:44:59 manu Exp * created from NetBSD: syscalls.master,v 1.34 2002/04/14 21:50:50 manu Exp
*/ */
#ifndef _IRIX_SYS__SYSCALLARGS_H_ #ifndef _IRIX_SYS__SYSCALLARGS_H_
@ -87,6 +87,11 @@ struct irix_sys_prctl_args {
syscallarg(void *) arg1; syscallarg(void *) arg1;
}; };
struct irix_sys_setpgrp_args {
syscallarg(int) pid;
syscallarg(int) pgid;
};
struct irix_sys_systeminfo_args { struct irix_sys_systeminfo_args {
syscallarg(int) what; syscallarg(int) what;
syscallarg(char *) buf; syscallarg(char *) buf;
@ -276,6 +281,8 @@ int irix_sys_prctl(struct proc *, void *, register_t *);
int svr4_sys_mmap(struct proc *, void *, register_t *); int svr4_sys_mmap(struct proc *, void *, register_t *);
int sys_munmap(struct proc *, void *, register_t *); int sys_munmap(struct proc *, void *, register_t *);
int sys_mprotect(struct proc *, void *, register_t *); int sys_mprotect(struct proc *, void *, register_t *);
int sys_getpgrp(struct proc *, void *, register_t *);
int irix_sys_setpgrp(struct proc *, void *, register_t *);
int sys_fsync(struct proc *, void *, register_t *); int sys_fsync(struct proc *, void *, register_t *);
int irix_sys_systeminfo(struct proc *, void *, register_t *); int irix_sys_systeminfo(struct proc *, void *, register_t *);
int irix_sys_xstat(struct proc *, void *, register_t *); int irix_sys_xstat(struct proc *, void *, register_t *);

View File

@ -1,14 +1,14 @@
/* $NetBSD: irix_syscalls.c,v 1.35 2002/04/14 21:50:50 manu Exp $ */ /* $NetBSD: irix_syscalls.c,v 1.36 2002/04/16 20:15:47 manu Exp $ */
/* /*
* System call names. * System call names.
* *
* DO NOT EDIT-- this file is automatically generated. * DO NOT EDIT-- this file is automatically generated.
* created from NetBSD: syscalls.master,v 1.33 2002/04/12 18:44:59 manu Exp * created from NetBSD: syscalls.master,v 1.34 2002/04/14 21:50:50 manu Exp
*/ */
#include <sys/cdefs.h> #include <sys/cdefs.h>
__KERNEL_RCSID(0, "$NetBSD: irix_syscalls.c,v 1.35 2002/04/14 21:50:50 manu Exp $"); __KERNEL_RCSID(0, "$NetBSD: irix_syscalls.c,v 1.36 2002/04/16 20:15:47 manu Exp $");
#if defined(_KERNEL_OPT) #if defined(_KERNEL_OPT)
#if defined(_KERNEL_OPT) #if defined(_KERNEL_OPT)
@ -190,8 +190,8 @@ const char *const irix_syscallnames[] = {
"#140 (unimplemented getpagesize)", /* 140 = unimplemented getpagesize */ "#140 (unimplemented getpagesize)", /* 140 = unimplemented getpagesize */
"#141 (unimplemented quotactl)", /* 141 = unimplemented quotactl */ "#141 (unimplemented quotactl)", /* 141 = unimplemented quotactl */
"#142 (unimplemented)", /* 142 = unimplemented */ "#142 (unimplemented)", /* 142 = unimplemented */
"#143 (unimplemented getpgrp)", /* 143 = unimplemented getpgrp */ "getpgrp", /* 143 = getpgrp */
"#144 (unimplemented setpgrp)", /* 144 = unimplemented setpgrp */ "setpgrp", /* 144 = setpgrp */
"#145 (unimplemented vhangup)", /* 145 = unimplemented vhangup */ "#145 (unimplemented vhangup)", /* 145 = unimplemented vhangup */
"fsync", /* 146 = fsync */ "fsync", /* 146 = fsync */
"#147 (unimplemented fchdir)", /* 147 = unimplemented fchdir */ "#147 (unimplemented fchdir)", /* 147 = unimplemented fchdir */

View File

@ -1,14 +1,14 @@
/* $NetBSD: irix_sysent.c,v 1.35 2002/04/14 21:50:50 manu Exp $ */ /* $NetBSD: irix_sysent.c,v 1.36 2002/04/16 20:15:48 manu Exp $ */
/* /*
* System call switch table. * System call switch table.
* *
* DO NOT EDIT-- this file is automatically generated. * DO NOT EDIT-- this file is automatically generated.
* created from NetBSD: syscalls.master,v 1.33 2002/04/12 18:44:59 manu Exp * created from NetBSD: syscalls.master,v 1.34 2002/04/14 21:50:50 manu Exp
*/ */
#include <sys/cdefs.h> #include <sys/cdefs.h>
__KERNEL_RCSID(0, "$NetBSD: irix_sysent.c,v 1.35 2002/04/14 21:50:50 manu Exp $"); __KERNEL_RCSID(0, "$NetBSD: irix_sysent.c,v 1.36 2002/04/16 20:15:48 manu Exp $");
#if defined(_KERNEL_OPT) #if defined(_KERNEL_OPT)
#include "opt_ntp.h" #include "opt_ntp.h"
@ -337,9 +337,9 @@ struct sysent irix_sysent[] = {
{ 0, 0, 0, { 0, 0, 0,
sys_nosys }, /* 142 = unimplemented */ sys_nosys }, /* 142 = unimplemented */
{ 0, 0, 0, { 0, 0, 0,
sys_nosys }, /* 143 = unimplemented getpgrp */ sys_getpgrp }, /* 143 = getpgrp */
{ 0, 0, 0, { 2, s(struct irix_sys_setpgrp_args), 0,
sys_nosys }, /* 144 = unimplemented setpgrp */ irix_sys_setpgrp }, /* 144 = setpgrp */
{ 0, 0, 0, { 0, 0, 0,
sys_nosys }, /* 145 = unimplemented vhangup */ sys_nosys }, /* 145 = unimplemented vhangup */
{ 1, s(struct sys_fsync_args), 0, { 1, s(struct sys_fsync_args), 0,

View File

@ -1,4 +1,4 @@
$NetBSD: syscalls.master,v 1.34 2002/04/14 21:50:50 manu Exp $ $NetBSD: syscalls.master,v 1.35 2002/04/16 20:15:48 manu Exp $
; @(#)syscalls.master 8.1 (Berkeley) 7/19/93 ; @(#)syscalls.master 8.1 (Berkeley) 7/19/93
@ -260,8 +260,8 @@
140 UNIMPL getpagesize 140 UNIMPL getpagesize
141 UNIMPL quotactl 141 UNIMPL quotactl
142 UNIMPL 142 UNIMPL
143 UNIMPL getpgrp 143 NOARGS { int sys_getpgrp(void); }
144 UNIMPL setpgrp 144 STD { int irix_sys_setpgrp(int pid, int pgid); }
145 UNIMPL vhangup 145 UNIMPL vhangup
146 NOARGS { int sys_fsync(int fd); } 146 NOARGS { int sys_fsync(int fd); }
147 UNIMPL fchdir 147 UNIMPL fchdir