| author | |
| committer | |
| log | 54ea0bbcdddc9e13ed98415d8883f03d59392509 |
| tree | ae48405c208166e66aee184cd8225ee1a829bc1d |
| parent | c17a8df2fad6e0297bc8151d76090f55d5f17c95 |
6 files changed, 14 insertions(+), 0 deletions(-)
lib/std/c.zig+5| ... | ... | @@ -408,6 +408,11 @@ pub extern "c" fn setlogmask(maskpri: c_int) c_int; |
| 408 | 408 | |
| 409 | 409 | pub extern "c" fn if_nametoindex([*:0]const u8) c_int; |
| 410 | 410 | |
| 411 | pub extern "c" fn timer_create(clockid: c.clockid_t, sevp: *c.sigevent, timerid: *c.timer_t) c_int; | |
| 412 | pub extern "c" fn timer_delete(timerid: c.timer_t) c_int; | |
| 413 | pub extern "c" fn timer_settime(timerid: c.timer_t, flags: c_int, new_value: *const c.itimerspec, old_value: *c.itimerspec) c_int; | |
| 414 | pub extern "c" fn timer_gettime(timerid: c.timer_t, flags: c_int, curr_value: *c.itimerspec) c_int; | |
| 415 | ||
| 411 | 416 | pub const max_align_t = if (builtin.abi == .msvc) |
| 412 | 417 | f64 |
| 413 | 418 | else if (builtin.target.isDarwin()) |
lib/std/c/dragonfly.zig+2| ... | ... | @@ -1162,3 +1162,5 @@ pub const sigevent = extern struct { |
| 1162 | 1162 | }; |
| 1163 | 1163 | |
| 1164 | 1164 | pub const PTHREAD_STACK_MIN = 16 * 1024; |
| 1165 | ||
| 1166 | pub const timer_t = *opaque {}; |
lib/std/c/freebsd.zig+2| ... | ... | @@ -2586,6 +2586,8 @@ pub const sigevent = extern struct { |
| 2586 | 2586 | }, |
| 2587 | 2587 | }; |
| 2588 | 2588 | |
| 2589 | pub const timer_t = *opaque {}; | |
| 2590 | ||
| 2589 | 2591 | pub const MIN = struct { |
| 2590 | 2592 | pub const INCORE = 0x1; |
| 2591 | 2593 | pub const REFERENCED = 0x2; |
lib/std/c/linux.zig+1| ... | ... | @@ -100,6 +100,7 @@ pub const stack_t = linux.stack_t; |
| 100 | 100 | pub const tcflag_t = linux.tcflag_t; |
| 101 | 101 | pub const termios = linux.termios; |
| 102 | 102 | pub const time_t = linux.time_t; |
| 103 | pub const timer_t = linux.timer_t; | |
| 103 | 104 | pub const timespec = linux.timespec; |
| 104 | 105 | pub const timeval = linux.timeval; |
| 105 | 106 | pub const timezone = linux.timezone; |
lib/std/c/netbsd.zig+2| ... | ... | @@ -1723,3 +1723,5 @@ pub extern "c" fn ptrace(request: c_int, pid: pid_t, addr: ?*anyopaque, data: c_ |
| 1723 | 1723 | |
| 1724 | 1724 | /// TODO refines if necessary |
| 1725 | 1725 | pub const PTHREAD_STACK_MIN = 16 * 1024; |
| 1726 | ||
| 1727 | pub const timer_t = *opaque {}; |
lib/std/c/solaris.zig+2| ... | ... | @@ -1948,3 +1948,5 @@ pub const sigevent = extern struct { |
| 1948 | 1948 | }; |
| 1949 | 1949 | |
| 1950 | 1950 | pub const PTHREAD_STACK_MIN = if (@sizeOf(usize) == 8) 8 * 1024 else 4 * 1024; |
| 1951 | ||
| 1952 | pub const timer_t = *opaque {}; |