aboutsummaryrefslogtreecommitdiffstats
path: root/sys/fuchsia
diff options
context:
space:
mode:
authorChris Palmer <snackypants@gmail.com>2022-08-29 16:46:06 -0700
committerGitHub <noreply@github.com>2022-08-29 16:46:06 -0700
commit4a380809c7416917ec8fbb771385079a769eaad1 (patch)
treeaea6e1fbed364957ffe746e4d04463baf3166a0a /sys/fuchsia
parent5bddaa040f2724164f3913460c7386a0b87353f9 (diff)
sys/fuchsia: update event and eventpair system calls (#3320)
events.txt is split between event.txt and eventpair.txt Co-authored-by: Aaron Green <aarongreen@google.com>
Diffstat (limited to 'sys/fuchsia')
-rw-r--r--sys/fuchsia/event.txt (renamed from sys/fuchsia/events.txt)4
-rw-r--r--sys/fuchsia/eventpair.txt7
-rw-r--r--sys/fuchsia/test/event3
-rw-r--r--sys/fuchsia/test/eventpair5
4 files changed, 17 insertions, 2 deletions
diff --git a/sys/fuchsia/events.txt b/sys/fuchsia/event.txt
index 16d8f4f99..9b9d02c22 100644
--- a/sys/fuchsia/events.txt
+++ b/sys/fuchsia/event.txt
@@ -3,5 +3,5 @@
include <zircon/syscalls.h>
-zx_event_create(options const[0], out ptr[out, zx_handle])
-zx_eventpair_create(options const[0], out0 ptr[out, zx_handle], out1 ptr[out, zx_handle])
+zx_event_create(options int32, out ptr[out, zx_handle])
+zx_event_create$VALID_OPTIONS(options const[0], out ptr[out, zx_handle])
diff --git a/sys/fuchsia/eventpair.txt b/sys/fuchsia/eventpair.txt
new file mode 100644
index 000000000..eb909e66e
--- /dev/null
+++ b/sys/fuchsia/eventpair.txt
@@ -0,0 +1,7 @@
+# Copyright 2022 syzkaller project authors. All rights reserved.
+# Use of this source code is governed by Apache 2 LICENSE that can be found in the LICENSE file.
+
+include <zircon/syscalls.h>
+
+zx_eventpair_create(options int32, out0 ptr[out, zx_handle], out1 ptr[out, zx_handle])
+zx_eventpair_create$VALID_OPTIONS(options const[0], out0 ptr[out, zx_handle], out1 ptr[out, zx_handle])
diff --git a/sys/fuchsia/test/event b/sys/fuchsia/test/event
new file mode 100644
index 000000000..6ba5434e8
--- /dev/null
+++ b/sys/fuchsia/test/event
@@ -0,0 +1,3 @@
+zx_event_create(0x0, &AUTO=<r0=>0x0)
+zx_object_signal(r0, 0x0, 0XFF000000)
+zx_handle_close(r0)
diff --git a/sys/fuchsia/test/eventpair b/sys/fuchsia/test/eventpair
new file mode 100644
index 000000000..9691e88de
--- /dev/null
+++ b/sys/fuchsia/test/eventpair
@@ -0,0 +1,5 @@
+zx_eventpair_create(0x0, &AUTO=<r0=>0x0, &AUTO=<r1=>0x0)
+zx_object_signal_peer(r0, 0x0, 0XFF000000)
+zx_object_wait_one(r1, 0X01000000, 0x0, 0x0)
+zx_handle_close(r0)
+zx_handle_close(r1)