This PR makes changes to the `sgx_libc` and its corresponding call sites inside 
`sgx_tsts`to provide better interfaces for Rust SGX cates. Any crate using 
`sgx_libc` APIs expects a return value with type OCallResult<T, 
OCallError>, which wraps a sanitized Ok value with type T or an error with 
type OCallError. The OCallError is also convertible to `std::io::Error`, making 
it easier for error handling.    
You can view, comment on, or merge this pull request online at:

  https://github.com/apache/incubator-teaclave-sgx-sdk/pull/258

-- Commit Summary --

  * Change sgx_libc interface.

-- File Changes --

    M edl/sgx_env.edl (12)
    M edl/sgx_fd.edl (4)
    M edl/sgx_file.edl (4)
    M edl/sgx_net.edl (8)
    M edl/sgx_socket.edl (2)
    M samplecode/hello-rust/enclave/Enclave.edl (3)
    M samplecode/hello-rust/enclave/src/lib.rs (2)
    M samplecode/http_req/Makefile (4)
    M samplecode/unit-test/enclave/Cargo.toml (2)
    M samplecode/unit-test/enclave/Enclave.edl (2)
    M samplecode/unit-test/enclave/src/lib.rs (7)
    M samplecode/unit-test/enclave/src/test_env.rs (5)
    A samplecode/unit-test/enclave/src/test_net.rs (8)
    M samplecode/unit-test/enclave/src/test_path.rs (70)
    M samplecode/unit-test/enclave/src/test_signal.rs (2)
    M sgx_backtrace_sys/build.rs (5)
    M sgx_backtrace_sys/libbacktrace/mmap.c (6)
    M sgx_backtrace_sys/libbacktrace/mmapio.c (7)
    M sgx_edl/edl/sgx_env.edl (12)
    M sgx_edl/edl/sgx_fd.edl (4)
    M sgx_edl/edl/sgx_file.edl (4)
    M sgx_edl/edl/sgx_net.edl (8)
    M sgx_edl/edl/sgx_socket.edl (2)
    M sgx_edl/edl/sgx_sys.edl (1)
    M sgx_libc/src/linux/x86_64/mod.rs (418)
    M sgx_libc/src/linux/x86_64/ocall.rs (4222)
    M sgx_libc/src/macros.rs (45)
    M sgx_tstd/src/io/error.rs (50)
    M sgx_tstd/src/sys/ext/net.rs (87)
    M sgx_tstd/src/sys/fd.rs (89)
    M sgx_tstd/src/sys/fs.rs (217)
    M sgx_tstd/src/sys/mod.rs (69)
    M sgx_tstd/src/sys/net.rs (118)
    M sgx_tstd/src/sys/os.rs (184)
    M sgx_tstd/src/sys/pipe.rs (13)
    M sgx_tstd/src/sys/time.rs (76)
    M sgx_tstd/src/sys_common/net.rs (185)
    M sgx_urts/src/env.rs (85)
    M sgx_urts/src/fd.rs (124)
    M sgx_urts/src/file.rs (208)
    M sgx_urts/src/net.rs (62)

-- Patch Links --

https://github.com/apache/incubator-teaclave-sgx-sdk/pull/258.patch
https://github.com/apache/incubator-teaclave-sgx-sdk/pull/258.diff

-- 
You are receiving this because you are subscribed to this thread.
Reply to this email directly or view it on GitHub:
https://github.com/apache/incubator-teaclave-sgx-sdk/pull/258

Reply via email to