mirror of
https://github.com/ziglang/zig.git
synced 2024-11-15 16:45:27 +00:00
parent
8e9a33b82c
commit
9f20d01cfb
@ -408,11 +408,6 @@ pub extern "c" fn setlogmask(maskpri: c_int) c_int;
|
||||
|
||||
pub extern "c" fn if_nametoindex([*:0]const u8) c_int;
|
||||
|
||||
pub extern "c" fn timer_create(clockid: c.clockid_t, sevp: *c.sigevent, timerid: *c.timer_t) c_int;
|
||||
pub extern "c" fn timer_delete(timerid: c.timer_t) c_int;
|
||||
pub extern "c" fn timer_settime(timerid: c.timer_t, flags: c_int, new_value: *const c.itimerspec, old_value: *c.itimerspec) c_int;
|
||||
pub extern "c" fn timer_gettime(timerid: c.timer_t, flags: c_int, curr_value: *c.itimerspec) c_int;
|
||||
|
||||
pub usingnamespace if (builtin.os.tag == .linux and builtin.target.isMusl()) struct {
|
||||
// musl does not implement getcontext
|
||||
pub const getcontext = std.os.linux.getcontext;
|
||||
|
@ -1162,5 +1162,3 @@ pub const sigevent = extern struct {
|
||||
};
|
||||
|
||||
pub const PTHREAD_STACK_MIN = 16 * 1024;
|
||||
|
||||
pub const timer_t = *opaque {};
|
||||
|
@ -2586,8 +2586,6 @@ pub const sigevent = extern struct {
|
||||
},
|
||||
};
|
||||
|
||||
pub const timer_t = *opaque {};
|
||||
|
||||
pub const MIN = struct {
|
||||
pub const INCORE = 0x1;
|
||||
pub const REFERENCED = 0x2;
|
||||
|
@ -100,7 +100,6 @@ pub const stack_t = linux.stack_t;
|
||||
pub const tcflag_t = linux.tcflag_t;
|
||||
pub const termios = linux.termios;
|
||||
pub const time_t = linux.time_t;
|
||||
pub const timer_t = linux.timer_t;
|
||||
pub const timespec = linux.timespec;
|
||||
pub const timeval = linux.timeval;
|
||||
pub const timezone = linux.timezone;
|
||||
|
@ -1723,5 +1723,3 @@ pub extern "c" fn ptrace(request: c_int, pid: pid_t, addr: ?*anyopaque, data: c_
|
||||
|
||||
/// TODO refines if necessary
|
||||
pub const PTHREAD_STACK_MIN = 16 * 1024;
|
||||
|
||||
pub const timer_t = *opaque {};
|
||||
|
@ -1948,5 +1948,3 @@ pub const sigevent = extern struct {
|
||||
};
|
||||
|
||||
pub const PTHREAD_STACK_MIN = if (@sizeOf(usize) == 8) 8 * 1024 else 4 * 1024;
|
||||
|
||||
pub const timer_t = *opaque {};
|
||||
|
Loading…
Reference in New Issue
Block a user