]> git.corax.cc Git - corax/commitdiff
Implement sys_cxsendrecv() function
authorMatthias Kruk <m@m10k.eu>
Thu, 26 Dec 2019 02:58:33 +0000 (11:58 +0900)
committerMatthias Kruk <m@m10k.eu>
Thu, 26 Dec 2019 02:58:33 +0000 (11:58 +0900)
kernel/core/cxipc.c

index fc082c349c1baabccb8aba4b1121ef71010a16e4..50de0d97ba9d2f599ae94dc78437c6ab947f24a5 100644 (file)
@@ -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)