Added symlink, rename and readlink

This commit is contained in:
manu 2001-12-27 11:07:23 +00:00
parent 98f703ff1e
commit daf979dbeb
5 changed files with 37 additions and 23 deletions

View File

@ -1,10 +1,10 @@
/* $NetBSD: irix_syscall.h,v 1.17 2001/12/26 11:04:20 manu Exp $ */ /* $NetBSD: irix_syscall.h,v 1.18 2001/12/27 11:07:23 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.15 2001/12/25 21:32:31 manu Exp * created from NetBSD: syscalls.master,v 1.16 2001/12/26 11:04:20 manu Exp
*/ */
/* syscall: "syscall" ret: "int" args: */ /* syscall: "syscall" ret: "int" args: */
@ -233,6 +233,15 @@
/* syscall: "socket" ret: "int" args: "int" "int" "int" */ /* syscall: "socket" ret: "int" args: "int" "int" "int" */
#define IRIX_SYS_socket 107 #define IRIX_SYS_socket 107
/* syscall: "rename" ret: "int" args: "const char *" "const char *" */
#define IRIX_SYS_rename 114
/* syscall: "symlink" ret: "int" args: "const char *" "const char *" */
#define IRIX_SYS_symlink 115
/* syscall: "readlink" ret: "int" args: "const char *" "char *" "size_t" */
#define IRIX_SYS_readlink 116
/* syscall: "prctl" ret: "ptrdiff_t" args: "unsigned int" "void *" */ /* syscall: "prctl" ret: "ptrdiff_t" args: "unsigned int" "void *" */
#define IRIX_SYS_prctl 130 #define IRIX_SYS_prctl 130

View File

