diff options
| -rw-r--r-- | sys/fuchsia/event.txt (renamed from sys/fuchsia/events.txt) | 4 | ||||
| -rw-r--r-- | sys/fuchsia/eventpair.txt | 7 | ||||
| -rw-r--r-- | sys/fuchsia/test/event | 3 | ||||
| -rw-r--r-- | sys/fuchsia/test/eventpair | 5 |
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) |
