Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/sys/compat/irix Added getpgrp/setpgrp.
details: https://anonhg.NetBSD.org/src/rev/f1f862f1b146
branches: trunk
changeset: 525749:f1f862f1b146
user: manu <manu%NetBSD.org@localhost>
date: Tue Apr 16 20:15:47 2002 +0000
description:
Added getpgrp/setpgrp.
setpgrp is stolen from compat/sunos. It should probbaly be moved to
/compat/common
diffstat:
sys/compat/irix/files.irix | 3 ++-
sys/compat/irix/irix_syscall.h | 10 ++++++++--
sys/compat/irix/irix_syscallargs.h | 11 +++++++++--
sys/compat/irix/irix_syscalls.c | 10 +++++-----
sys/compat/irix/irix_sysent.c | 12 ++++++------
sys/compat/irix/syscalls.master | 6 +++---
6 files changed, 33 insertions(+), 19 deletions(-)
diffs (169 lines):
diff -r 74cb1ce17d90 -r f1f862f1b146 sys/compat/irix/files.irix
--- a/sys/compat/irix/files.irix Tue Apr 16 20:15:03 2002 +0000
+++ b/sys/compat/irix/files.irix Tue Apr 16 20:15:47 2002 +0000
@@ -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
@@ -10,6 +10,7 @@
file compat/irix/irix_fcntl.c compat_irix
file compat/irix/irix_ioctl.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_prctl.c compat_irix
file compat/irix/irix_signal.c compat_irix
diff -r 74cb1ce17d90 -r f1f862f1b146 sys/compat/irix/irix_syscall.h
--- a/sys/compat/irix/irix_syscall.h Tue Apr 16 20:15:03 2002 +0000
+++ b/sys/compat/irix/irix_syscall.h Tue Apr 16 20:15:47 2002 +0000
@@ -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.
*
* 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: */
@@ -298,6 +298,12 @@
/* syscall: "mprotect" ret: "int" args: "void *" "int" "int" */
#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" */
#define IRIX_SYS_fsync 146
diff -r 74cb1ce17d90 -r f1f862f1b146 sys/compat/irix/irix_syscallargs.h
--- a/sys/compat/irix/irix_syscallargs.h Tue Apr 16 20:15:03 2002 +0000
+++ b/sys/compat/irix/irix_syscallargs.h Tue Apr 16 20:15:47 2002 +0000
@@ -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.
*
* 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_
@@ -87,6 +87,11 @@
syscallarg(void *) arg1;
};
+struct irix_sys_setpgrp_args {
+ syscallarg(int) pid;
+ syscallarg(int) pgid;
+};
+
struct irix_sys_systeminfo_args {
syscallarg(int) what;
syscallarg(char *) buf;
@@ -276,6 +281,8 @@
int svr4_sys_mmap(struct proc *, void *, register_t *);
int sys_munmap(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 irix_sys_systeminfo(struct proc *, void *, register_t *);
int irix_sys_xstat(struct proc *, void *, register_t *);
diff -r 74cb1ce17d90 -r f1f862f1b146 sys/compat/irix/irix_syscalls.c
--- a/sys/compat/irix/irix_syscalls.c Tue Apr 16 20:15:03 2002 +0000
+++ b/sys/compat/irix/irix_syscalls.c Tue Apr 16 20:15:47 2002 +0000
@@ -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.
*
* 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>
-__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)
@@ -190,8 +190,8 @@
"#140 (unimplemented getpagesize)", /* 140 = unimplemented getpagesize */
"#141 (unimplemented quotactl)", /* 141 = unimplemented quotactl */
"#142 (unimplemented)", /* 142 = unimplemented */
- "#143 (unimplemented getpgrp)", /* 143 = unimplemented getpgrp */
- "#144 (unimplemented setpgrp)", /* 144 = unimplemented setpgrp */
+ "getpgrp", /* 143 = getpgrp */
+ "setpgrp", /* 144 = setpgrp */
"#145 (unimplemented vhangup)", /* 145 = unimplemented vhangup */
"fsync", /* 146 = fsync */
"#147 (unimplemented fchdir)", /* 147 = unimplemented fchdir */
diff -r 74cb1ce17d90 -r f1f862f1b146 sys/compat/irix/irix_sysent.c
--- a/sys/compat/irix/irix_sysent.c Tue Apr 16 20:15:03 2002 +0000
+++ b/sys/compat/irix/irix_sysent.c Tue Apr 16 20:15:47 2002 +0000
@@ -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.
*
* 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>
-__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)
#include "opt_ntp.h"
@@ -337,9 +337,9 @@
{ 0, 0, 0,
sys_nosys }, /* 142 = unimplemented */
{ 0, 0, 0,
- sys_nosys }, /* 143 = unimplemented getpgrp */
- { 0, 0, 0,
- sys_nosys }, /* 144 = unimplemented setpgrp */
+ sys_getpgrp }, /* 143 = getpgrp */
+ { 2, s(struct irix_sys_setpgrp_args), 0,
+ irix_sys_setpgrp }, /* 144 = setpgrp */
{ 0, 0, 0,
sys_nosys }, /* 145 = unimplemented vhangup */
{ 1, s(struct sys_fsync_args), 0,
diff -r 74cb1ce17d90 -r f1f862f1b146 sys/compat/irix/syscalls.master
--- a/sys/compat/irix/syscalls.master Tue Apr 16 20:15:03 2002 +0000
+++ b/sys/compat/irix/syscalls.master Tue Apr 16 20:15:47 2002 +0000
@@ -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
@@ -260,8 +260,8 @@
140 UNIMPL getpagesize
141 UNIMPL quotactl
142 UNIMPL
-143 UNIMPL getpgrp
-144 UNIMPL setpgrp
+143 NOARGS { int sys_getpgrp(void); }
+144 STD { int irix_sys_setpgrp(int pid, int pgid); }
145 UNIMPL vhangup
146 NOARGS { int sys_fsync(int fd); }
147 UNIMPL fchdir
Home |
Main Index |
Thread Index |
Old Index