aboutsummaryrefslogtreecommitdiffstats
path: root/sys/fuchsia
diff options
context:
space:
mode:
authorChris Palmer <snackypants@gmail.com>2022-08-12 10:24:00 -0700
committerGitHub <noreply@github.com>2022-08-12 10:24:00 -0700
commita8ef1b108198fe97e3d791eede049b85a6fc825f (patch)
treea0d429797456eda0fb3a98d25aaa6c41975c2608 /sys/fuchsia
parent1f95e1cae283b4ca0b51b19cdb24a808d1d0666b (diff)
sys/fuchsia: update the fifo system calls (#3292)
Co-authored-by: Chris Palmer <palmer@google.com>
Diffstat (limited to 'sys/fuchsia')
-rw-r--r--sys/fuchsia/fifo.txt14
-rw-r--r--sys/fuchsia/fifos.txt12
2 files changed, 14 insertions, 12 deletions
diff --git a/sys/fuchsia/fifo.txt b/sys/fuchsia/fifo.txt
new file mode 100644
index 000000000..e08aac094
--- /dev/null
+++ b/sys/fuchsia/fifo.txt
@@ -0,0 +1,14 @@
+# 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.
+
+# See https://cs.opensource.google/fuchsia/fuchsia/+/main:zircon/vdso/fifo.fidl
+
+include <zircon/syscalls.h>
+
+resource zx_fifo[zx_handle]
+
+zx_fifo_create(elem_count int64, elem_size int64, options int32, out0 ptr[out, zx_fifo], out1 ptr[out, zx_fifo])
+
+zx_fifo_read(handle zx_fifo, elem_size int64, data ptr[out, array[int8]], count len[data], actual_count ptr[out, int64])
+
+zx_fifo_write(handle zx_fifo, elem_size int64, data ptr[out, array[int8]], count len[data], actual_count ptr[out, int64])
diff --git a/sys/fuchsia/fifos.txt b/sys/fuchsia/fifos.txt
deleted file mode 100644
index cb45859f4..000000000
--- a/sys/fuchsia/fifos.txt
+++ /dev/null
@@ -1,12 +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 <zircon/syscalls.h>
-
-resource zx_fifo[zx_handle]
-
-zx_fifo_create(elem_count flags[fifo_elem_count], elem_size int32, options const[0], out0 ptr[out, zx_fifo], out1 ptr[out, zx_fifo])
-zx_fifo_read(handle zx_fifo, size len[buffer], buffer ptr[out, array[int8]], num_entries_read ptr[out, int32])
-zx_fifo_write(handle zx_fifo, size len[buffer], buffer ptr[in, array[int8]], num_entries_written ptr[out, int32])
-
-fifo_elem_count = 0, 1, 2, 4, 8, 16, 32, 64, 128, 256, 512, 1024, 2048, 4096