Revert "std.c: exposing timer api"

This reverts commit 54ea0bbcdd.
This commit is contained in:
Andrew Kelley 2023-07-31 10:51:44 -07:00
parent 8e9a33b82c
commit 9f20d01cfb
6 changed files with 0 additions and 14 deletions

View File

@ -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;

View File

@ -1162,5 +1162,3 @@ pub const sigevent = extern struct {
};
pub const PTHREAD_STACK_MIN = 16 * 1024;
pub const timer_t = *opaque {};

View File

@ -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;

View File

@ -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;

View File

@ -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 {};

View File

@ -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 {};