提交 39de8dbe 编写于 作者: jia zhang's avatar jia zhang

rune/libenclave/skeleton: Fix pal_exec() prototype according to v1

Signed-off-by: jia zhang's avatarJia Zhang <zhang.jia@linux.alibaba.com>
上级 7cf1fab8
......@@ -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;
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册