Support get return value for SGX os_printf/os_vprintf (#1387)

Fix the issue reported in #1359, change the implementation of
os_printf/os_vprintf for Intel SGX to get the actual bytes written.
This commit is contained in:
Wenyong Huang
2022-08-16 14:23:34 +08:00
committed by GitHub
parent aa7d447ee5
commit 6caa6b1d73
6 changed files with 31 additions and 22 deletions

View File

@ -19,6 +19,6 @@ enclave {
untrusted {
/* define OCALLs here. */
void ocall_print([in, string]const char* str);
int ocall_print([in, string]const char* str);
};
};