summaryrefslogtreecommitdiff
path: root/sys/compat/linux
diff options
context:
space:
mode:
authorAndrew Gallatin <gallatin@FreeBSD.org>2000-11-22 15:39:02 +0000
committerAndrew Gallatin <gallatin@FreeBSD.org>2000-11-22 15:39:02 +0000
commit768a2aa2c2c305cb36fa51c4c14229bf48f4e0d8 (patch)
tree80badd550696a65a594240b76f328fe6635dc05f /sys/compat/linux
parent42c58545a4d6dd247ae824b1a6e11a4a561e3765 (diff)
Notes
Diffstat (limited to 'sys/compat/linux')
-rw-r--r--sys/compat/linux/linux_socket.c10
1 files changed, 9 insertions, 1 deletions
diff --git a/sys/compat/linux/linux_socket.c b/sys/compat/linux/linux_socket.c
index 2fdd3df73886..cfc7179cc08d 100644
--- a/sys/compat/linux/linux_socket.c
+++ b/sys/compat/linux/linux_socket.c
@@ -343,8 +343,10 @@ struct linux_connect_args {
struct sockaddr * name;
int namelen;
};
+int linux_connect(struct proc *, struct linux_connect_args *);
+#endif /* !__alpha__*/
-static int
+int
linux_connect(struct proc *p, struct linux_connect_args *args)
{
struct linux_connect_args linux_args;
@@ -355,8 +357,12 @@ linux_connect(struct proc *p, struct linux_connect_args *args)
} */ bsd_args;
int error;
+#ifdef __alpha__
+ bcopy(args, &linux_args, sizeof(linux_args));
+#else
if ((error = copyin(args, &linux_args, sizeof(linux_args))))
return (error);
+#endif /* __alpha__ */
bsd_args.s = linux_args.s;
bsd_args.name = (caddr_t)linux_args.name;
@@ -418,6 +424,8 @@ linux_connect(struct proc *p, struct linux_connect_args *args)
return (error);
}
+#ifndef __alpha__
+
struct linux_listen_args {
int s;
int backlog;