From 69f97bc3aa86afdaafaafecbf1e05a2ebc40704d Mon Sep 17 00:00:00 2001 From: Daiki Ueno Date: Thu, 30 Jan 2020 15:23:06 +0100 Subject: [PATCH] Reorder results of fd_permissions_set in ephemeral This makes sure that the first result is an errno as generate-raw expects: https://github.com/bytecodealliance/wasi/blob/master/crates/generate-raw/src/lib.rs#L280 --- phases/ephemeral/witx/wasi_ephemeral_fd.witx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/phases/ephemeral/witx/wasi_ephemeral_fd.witx b/phases/ephemeral/witx/wasi_ephemeral_fd.witx index abd5cf610..09550569c 100644 --- a/phases/ephemeral/witx/wasi_ephemeral_fd.witx +++ b/phases/ephemeral/witx/wasi_ephemeral_fd.witx @@ -121,9 +121,9 @@ ;;; umask to determine which of the user/group/other flags to modify. (@interface func (export "permissions_set") (param $fd $fd) + (result $error $errno) ;;; The permissions associated with the file. (result $permissions $permissions) - (result $error $errno) ) ;;; Read from a file descriptor, without using and updating the file descriptor's offset.