zig/lib/std/os/linux
Vincent Rischmann 47c58cba59
Fix io_uring tests (#12134)
* io_uring: fix the timeout_remove test

The test does a IORING_OP_TIMEOUT followed with a IORING_OP_TIMEOUT_REMOVE
and assumed we would get the CQEs in the same order.

Linux v5.18 changed how this works and we now get them in the reverse order.

The documentation doesn't explicitly say which CQE we should get first
so just make the test work with both cases.

* io_uring: fix the remove_buffers test

The original test was buggy but accidentally worked with kernels < 5.18

The test assumed that IORING_OP_REMOVE_BUFFERS removed from the start of
but in fact the documentation doesn't specify which buffer is removed,
only that a certain number of buffers are removed.

Starting with the kernel 5.18 the check for the `used_buffer_id` fails.
Turns out that previous kernels removed buffers in such a way that the
remaining buffer for this read would always be 0, however this isn't
true anymore.

Instead of checking a specific value just check that the `used_buffer_id`
corresponds to a valid ID.
2022-07-16 10:05:11 -05:00
..
bpf stage1, stage2: rename c_void to anyopaque (#10316) 2021-12-19 00:24:45 -05:00
errno std.os reorganization, avoiding usingnamespace 2021-09-01 17:54:06 -07:00
arm-eabi.zig add const to msghdr_const iov and control pointers 2022-06-07 15:23:44 -04:00
arm64.zig std.os.linux.clone: upgrade to stage2 fn ptr semantics 2022-06-27 18:27:06 -07:00
bpf.zig std, compiler-rt: remove test names where applicable 2021-09-01 17:54:06 -07:00
i386.zig std.os.linux.clone: upgrade to stage2 fn ptr semantics 2022-06-27 18:27:06 -07:00
io_uring.zig Fix io_uring tests (#12134) 2022-07-16 10:05:11 -05:00
ioctl.zig target: Rename sparcv9 -> sparc64 2022-05-13 16:43:59 -04:00
mips.zig std.os.linux.clone: upgrade to stage2 fn ptr semantics 2022-06-27 18:27:06 -07:00
powerpc.zig std.os.linux.clone: upgrade to stage2 fn ptr semantics 2022-06-27 18:27:06 -07:00
powerpc64.zig std.os.linux.clone: upgrade to stage2 fn ptr semantics 2022-06-27 18:27:06 -07:00
riscv64.zig std.os.linux.clone: upgrade to stage2 fn ptr semantics 2022-06-27 18:27:06 -07:00
seccomp.zig Add bits for the Linux Secure Computing facility 2022-03-09 18:49:36 +11:00
sparc64.zig std.os.linux.clone: upgrade to stage2 fn ptr semantics 2022-06-27 18:27:06 -07:00
start_pie.zig migrate from std.Target.current to @import("builtin").target 2021-10-04 23:48:55 -07:00
syscalls.zig Generate linux syscalls via. the linux source tree 2022-05-16 23:55:11 -04:00
test.zig migrate from std.Target.current to @import("builtin").target 2021-10-04 23:48:55 -07:00
thumb.zig std: reorganization that allows new usingnamespace semantics 2021-09-01 17:54:06 -07:00
tls.zig target: Rename sparcv9 -> sparc64 2022-05-13 16:43:59 -04:00
vdso.zig std lib API deprecations for the upcoming 0.9.0 release 2021-11-30 00:13:07 -07:00
x86_64.zig add const to msghdr_const iov and control pointers 2022-06-07 15:23:44 -04:00