From 4a380809c7416917ec8fbb771385079a769eaad1 Mon Sep 17 00:00:00 2001 From: Chris Palmer Date: Mon, 29 Aug 2022 16:46:06 -0700 Subject: sys/fuchsia: update event and eventpair system calls (#3320) events.txt is split between event.txt and eventpair.txt Co-authored-by: Aaron Green --- sys/fuchsia/event.txt | 7 +++++++ sys/fuchsia/eventpair.txt | 7 +++++++ sys/fuchsia/events.txt | 7 ------- sys/fuchsia/test/event | 3 +++ sys/fuchsia/test/eventpair | 5 +++++ 5 files changed, 22 insertions(+), 7 deletions(-) create mode 100644 sys/fuchsia/event.txt create mode 100644 sys/fuchsia/eventpair.txt delete mode 100644 sys/fuchsia/events.txt create mode 100644 sys/fuchsia/test/event create mode 100644 sys/fuchsia/test/eventpair (limited to 'sys/fuchsia') diff --git a/sys/fuchsia/event.txt b/sys/fuchsia/event.txt new file mode 100644 index 000000000..9b9d02c22 --- /dev/null +++ b/sys/fuchsia/event.txt @@ -0,0 +1,7 @@ +# Copyright 2017 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 + +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 + +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/events.txt b/sys/fuchsia/events.txt deleted file mode 100644 index 16d8f4f99..000000000 --- a/sys/fuchsia/events.txt +++ /dev/null @@ -1,7 +0,0 @@ -# Copyright 2017 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 - -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]) 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=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=0x0, &AUTO=0x0) +zx_object_signal_peer(r0, 0x0, 0XFF000000) +zx_object_wait_one(r1, 0X01000000, 0x0, 0x0) +zx_handle_close(r0) +zx_handle_close(r1) -- cgit mrf-deployment