mirror of
https://codeberg.org/ziglang/zig.git
synced 2026-04-26 13:01:34 +03:00
std.c: Fix serenity's futex() declaration
Two mistakes I made when translating from the C header: - The timeout and userspace_address2 pointers should be nullable. - futex_wait() and futex_wake() are defined as static functions and therefore not available as exported symbols. They're just thin wrappers around futex() anyway so that's fine.
This commit is contained in:
@@ -11459,8 +11459,6 @@ pub const disown = serenity.disown;
|
||||
pub const profiling_enable = serenity.profiling_enable;
|
||||
pub const profiling_disable = serenity.profiling_disable;
|
||||
pub const profiling_free_buffer = serenity.profiling_free_buffer;
|
||||
pub const futex_wait = serenity.futex_wait;
|
||||
pub const futex_wake = serenity.futex_wake;
|
||||
pub const purge = serenity.purge;
|
||||
pub const perf_event = serenity.perf_event;
|
||||
pub const perf_register_string = serenity.perf_register_string;
|
||||
|
||||
@@ -53,9 +53,7 @@ pub extern "c" fn profiling_enable(pid: pid_t, event_mask: PERF_EVENT) c_int;
|
||||
pub extern "c" fn profiling_disable(pid: pid_t) c_int;
|
||||
pub extern "c" fn profiling_free_buffer(pid: pid_t) c_int;
|
||||
|
||||
pub extern "c" fn futex(userspace_address: *u32, futex_op: c_int, value: u32, timeout: *const timespec, userspace_address2: *u32, value3: u32) c_int;
|
||||
pub extern "c" fn futex_wait(userspace_address: *u32, value: u32, abstime: *const timespec, clockid: clockid_t, process_shared: c_int) c_int;
|
||||
pub extern "c" fn futex_wake(userspace_address: *u32, count: u32, process_shared: c_int) c_int;
|
||||
pub extern "c" fn futex(userspace_address: *u32, futex_op: c_int, value: u32, timeout: ?*const timespec, userspace_address2: ?*u32, value3: u32) c_int;
|
||||
|
||||
pub extern "c" fn purge(mode: c_int) c_int;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user