From 44f4f703d1096743db6421ae6b9ecb75b18ae25d Mon Sep 17 00:00:00 2001 From: tianjia Date: Fri, 22 May 2020 17:20:41 +0800 Subject: [PATCH] pal: Fix function declaration error in PAL API Specification (#6) The prototype declaration of pal_init() is wrong, this is a copy-paste error, this patch fixes it. Signed-off-by: Tianjia Zhang --- rune/libenclave/internal/runtime/pal/spec.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/rune/libenclave/internal/runtime/pal/spec.md b/rune/libenclave/internal/runtime/pal/spec.md index d124e67..708df85 100644 --- a/rune/libenclave/internal/runtime/pal/spec.md +++ b/rune/libenclave/internal/runtime/pal/spec.md @@ -4,7 +4,7 @@ Enclave Runtime PAL API defines a common interface to interact between `rune` an ## pal_init() | **Description** | Initialize enclave runtime with specific attributes. | | :-: | :- | -| **Prototype** | struct pal_attr_t {
const char \*args;
const char \*log_level;
};
int pal_init(char \*path, char \*argv[],
struct stdio_fds \*stdio,
int \*exit_code); | +| **Prototype** | struct pal_attr_t {
const char \*args;
const char \*log_level;
};
int pal_init(const struct pal_attr_t *attr); | | **Parameters** | @args: the enclave runtime specific argument string.
@log_level: the output log level of enclave runtime. | | **Return value** | 0: Success
-ENOENT: Invalid instance path of enclave runtime
Others: Enclave runtime specific error codes | | **Availability **| >=v1 | -- GitLab