@ -1,10 +1,10 @@
/* $NetBSD: irix_syscallargs.h,v 1.17 2001/12/26 11:04:20 manu Exp $ */ /* $NetBSD: irix_syscallargs.h,v 1.18 2001/12/27 11:07:23 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.15 2001/12/25 21:32:31 manu Exp * created from NetBSD: syscalls.master,v 1.16 2001/12/26 11:04:20 manu Exp
*/ */
#ifndef _IRIX_SYS__SYSCALLARGS_H_ #ifndef _IRIX_SYS__SYSCALLARGS_H_
@ -364,6 +364,9 @@ int sys_sendto(struct proc *, void *, register_t *);
int sys_setsockopt(struct proc *, void *, register_t *); int sys_setsockopt(struct proc *, void *, register_t *);
int sys_shutdown(struct proc *, void *, register_t *); int sys_shutdown(struct proc *, void *, register_t *);
int svr4_sys_socket(struct proc *, void *, register_t *); int svr4_sys_socket(struct proc *, void *, register_t *);
int sys_rename(struct proc *, void *, register_t *);
int sys_symlink(struct proc *, void *, register_t *);
int sys_readlink(struct proc *, void *, register_t *);
int irix_sys_prctl(struct proc *, void *, register_t *); 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 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.17 2001/12/26 11:04:20 manu Exp $ */ /* $NetBSD: irix_syscalls.c,v 1.18 2001/12/27 11:07:23 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.15 2001/12/25 21:32:31 manu Exp * created from NetBSD: syscalls.master,v 1.16 2001/12/26 11:04:20 manu Exp
*/ */
#include <sys/cdefs.h> #include <sys/cdefs.h>
__KERNEL_RCSID(0, "$NetBSD: irix_syscalls.c,v 1.17 2001/12/26 11:04:20 manu Exp $"); __KERNEL_RCSID(0, "$NetBSD: irix_syscalls.c,v 1.18 2001/12/27 11:07:23 manu Exp $");
#if defined(_KERNEL_OPT) #if defined(_KERNEL_OPT)
#if defined(_KERNEL_OPT) #if defined(_KERNEL_OPT)
@ -155,9 +155,9 @@ const char *const irix_syscallnames[] = {
"#111 (unimplemented setdomainname)", /* 111 = unimplemented setdomainname */ "#111 (unimplemented setdomainname)", /* 111 = unimplemented setdomainname */
"#112 (unimplemented truncate)", /* 112 = unimplemented truncate */ "#112 (unimplemented truncate)", /* 112 = unimplemented truncate */
"#113 (unimplemented ftruncate)", /* 113 = unimplemented ftruncate */ "#113 (unimplemented ftruncate)", /* 113 = unimplemented ftruncate */
"#114 (unimplemented rename)", /* 114 = unimplemented rename */ "rename", /* 114 = rename */
"#115 (unimplemented symlink)", /* 115 = unimplemented symlink */ "symlink", /* 115 = symlink */
"#116 (unimplemented readlink)", /* 116 = unimplemented readlink */ "readlink", /* 116 = readlink */
"#117 (unimplemented lstat)", /* 117 = unimplemented lstat */ "#117 (unimplemented lstat)", /* 117 = unimplemented lstat */
"#118 (unimplemented)", /* 118 = unimplemented */ "#118 (unimplemented)", /* 118 = unimplemented */
"#119 (unimplemented nfs_svc)", /* 119 = unimplemented nfs_svc */ "#119 (unimplemented nfs_svc)", /* 119 = unimplemented nfs_svc */

View File

@ -1,14 +1,14 @@
/* $NetBSD: irix_sysent.c,v 1.17 2001/12/26 11:04:20 manu Exp $ */ /* $NetBSD: irix_sysent.c,v 1.18 2001/12/27 11:07:24 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.15 2001/12/25 21:32:31 manu Exp * created from NetBSD: syscalls.master,v 1.16 2001/12/26 11:04:20 manu Exp
*/ */
#include <sys/cdefs.h> #include <sys/cdefs.h>
__KERNEL_RCSID(0, "$NetBSD: irix_sysent.c,v 1.17 2001/12/26 11:04:20 manu Exp $"); __KERNEL_RCSID(0, "$NetBSD: irix_sysent.c,v 1.18 2001/12/27 11:07:24 manu Exp $");
#if defined(_KERNEL_OPT) #if defined(_KERNEL_OPT)
#include "opt_ntp.h" #include "opt_ntp.h"
@ -272,12 +272,12 @@ struct sysent irix_sysent[] = {
sys_nosys }, /* 112 = unimplemented truncate */ sys_nosys }, /* 112 = unimplemented truncate */
{ 0, 0, 0, { 0, 0, 0,
sys_nosys }, /* 113 = unimplemented ftruncate */ sys_nosys }, /* 113 = unimplemented ftruncate */
{ 0, 0, 0, { 2, s(struct sys_rename_args), 0,
sys_nosys }, /* 114 = unimplemented rename */ sys_rename }, /* 114 = rename */
{ 0, 0, 0, { 2, s(struct sys_symlink_args), 0,
sys_nosys }, /* 115 = unimplemented symlink */ sys_symlink }, /* 115 = symlink */
{ 0, 0, 0, { 3, s(struct sys_readlink_args), 0,
sys_nosys }, /* 116 = unimplemented readlink */ sys_readlink }, /* 116 = readlink */
{ 0, 0, 0, { 0, 0, 0,
sys_nosys }, /* 117 = unimplemented lstat */ sys_nosys }, /* 117 = unimplemented lstat */
{ 0, 0, 0, { 0, 0, 0,

View File

@ -1,4 +1,4 @@
$NetBSD: syscalls.master,v 1.16 2001/12/26 11:04:20 manu Exp $ $NetBSD: syscalls.master,v 1.17 2001/12/27 11:07:24 manu Exp $
; @(#)syscalls.master 8.1 (Berkeley) 7/19/93 ; @(#)syscalls.master 8.1 (Berkeley) 7/19/93
@ -213,9 +213,11 @@
111 UNIMPL setdomainname 111 UNIMPL setdomainname
112 UNIMPL truncate 112 UNIMPL truncate
113 UNIMPL ftruncate 113 UNIMPL ftruncate
114 UNIMPL rename 114 NOARGS { int sys_rename(const char *from, const char *to); }
115 UNIMPL symlink 115 NOARGS { int sys_symlink(const char *path, \
116 UNIMPL readlink const char *link); }
116 NOARGS { int sys_readlink(const char *path, char *buf, \
size_t count); }
117 UNIMPL lstat 117 UNIMPL lstat
118 UNIMPL 118 UNIMPL
119 UNIMPL nfs_svc 119 UNIMPL nfs_svc