From: Matthias Kruk Date: Thu, 26 Dec 2019 02:58:33 +0000 (+0900) Subject: Implement sys_cxsendrecv() function X-Git-Url: https://git.corax.cc/?a=commitdiff_plain;h=f2cf29623b87d126e413457eb176cdb50ae3c923;p=corax Implement sys_cxsendrecv() function --- diff --git a/kernel/core/cxipc.c b/kernel/core/cxipc.c index fc082c3..50de0d9 100644 --- a/kernel/core/cxipc.c +++ b/kernel/core/cxipc.c @@ -114,7 +114,15 @@ int sys_cxrecv(pid_t from, struct cxmsg *msg) int sys_cxsendrecv(pid_t tofrom, struct cxmsg *msg) { - return(-ENOSYS); + int ret_val; + + ret_val = sys_cxsend(tofrom, msg); + + if(!ret_val) { + ret_val = sys_cxrecv(tofrom, msg); + } + + return(ret_val); } int sys_cxipc(long arg0, long arg1, long arg2)