From a8ef1b108198fe97e3d791eede049b85a6fc825f Mon Sep 17 00:00:00 2001 From: Chris Palmer Date: Fri, 12 Aug 2022 10:24:00 -0700 Subject: sys/fuchsia: update the fifo system calls (#3292) Co-authored-by: Chris Palmer --- sys/fuchsia/fifo.txt | 14 ++++++++++++++ sys/fuchsia/fifos.txt | 12 ------------ 2 files changed, 14 insertions(+), 12 deletions(-) create mode 100644 sys/fuchsia/fifo.txt delete mode 100644 sys/fuchsia/fifos.txt (limited to 'sys/fuchsia') 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 + +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 - -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 -- cgit mrf-deployment