Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/sys/compat/osf1 plink, plink.... socketpair!
details: https://anonhg.NetBSD.org/src/rev/7295a93f193a
branches: trunk
changeset: 472850:7295a93f193a
user: cgd <cgd%NetBSD.org@localhost>
date: Mon May 10 01:58:37 1999 +0000
description:
plink, plink.... socketpair!
diffstat:
sys/compat/osf1/osf1_socket.c | 26 ++++++++++++++++++++++++--
sys/compat/osf1/syscalls.master | 5 +++--
2 files changed, 27 insertions(+), 4 deletions(-)
diffs (63 lines):
diff -r 6dba31ed2833 -r 7295a93f193a sys/compat/osf1/osf1_socket.c
--- a/sys/compat/osf1/osf1_socket.c Mon May 10 01:27:28 1999 +0000
+++ b/sys/compat/osf1/osf1_socket.c Mon May 10 01:58:37 1999 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: osf1_socket.c,v 1.3 1999/05/05 01:51:37 cgd Exp $ */
+/* $NetBSD: osf1_socket.c,v 1.4 1999/05/10 01:58:37 cgd Exp $ */
/*
* Copyright (c) 1999 Christopher G. Demetriou. All rights reserved.
@@ -107,7 +107,7 @@
/* XXX TRANSLATE */
- if (SCARG(uap, type) > AF_LINK)
+ if (SCARG(uap, domain) > AF_LINK)
return (EINVAL); /* XXX After AF_LINK, divergence. */
SCARG(&a, domain) = SCARG(uap, domain);
@@ -116,3 +116,25 @@
return sys_socket(p, &a, retval);
}
+
+int
+osf1_sys_socketpair(p, v, retval)
+ struct proc *p;
+ void *v;
+ register_t *retval;
+{
+ struct osf1_sys_socketpair_args *uap = v;
+ struct sys_socketpair_args a;
+
+ /* XXX TRANSLATE */
+
+ if (SCARG(uap, domain) > AF_LINK)
+ return (EINVAL); /* XXX After AF_LINK, divergence. */
+
+ SCARG(&a, domain) = SCARG(uap, domain);
+ SCARG(&a, type) = SCARG(uap, type);
+ SCARG(&a, protocol) = SCARG(uap, protocol);
+ SCARG(&a, rsv) = SCARG(uap, rsv);
+
+ return sys_socketpair(p, &a, retval);
+}
diff -r 6dba31ed2833 -r 7295a93f193a sys/compat/osf1/syscalls.master
--- a/sys/compat/osf1/syscalls.master Mon May 10 01:27:28 1999 +0000
+++ b/sys/compat/osf1/syscalls.master Mon May 10 01:58:37 1999 +0000
@@ -1,4 +1,4 @@
- $NetBSD: syscalls.master,v 1.26 1999/05/04 05:17:22 cgd Exp $
+ $NetBSD: syscalls.master,v 1.27 1999/05/10 01:58:37 cgd Exp $
; @(#)syscalls.master 8.1 (Berkeley) 7/19/93
@@ -225,7 +225,8 @@
133 STD { int osf1_sys_sendto(int s, caddr_t buf, size_t len, \
int flags, struct sockaddr *to, int tolen); }
134 NOARGS { int sys_shutdown(int s, int how); }
-135 UNIMPL socketpair
+135 STD { int osf1_sys_socketpair(int domain, int type, \
+ int protocol, int *rsv); }
136 NOARGS { int sys_mkdir(const char *path, int mode); }
137 NOARGS { int sys_rmdir(const char *path); }
138 STD { int osf1_sys_utimes(const char *path, \
Home |
Main Index |
Thread Index |
Old Index