| author | |
| committer | |
| log | 8abb14141e987a9d469eedf98c14eb0141d0875c |
| tree | 34449427f8d510389d2f9c9e370699ced0287c57 |
| parent | 92ec9fa3d05f06257d267ac7dc0fbe533d5f96be |
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.2 files changed, 1 insertions(+), 5 deletions(-)
lib/std/c.zig-2| ... | ... | @@ -11459,8 +11459,6 @@ pub const disown = serenity.disown; |
| 11459 | 11459 | pub const profiling_enable = serenity.profiling_enable; |
| 11460 | 11460 | pub const profiling_disable = serenity.profiling_disable; |
| 11461 | 11461 | pub const profiling_free_buffer = serenity.profiling_free_buffer; |
| 11462 | pub const futex_wait = serenity.futex_wait; | |
| 11463 | pub const futex_wake = serenity.futex_wake; | |
| 11464 | 11462 | pub const purge = serenity.purge; |
| 11465 | 11463 | pub const perf_event = serenity.perf_event; |
| 11466 | 11464 | pub const perf_register_string = serenity.perf_register_string; |
lib/std/c/serenity.zig+1-3| ... | ... | @@ -53,9 +53,7 @@ pub extern "c" fn profiling_enable(pid: pid_t, event_mask: PERF_EVENT) c_int; |
| 53 | 53 | pub extern "c" fn profiling_disable(pid: pid_t) c_int; |
| 54 | 54 | pub extern "c" fn profiling_free_buffer(pid: pid_t) c_int; |
| 55 | 55 | |
| 56 | pub extern "c" fn futex(userspace_address: *u32, futex_op: c_int, value: u32, timeout: *const timespec, userspace_address2: *u32, value3: u32) c_int; | |
| 57 | pub extern "c" fn futex_wait(userspace_address: *u32, value: u32, abstime: *const timespec, clockid: clockid_t, process_shared: c_int) c_int; | |
| 58 | pub extern "c" fn futex_wake(userspace_address: *u32, count: u32, process_shared: c_int) c_int; | |
| 56 | pub extern "c" fn futex(userspace_address: *u32, futex_op: c_int, value: u32, timeout: ?*const timespec, userspace_address2: ?*u32, value3: u32) c_int; | |
| 59 | 57 | |
| 60 | 58 | pub extern "c" fn purge(mode: c_int) c_int; |
| 61 | 59 |