From 39de8dbe4bf9c6e76dce36b3afc242bca73b908c Mon Sep 17 00:00:00 2001 From: Jia Zhang Date: Fri, 31 Jul 2020 09:17:31 +0800 Subject: [PATCH] rune/libenclave/skeleton: Fix pal_exec() prototype according to v1 Signed-off-by: Jia Zhang --- .../internal/runtime/pal/skeleton/liberpal-skeleton.c | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) diff --git a/rune/libenclave/internal/runtime/pal/skeleton/liberpal-skeleton.c b/rune/libenclave/internal/runtime/pal/skeleton/liberpal-skeleton.c index 8dffd06..075698e 100644 --- a/rune/libenclave/internal/runtime/pal/skeleton/liberpal-skeleton.c +++ b/rune/libenclave/internal/runtime/pal/skeleton/liberpal-skeleton.c @@ -429,10 +429,14 @@ int pal_init(pal_attr_t *attr) return 0; } -int pal_exec(char *path, char *argv[], const char *envp[], - int *exit_code, int stdin, int stdout, int stderr) +typedef struct { + int stdin, stdout, stderr; +} pal_stdio_fds; + +int pal_exec(char *path, char *argv[], pal_stdio_fds *stdio, + int *exit_code) { - FILE *fp = fdopen(stderr, "w"); + FILE *fp = fdopen(stdio->stderr, "w"); if (!fp) return -1; -- GitLab