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;...@@ -408,11 +408,6 @@ pub extern "c" fn setlogmask(maskpri: c_int) c_int;
408408
409pub extern "c" fn if_nametoindex([*:0]const u8) c_int;409pub 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
416pub usingnamespace if (builtin.os.tag == .linux and builtin.target.isMusl()) struct {411pub usingnamespace if (builtin.os.tag == .linux and builtin.target.isMusl()) struct {
417 // musl does not implement getcontext412 // musl does not implement getcontext
418 pub const getcontext = std.os.linux.getcontext;413 pub const getcontext = std.os.linux.getcontext;
lib/std/c/dragonfly.zig-2
...@@ -1162,5 +1162,3 @@ pub const sigevent = extern struct {...@@ -1162,5 +1162,3 @@ pub const sigevent = extern struct {
1162};1162};
11631163
1164pub const PTHREAD_STACK_MIN = 16 * 1024;1164pub 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 {...@@ -2586,8 +2586,6 @@ pub const sigevent = extern struct {
2586 },2586 },
2587};2587};
25882588
2589pub const timer_t = *opaque {};
2590
2591pub const MIN = struct {2589pub const MIN = struct {
2592 pub const INCORE = 0x1;2590 pub const INCORE = 0x1;
2593 pub const REFERENCED = 0x2;2591 pub const REFERENCED = 0x2;
lib/std/c/linux.zig-1
...@@ -100,7 +100,6 @@ pub const stack_t = linux.stack_t;...@@ -100,7 +100,6 @@ pub const stack_t = linux.stack_t;
100pub const tcflag_t = linux.tcflag_t;100pub const tcflag_t = linux.tcflag_t;
101pub const termios = linux.termios;101pub const termios = linux.termios;
102pub const time_t = linux.time_t;102pub const time_t = linux.time_t;
103pub const timer_t = linux.timer_t;
104pub const timespec = linux.timespec;103pub const timespec = linux.timespec;
105pub const timeval = linux.timeval;104pub const timeval = linux.timeval;
106pub const timezone = linux.timezone;105pub 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_...@@ -1723,5 +1723,3 @@ pub extern "c" fn ptrace(request: c_int, pid: pid_t, addr: ?*anyopaque, data: c_
17231723
1724/// TODO refines if necessary1724/// TODO refines if necessary
1725pub const PTHREAD_STACK_MIN = 16 * 1024;1725pub 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 {...@@ -1948,5 +1948,3 @@ pub const sigevent = extern struct {
1948};1948};
19491949
1950pub const PTHREAD_STACK_MIN = if (@sizeOf(usize) == 8) 8 * 1024 else 4 * 1024;1950pub const PTHREAD_STACK_MIN = if (@sizeOf(usize) == 8) 8 * 1024 else 4 * 1024;
1951
1952pub const timer_t = *opaque {};