Page Menu
Home
FreeBSD
Search
Configure Global Search
Log In
Files
F178180162
D62274.1796209513.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Flag For Later
Award Token
Authored By
Unknown
Size
17 KB
Referenced Files
None
Subscribers
None
D62274.1796209513.diff
View Options
diff --git a/sys/powerpc/linux/linux_machdep.c b/sys/powerpc/linux/linux_machdep.c
--- a/sys/powerpc/linux/linux_machdep.c
+++ b/sys/powerpc/linux/linux_machdep.c
@@ -49,6 +49,7 @@
#include <compat/linux/linux_dtrace.h>
#include <compat/linux/linux_fork.h>
#include <compat/linux/linux_ioctl.h>
+#include <compat/linux/linux_ipc.h>
#include <compat/linux/linux_misc.h>
#include <compat/linux/linux_mmap.h>
#include <compat/linux/linux_util.h>
@@ -77,6 +78,178 @@
uap->flags, uap->fd, uap->pgoff));
}
+/*
+ * PowerPC has dedicated send(2) and recv(2) system calls, where the other
+ * 64-bit architectures have their C library use sendto(2) and recvfrom(2).
+ */
+int
+linux_send(struct thread *td, struct linux_send_args *args)
+{
+ struct linux_sendto_args sa = {
+ .s = args->s,
+ .msg = args->msg,
+ .len = args->len,
+ .flags = args->flags,
+ .to = PTROUT(NULL),
+ .tolen = 0,
+ };
+
+ return (linux_sendto(td, &sa));
+}
+
+int
+linux_recv(struct thread *td, struct linux_recv_args *args)
+{
+ struct linux_recvfrom_args ra = {
+ .s = args->s,
+ .buf = args->buf,
+ .len = args->len,
+ .flags = args->flags,
+ .from = PTROUT(NULL),
+ .fromlen = PTROUT(NULL),
+ };
+
+ return (linux_recvfrom(td, &ra));
+}
+
+/*
+ * The C library goes through the ipc(2) multiplexer for all of System V
+ * IPC, the direct system calls only appeared in Linux 5.1.
+ */
+struct l_ipc_kludge {
+ l_uintptr_t msgp;
+ l_long msgtyp;
+};
+
+int
+linux_ipc(struct thread *td, struct linux_ipc_args *args)
+{
+
+ switch (args->what & 0xFFFF) {
+ case LINUX_SEMOP:
+ return (kern_semop(td, args->arg1, PTRIN(args->ptr),
+ args->arg2, NULL));
+ case LINUX_SEMGET: {
+ struct linux_semget_args a;
+
+ a.key = args->arg1;
+ a.nsems = args->arg2;
+ a.semflg = args->arg3;
+ return (linux_semget(td, &a));
+ }
+ case LINUX_SEMCTL: {
+ struct linux_semctl_args a;
+ int error;
+
+ a.semid = args->arg1;
+ a.semnum = args->arg2;
+ a.cmd = args->arg3;
+ error = copyin(PTRIN(args->ptr), &a.arg, sizeof(a.arg));
+ if (error != 0)
+ return (error);
+ return (linux_semctl(td, &a));
+ }
+ case LINUX_SEMTIMEDOP: {
+ struct linux_semtimedop_args a;
+
+ a.semid = args->arg1;
+ a.tsops = PTRIN(args->ptr);
+ a.nsops = args->arg2;
+ a.timeout = PTRIN(args->arg5);
+ return (linux_semtimedop(td, &a));
+ }
+ case LINUX_MSGSND: {
+ struct linux_msgsnd_args a;
+
+ a.msqid = args->arg1;
+ a.msgp = PTRIN(args->ptr);
+ a.msgsz = args->arg2;
+ a.msgflg = args->arg3;
+ return (linux_msgsnd(td, &a));
+ }
+ case LINUX_MSGRCV: {
+ struct linux_msgrcv_args a;
+
+ a.msqid = args->arg1;
+ a.msgsz = args->arg2;
+ a.msgflg = args->arg3;
+ if ((args->what >> 16) == 0) {
+ struct l_ipc_kludge tmp;
+ int error;
+
+ if (args->ptr == 0)
+ return (EINVAL);
+ error = copyin(PTRIN(args->ptr), &tmp, sizeof(tmp));
+ if (error != 0)
+ return (error);
+ a.msgp = PTRIN(tmp.msgp);
+ a.msgtyp = tmp.msgtyp;
+ } else {
+ a.msgp = PTRIN(args->ptr);
+ a.msgtyp = args->arg5;
+ }
+ return (linux_msgrcv(td, &a));
+ }
+ case LINUX_MSGGET: {
+ struct linux_msgget_args a;
+
+ a.key = args->arg1;
+ a.msgflg = args->arg2;
+ return (linux_msgget(td, &a));
+ }
+ case LINUX_MSGCTL: {
+ struct linux_msgctl_args a;
+
+ a.msqid = args->arg1;
+ a.cmd = args->arg2;
+ a.buf = PTRIN(args->ptr);
+ return (linux_msgctl(td, &a));
+ }
+ case LINUX_SHMAT: {
+ struct linux_shmat_args a;
+ l_uintptr_t addr;
+ int error;
+
+ a.shmid = args->arg1;
+ a.shmaddr = PTRIN(args->ptr);
+ a.shmflg = args->arg2;
+ error = linux_shmat(td, &a);
+ if (error != 0)
+ return (error);
+ addr = td->td_retval[0];
+ error = copyout(&addr, PTRIN(args->arg3), sizeof(addr));
+ td->td_retval[0] = 0;
+ return (error);
+ }
+ case LINUX_SHMDT: {
+ struct linux_shmdt_args a;
+
+ a.shmaddr = PTRIN(args->ptr);
+ return (linux_shmdt(td, &a));
+ }
+ case LINUX_SHMGET: {
+ struct linux_shmget_args a;
+
+ a.key = args->arg1;
+ a.size = args->arg2;
+ a.shmflg = args->arg3;
+ return (linux_shmget(td, &a));
+ }
+ case LINUX_SHMCTL: {
+ struct linux_shmctl_args a;
+
+ a.shmid = args->arg1;
+ a.cmd = args->arg2;
+ a.buf = PTRIN(args->ptr);
+ return (linux_shmctl(td, &a));
+ }
+ default:
+ break;
+ }
+
+ return (EINVAL);
+}
+
int
linux_set_upcall(struct thread *td, register_t stack)
{
diff --git a/sys/powerpc/linux/linux_proto.h b/sys/powerpc/linux/linux_proto.h
--- a/sys/powerpc/linux/linux_proto.h
+++ b/sys/powerpc/linux/linux_proto.h
@@ -277,6 +277,14 @@
struct linux_sysinfo_args {
char info_l_[PADL_(struct l_sysinfo *)]; struct l_sysinfo * info; char info_r_[PADR_(struct l_sysinfo *)];
};
+struct linux_ipc_args {
+ char what_l_[PADL_(l_uint)]; l_uint what; char what_r_[PADR_(l_uint)];
+ char arg1_l_[PADL_(l_int)]; l_int arg1; char arg1_r_[PADR_(l_int)];
+ char arg2_l_[PADL_(l_ulong)]; l_ulong arg2; char arg2_r_[PADR_(l_ulong)];
+ char arg3_l_[PADL_(l_ulong)]; l_ulong arg3; char arg3_r_[PADR_(l_ulong)];
+ char ptr_l_[PADL_(l_uintptr_t)]; l_uintptr_t ptr; char ptr_r_[PADR_(l_uintptr_t)];
+ char arg5_l_[PADL_(l_long)]; l_long arg5; char arg5_r_[PADR_(l_long)];
+};
struct linux_clone_args {
char flags_l_[PADL_(l_ulong)]; l_ulong flags; char flags_r_[PADR_(l_ulong)];
char stack_l_[PADL_(l_ulong)]; l_ulong stack; char stack_r_[PADR_(l_ulong)];
@@ -1039,6 +1047,12 @@
char protocol_l_[PADL_(l_int)]; l_int protocol; char protocol_r_[PADR_(l_int)];
char rsv_l_[PADL_(l_uintptr_t)]; l_uintptr_t rsv; char rsv_r_[PADR_(l_uintptr_t)];
};
+struct linux_send_args {
+ char s_l_[PADL_(l_int)]; l_int s; char s_r_[PADR_(l_int)];
+ char msg_l_[PADL_(l_uintptr_t)]; l_uintptr_t msg; char msg_r_[PADR_(l_uintptr_t)];
+ char len_l_[PADL_(l_size_t)]; l_size_t len; char len_r_[PADR_(l_size_t)];
+ char flags_l_[PADL_(l_uint)]; l_uint flags; char flags_r_[PADR_(l_uint)];
+};
struct linux_sendto_args {
char s_l_[PADL_(l_int)]; l_int s; char s_r_[PADR_(l_int)];
char msg_l_[PADL_(l_uintptr_t)]; l_uintptr_t msg; char msg_r_[PADR_(l_uintptr_t)];
@@ -1047,6 +1061,12 @@
char to_l_[PADL_(l_uintptr_t)]; l_uintptr_t to; char to_r_[PADR_(l_uintptr_t)];
char tolen_l_[PADL_(l_int)]; l_int tolen; char tolen_r_[PADR_(l_int)];
};
+struct linux_recv_args {
+ char s_l_[PADL_(l_int)]; l_int s; char s_r_[PADR_(l_int)];
+ char buf_l_[PADL_(l_uintptr_t)]; l_uintptr_t buf; char buf_r_[PADR_(l_uintptr_t)];
+ char len_l_[PADL_(l_size_t)]; l_size_t len; char len_r_[PADR_(l_size_t)];
+ char flags_l_[PADL_(l_uint)]; l_uint flags; char flags_r_[PADR_(l_uint)];
+};
struct linux_recvfrom_args {
char s_l_[PADL_(l_int)]; l_int s; char s_r_[PADR_(l_int)];
char buf_l_[PADL_(l_uintptr_t)]; l_uintptr_t buf; char buf_r_[PADR_(l_uintptr_t)];
@@ -1483,6 +1503,7 @@
int linux_wait4(struct thread *, struct linux_wait4_args *);
int linux_swapoff(struct thread *, struct linux_swapoff_args *);
int linux_sysinfo(struct thread *, struct linux_sysinfo_args *);
+int linux_ipc(struct thread *, struct linux_ipc_args *);
int linux_clone(struct thread *, struct linux_clone_args *);
int linux_setdomainname(struct thread *, struct linux_setdomainname_args *);
int linux_newuname(struct thread *, struct linux_newuname_args *);
@@ -1645,7 +1666,9 @@
int linux_getsockname(struct thread *, struct linux_getsockname_args *);
int linux_getpeername(struct thread *, struct linux_getpeername_args *);
int linux_socketpair(struct thread *, struct linux_socketpair_args *);
+int linux_send(struct thread *, struct linux_send_args *);
int linux_sendto(struct thread *, struct linux_sendto_args *);
+int linux_recv(struct thread *, struct linux_recv_args *);
int linux_recvfrom(struct thread *, struct linux_recvfrom_args *);
int linux_shutdown(struct thread *, struct linux_shutdown_args *);
int linux_setsockopt(struct thread *, struct linux_setsockopt_args *);
@@ -1845,6 +1868,7 @@
#define LINUX_SYS_AUE_linux_wait4 AUE_WAIT4
#define LINUX_SYS_AUE_linux_swapoff AUE_SWAPOFF
#define LINUX_SYS_AUE_linux_sysinfo AUE_NULL
+#define LINUX_SYS_AUE_linux_ipc AUE_NULL
#define LINUX_SYS_AUE_linux_clone AUE_RFORK
#define LINUX_SYS_AUE_linux_setdomainname AUE_SYSCTL
#define LINUX_SYS_AUE_linux_newuname AUE_NULL
@@ -2007,7 +2031,9 @@
#define LINUX_SYS_AUE_linux_getsockname AUE_GETSOCKNAME
#define LINUX_SYS_AUE_linux_getpeername AUE_GETPEERNAME
#define LINUX_SYS_AUE_linux_socketpair AUE_SOCKETPAIR
+#define LINUX_SYS_AUE_linux_send AUE_NULL
#define LINUX_SYS_AUE_linux_sendto AUE_SENDTO
+#define LINUX_SYS_AUE_linux_recv AUE_NULL
#define LINUX_SYS_AUE_linux_recvfrom AUE_RECVFROM
#define LINUX_SYS_AUE_linux_shutdown AUE_NULL
#define LINUX_SYS_AUE_linux_setsockopt AUE_SETSOCKOPT
diff --git a/sys/powerpc/linux/linux_syscall.h b/sys/powerpc/linux/linux_syscall.h
--- a/sys/powerpc/linux/linux_syscall.h
+++ b/sys/powerpc/linux/linux_syscall.h
@@ -89,6 +89,7 @@
#define LINUX_SYS_linux_wait4 114
#define LINUX_SYS_linux_swapoff 115
#define LINUX_SYS_linux_sysinfo 116
+#define LINUX_SYS_linux_ipc 117
#define LINUX_SYS_fsync 118
#define LINUX_SYS_linux_clone 120
#define LINUX_SYS_linux_setdomainname 121
@@ -265,7 +266,9 @@
#define LINUX_SYS_linux_getsockname 331
#define LINUX_SYS_linux_getpeername 332
#define LINUX_SYS_linux_socketpair 333
+#define LINUX_SYS_linux_send 334
#define LINUX_SYS_linux_sendto 335
+#define LINUX_SYS_linux_recv 336
#define LINUX_SYS_linux_recvfrom 337
#define LINUX_SYS_linux_shutdown 338
#define LINUX_SYS_linux_setsockopt 339
diff --git a/sys/powerpc/linux/linux_syscalls.c b/sys/powerpc/linux/linux_syscalls.c
--- a/sys/powerpc/linux/linux_syscalls.c
+++ b/sys/powerpc/linux/linux_syscalls.c
@@ -122,7 +122,7 @@
"linux_wait4", /* 114 = linux_wait4 */
"linux_swapoff", /* 115 = linux_swapoff */
"linux_sysinfo", /* 116 = linux_sysinfo */
- "#117", /* 117 = linux_ipc */
+ "linux_ipc", /* 117 = linux_ipc */
"fsync", /* 118 = fsync */
"#119", /* 119 = linux_sigreturn */
"linux_clone", /* 120 = linux_clone */
@@ -339,9 +339,9 @@
"linux_getsockname", /* 331 = linux_getsockname */
"linux_getpeername", /* 332 = linux_getpeername */
"linux_socketpair", /* 333 = linux_socketpair */
- "#334", /* 334 = linux_send */
+ "linux_send", /* 334 = linux_send */
"linux_sendto", /* 335 = linux_sendto */
- "#336", /* 336 = linux_recv */
+ "linux_recv", /* 336 = linux_recv */
"linux_recvfrom", /* 337 = linux_recvfrom */
"linux_shutdown", /* 338 = linux_shutdown */
"linux_setsockopt", /* 339 = linux_setsockopt */
diff --git a/sys/powerpc/linux/linux_sysent.c b/sys/powerpc/linux/linux_sysent.c
--- a/sys/powerpc/linux/linux_sysent.c
+++ b/sys/powerpc/linux/linux_sysent.c
@@ -191,7 +191,7 @@
{ .sy_narg = AS(linux_wait4_args), .sy_call = (sy_call_t *)linux_wait4, .sy_auevent = AUE_WAIT4, .sy_flags = 0, .sy_thrcnt = SY_THR_STATIC }, /* 114 = linux_wait4 */
{ .sy_narg = 0, .sy_call = (sy_call_t *)linux_swapoff, .sy_auevent = AUE_SWAPOFF, .sy_flags = 0, .sy_thrcnt = SY_THR_STATIC }, /* 115 = linux_swapoff */
{ .sy_narg = AS(linux_sysinfo_args), .sy_call = (sy_call_t *)linux_sysinfo, .sy_auevent = AUE_NULL, .sy_flags = 0, .sy_thrcnt = SY_THR_STATIC }, /* 116 = linux_sysinfo */
- { .sy_narg = 0, .sy_call = (sy_call_t *)nosys, .sy_auevent = AUE_NULL, .sy_flags = 0, .sy_thrcnt = SY_THR_ABSENT }, /* 117 = linux_ipc */
+ { .sy_narg = AS(linux_ipc_args), .sy_call = (sy_call_t *)linux_ipc, .sy_auevent = AUE_NULL, .sy_flags = 0, .sy_thrcnt = SY_THR_STATIC }, /* 117 = linux_ipc */
{ .sy_narg = AS(fsync_args), .sy_call = (sy_call_t *)sys_fsync, .sy_auevent = AUE_FSYNC, .sy_flags = 0, .sy_thrcnt = SY_THR_STATIC }, /* 118 = fsync */
{ .sy_narg = 0, .sy_call = (sy_call_t *)nosys, .sy_auevent = AUE_NULL, .sy_flags = 0, .sy_thrcnt = SY_THR_ABSENT }, /* 119 = linux_sigreturn */
{ .sy_narg = AS(linux_clone_args), .sy_call = (sy_call_t *)linux_clone, .sy_auevent = AUE_RFORK, .sy_flags = 0, .sy_thrcnt = SY_THR_STATIC }, /* 120 = linux_clone */
@@ -408,9 +408,9 @@
{ .sy_narg = AS(linux_getsockname_args), .sy_call = (sy_call_t *)linux_getsockname, .sy_auevent = AUE_GETSOCKNAME, .sy_flags = 0, .sy_thrcnt = SY_THR_STATIC }, /* 331 = linux_getsockname */
{ .sy_narg = AS(linux_getpeername_args), .sy_call = (sy_call_t *)linux_getpeername, .sy_auevent = AUE_GETPEERNAME, .sy_flags = 0, .sy_thrcnt = SY_THR_STATIC }, /* 332 = linux_getpeername */
{ .sy_narg = AS(linux_socketpair_args), .sy_call = (sy_call_t *)linux_socketpair, .sy_auevent = AUE_SOCKETPAIR, .sy_flags = 0, .sy_thrcnt = SY_THR_STATIC }, /* 333 = linux_socketpair */
- { .sy_narg = 0, .sy_call = (sy_call_t *)nosys, .sy_auevent = AUE_NULL, .sy_flags = 0, .sy_thrcnt = SY_THR_ABSENT }, /* 334 = linux_send */
+ { .sy_narg = AS(linux_send_args), .sy_call = (sy_call_t *)linux_send, .sy_auevent = AUE_NULL, .sy_flags = 0, .sy_thrcnt = SY_THR_STATIC }, /* 334 = linux_send */
{ .sy_narg = AS(linux_sendto_args), .sy_call = (sy_call_t *)linux_sendto, .sy_auevent = AUE_SENDTO, .sy_flags = 0, .sy_thrcnt = SY_THR_STATIC }, /* 335 = linux_sendto */
- { .sy_narg = 0, .sy_call = (sy_call_t *)nosys, .sy_auevent = AUE_NULL, .sy_flags = 0, .sy_thrcnt = SY_THR_ABSENT }, /* 336 = linux_recv */
+ { .sy_narg = AS(linux_recv_args), .sy_call = (sy_call_t *)linux_recv, .sy_auevent = AUE_NULL, .sy_flags = 0, .sy_thrcnt = SY_THR_STATIC }, /* 336 = linux_recv */
{ .sy_narg = AS(linux_recvfrom_args), .sy_call = (sy_call_t *)linux_recvfrom, .sy_auevent = AUE_RECVFROM, .sy_flags = 0, .sy_thrcnt = SY_THR_STATIC }, /* 337 = linux_recvfrom */
{ .sy_narg = AS(linux_shutdown_args), .sy_call = (sy_call_t *)linux_shutdown, .sy_auevent = AUE_NULL, .sy_flags = 0, .sy_thrcnt = SY_THR_STATIC }, /* 338 = linux_shutdown */
{ .sy_narg = AS(linux_setsockopt_args), .sy_call = (sy_call_t *)linux_setsockopt, .sy_auevent = AUE_SETSOCKOPT, .sy_flags = 0, .sy_thrcnt = SY_THR_STATIC }, /* 339 = linux_setsockopt */
diff --git a/sys/powerpc/linux/linux_systrace_args.c b/sys/powerpc/linux/linux_systrace_args.c
--- a/sys/powerpc/linux/linux_systrace_args.c
+++ b/sys/powerpc/linux/linux_systrace_args.c
@@ -658,6 +658,18 @@
*n_args = 1;
break;
}
+ /* linux_ipc */
+ case 117: {
+ struct linux_ipc_args *p = params;
+ iarg[a++] = p->what; /* l_uint */
+ iarg[a++] = p->arg1; /* l_int */
+ iarg[a++] = p->arg2; /* l_ulong */
+ iarg[a++] = p->arg3; /* l_ulong */
+ uarg[a++] = (intptr_t)p->ptr; /* l_uintptr_t */
+ iarg[a++] = p->arg5; /* l_long */
+ *n_args = 6;
+ break;
+ }
/* fsync */
case 118: {
struct fsync_args *p = params;
@@ -2121,6 +2133,16 @@
*n_args = 4;
break;
}
+ /* linux_send */
+ case 334: {
+ struct linux_send_args *p = params;
+ iarg[a++] = p->s; /* l_int */
+ uarg[a++] = (intptr_t)p->msg; /* l_uintptr_t */
+ iarg[a++] = p->len; /* l_size_t */
+ iarg[a++] = p->flags; /* l_uint */
+ *n_args = 4;
+ break;
+ }
/* linux_sendto */
case 335: {
struct linux_sendto_args *p = params;
@@ -2133,6 +2155,16 @@
*n_args = 6;
break;
}
+ /* linux_recv */
+ case 336: {
+ struct linux_recv_args *p = params;
+ iarg[a++] = p->s; /* l_int */
+ uarg[a++] = (intptr_t)p->buf; /* l_uintptr_t */
+ iarg[a++] = p->len; /* l_size_t */
+ iarg[a++] = p->flags; /* l_uint */
+ *n_args = 4;
+ break;
+ }
/* linux_recvfrom */
case 337: {
struct linux_recvfrom_args *p = params;
@@ -3770,6 +3802,31 @@
break;
};
break;
+ /* linux_ipc */
+ case 117:
+ switch (ndx) {
+ case 0:
+ p = "l_uint";
+ break;
+ case 1:
+ p = "l_int";
+ break;
+ case 2:
+ p = "l_ulong";
+ break;
+ case 3:
+ p = "l_ulong";
+ break;
+ case 4:
+ p = "l_uintptr_t";
+ break;
+ case 5:
+ p = "l_long";
+ break;
+ default:
+ break;
+ };
+ break;
/* fsync */
case 118:
switch (ndx) {
@@ -6194,6 +6251,25 @@
break;
};
break;
+ /* linux_send */
+ case 334:
+ switch (ndx) {
+ case 0:
+ p = "l_int";
+ break;
+ case 1:
+ p = "l_uintptr_t";
+ break;
+ case 2:
+ p = "l_size_t";
+ break;
+ case 3:
+ p = "l_uint";
+ break;
+ default:
+ break;
+ };
+ break;
/* linux_sendto */
case 335:
switch (ndx) {
@@ -6219,6 +6295,25 @@
break;
};
break;
+ /* linux_recv */
+ case 336:
+ switch (ndx) {
+ case 0:
+ p = "l_int";
+ break;
+ case 1:
+ p = "l_uintptr_t";
+ break;
+ case 2:
+ p = "l_size_t";
+ break;
+ case 3:
+ p = "l_uint";
+ break;
+ default:
+ break;
+ };
+ break;
/* linux_recvfrom */
case 337:
switch (ndx) {
@@ -7631,6 +7726,11 @@
if (ndx == 0 || ndx == 1)
p = "int";
break;
+ /* linux_ipc */
+ case 117:
+ if (ndx == 0 || ndx == 1)
+ p = "int";
+ break;
/* fsync */
case 118:
if (ndx == 0 || ndx == 1)
@@ -8424,11 +8524,21 @@
if (ndx == 0 || ndx == 1)
p = "int";
break;
+ /* linux_send */
+ case 334:
+ if (ndx == 0 || ndx == 1)
+ p = "int";
+ break;
/* linux_sendto */
case 335:
if (ndx == 0 || ndx == 1)
p = "int";
break;
+ /* linux_recv */
+ case 336:
+ if (ndx == 0 || ndx == 1)
+ p = "int";
+ break;
/* linux_recvfrom */
case 337:
if (ndx == 0 || ndx == 1)
diff --git a/sys/powerpc/linux/syscalls.master b/sys/powerpc/linux/syscalls.master
--- a/sys/powerpc/linux/syscalls.master
+++ b/sys/powerpc/linux/syscalls.master
@@ -519,7 +519,16 @@
struct l_sysinfo *info
);
}
-117 AUE_NULL UNIMPL linux_ipc
+117 AUE_NULL STD {
+ int linux_ipc(
+ l_uint what,
+ l_int arg1,
+ l_ulong arg2,
+ l_ulong arg3,
+ l_uintptr_t ptr,
+ l_long arg5
+ );
+ }
118 AUE_FSYNC NOPROTO {
int fsync(
int fd
@@ -1671,7 +1680,14 @@
l_uintptr_t rsv
);
}
-334 AUE_NULL UNIMPL linux_send
+334 AUE_NULL STD {
+ int linux_send(
+ l_int s,
+ l_uintptr_t msg,
+ l_size_t len,
+ l_uint flags
+ );
+ }
335 AUE_SENDTO STD {
int linux_sendto(
l_int s,
@@ -1682,7 +1698,14 @@
l_int tolen
);
}
-336 AUE_NULL UNIMPL linux_recv
+336 AUE_NULL STD {
+ int linux_recv(
+ l_int s,
+ l_uintptr_t buf,
+ l_size_t len,
+ l_uint flags
+ );
+ }
337 AUE_RECVFROM STD {
int linux_recvfrom(
l_int s,
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Wed, Dec 2, 11:05 AM (19 h, 4 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
42141168
Default Alt Text
D62274.1796209513.diff (17 KB)
Attached To
Mode
D62274: linuxulator/powerpc: implement send, recv and ipc
Attached
Detach File
Event Timeline