aboutsummaryrefslogtreecommitdiffstats
path: root/sys
diff options
context:
space:
mode:
authorMarina Ciocea <111010340+cdmarina@users.noreply.github.com>2022-08-17 11:54:27 -0400
committerGitHub <noreply@github.com>2022-08-17 08:54:27 -0700
commite73b787ca060ac96224ca039b81658aecaee5e46 (patch)
treefa9ff64ad2176cc1d91a40331260adf761b65f71 /sys
parent22b60cea14f9d1f28343f40a3f95b6995e60e80d (diff)
sys/fuchsia: update the thread system calls (#3309)
Co-authored-by: Marina Ciocea <marinaciocea@google.com>
Diffstat (limited to 'sys')
-rw-r--r--sys/fuchsia/thread.txt (renamed from sys/fuchsia/threads.txt)12
1 files changed, 6 insertions, 6 deletions
diff --git a/sys/fuchsia/threads.txt b/sys/fuchsia/thread.txt
index 607a7a563..b6db96a6e 100644
--- a/sys/fuchsia/threads.txt
+++ b/sys/fuchsia/thread.txt
@@ -6,11 +6,11 @@ include <zircon/syscalls/debug.h>
resource zx_thread[zx_task]
-zx_thread_create(process zx_process, name ptr[in, string], name_len len[name], options const[0], out ptr[out, zx_thread])
zx_thread_exit()
+zx_thread_create(process zx_process, name ptr[in, string], name_size len[name], options const[0], out ptr[out, zx_thread])
+zx_thread_start(handle zx_thread, thread_entry ptr[in, text[target]], stack ptr[out, array[int8]], arg1 const[0], arg2 const[0])
# Note: kind corresponds to ZX_THREAD_STATE_REGSET0..9 constants.
-zx_thread_read_state(handle zx_thread, kind int32[0:9], buffer ptr[out, array[int64]], len bytesize[buffer])
-zx_thread_read_state$0(handle zx_thread, kind const[0], buffer ptr[out, array[int64, 18]], len bytesize[buffer])
-zx_thread_start(handle zx_thread, entry ptr[in, text[target]], stack ptr[out, array[int8]], arg1 const[0], arg2 const[0])
-zx_thread_write_state(handle zx_thread, kind int32[0:9], buffer ptr[in, array[int64]], len bytesize[buffer])
-zx_thread_write_state$0(handle zx_thread, kind const[0], buffer ptr[in, array[int64, 18]], len bytesize[buffer])
+zx_thread_read_state(handle zx_thread, kind int32[0:9], buffer ptr[out, array[int64]], buffer_size bytesize[buffer])
+zx_thread_read_state$0(handle zx_thread, kind const[0], buffer ptr[out, array[int64, 18]], buffer_size bytesize[buffer])
+zx_thread_write_state(handle zx_thread, kind int32[0:9], buffer ptr[in, array[int64]], buffer_size bytesize[buffer])
+zx_thread_write_state$0(handle zx_thread, kind const[0], buffer ptr[in, array[int64, 18]], buffer_size bytesize[buffer])