volcano0dr commented on code in PR #405:
URL: 
https://github.com/apache/incubator-teaclave-sgx-sdk/pull/405#discussion_r1006403224


##########
sgx_oc/src/linux/ocall/asyncio.rs:
##########
@@ -60,6 +60,17 @@ pub unsafe fn epoll_create1(flags: c_int) -> 
OCallResult<c_int> {
     Ok(result)
 }
 
+pub unsafe fn epoll_create(size: c_int) -> OCallResult<c_int> {
+    let mut result: c_int = 0;
+    let mut error: c_int = 0;
+
+    let status = u_epoll_create_ocall(&mut result as *mut c_int, &mut error as 
*mut c_int, size);

Review Comment:
   I think `epoll_create` can be implemented by calling `epoll_create1`  in 
sgx_oc, which reduces defining `EDL` and u_epoll_create_ocall in sgx_urts.



-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: notifications-unsubscr...@teaclave.apache.org

For queries about this service, please contact Infrastructure at:
us...@infra.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: notifications-unsubscr...@teaclave.apache.org
For additional commands, e-mail: notifications-h...@teaclave.apache.org

Reply via email to