authorgravatar for andrew@ziglang.orgAndrew Kelley <andrew@ziglang.org> 2023-07-31 10:51:44-07:00
committergravatar for andrew@ziglang.orgAndrew Kelley <andrew@ziglang.org> 2023-07-31 10:51:44-07:00
log9f20d01cfb593fb4959a1a16f786787477a3e91b
treed1e5348a64d2ad3b2fb294484c472926cf4b0aaf
parent8e9a33b82c1f8cbc457e7d0af37605952db0c4ae

Revert "std.c: exposing timer api"

This reverts commit 54ea0bbcdddc9e13ed98415d8883f03d59392509.

6 files changed, 0 insertions(+), 14 deletions(-)

lib/std/c.zig-5
......@@ -408,11 +408,6 @@ pub extern "c" fn setlogmask(maskpri: c_int) c_int;
408408
409409pub extern "c" fn if_nametoindex([*:0]const u8) c_int;
410410
411pub extern "c" fn timer_create(clockid: c.clockid_t, sevp: *c.sigevent, timerid: *c.timer_t) c_int;
412pub extern "c" fn timer_delete(timerid: c.timer_t) c_int;
413pub extern "c" fn timer_settime(timerid: c.timer_t, flags: c_int, new_value: *const c.itimerspec, old_value: *c.itimerspec) c_int;
414pub extern "c" fn timer_gettime(timerid: c.timer_t, flags: c_int, curr_value: *c.itimerspec) c_int;
415
416411pub usingnamespace if (builtin.os.tag == .linux and builtin.target.isMusl()) struct {
417412 // musl does not implement getcontext
418413 pub const getcontext = std.os.linux.getcontext;
lib/std/c/dragonfly.zig-2
......@@ -1162,5 +1162,3 @@ pub const sigevent = extern struct {
11621162};
11631163
11641164pub const PTHREAD_STACK_MIN = 16 * 1024;
1165
1166pub const timer_t = *opaque {};
lib/std/c/freebsd.zig-2
......@@ -2586,8 +2586,6 @@ pub const sigevent = extern struct {
25862586 },
25872587};
25882588
2589pub const timer_t = *opaque {};
2590
25912589pub const MIN = struct {
25922590 pub const INCORE = 0x1;
25932591 pub const REFERENCED = 0x2;
lib/std/c/linux.zig-1
......@@ -100,7 +100,6 @@ pub const stack_t = linux.stack_t;
100100pub const tcflag_t = linux.tcflag_t;
101101pub const termios = linux.termios;
102102pub const time_t = linux.time_t;
103pub const timer_t = linux.timer_t;
104103pub const timespec = linux.timespec;
105104pub const timeval = linux.timeval;
106105pub const timezone = linux.timezone;
lib/std/c/netbsd.zig-2
......@@ -1723,5 +1723,3 @@ pub extern "c" fn ptrace(request: c_int, pid: pid_t, addr: ?*anyopaque, data: c_
17231723
17241724/// TODO refines if necessary
17251725pub const PTHREAD_STACK_MIN = 16 * 1024;
1726
1727pub const timer_t = *opaque {};
lib/std/c/solaris.zig-2
......@@ -1948,5 +1948,3 @@ pub const sigevent = extern struct {
19481948};
19491949
19501950pub const PTHREAD_STACK_MIN = if (@sizeOf(usize) == 8) 8 * 1024 else 4 * 1024;
1951
1952pub const timer_t = *opaque {};