Commit 9f20d01cfb

Andrew Kelley <andrew@ziglang.org>
2023-07-31 19:51:44
Revert "std.c: exposing timer api"
This reverts commit 54ea0bbcdddc9e13ed98415d8883f03d59392509.
1 parent 8e9a33b
lib/std/c/dragonfly.zig
@@ -1162,5 +1162,3 @@ pub const sigevent = extern struct {
 };
 
 pub const PTHREAD_STACK_MIN = 16 * 1024;
-
-pub const timer_t = *opaque {};
lib/std/c/freebsd.zig
@@ -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;
lib/std/c/linux.zig
@@ -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;
lib/std/c/netbsd.zig
@@ -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 {};
lib/std/c/solaris.zig
@@ -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 {};
lib/std/c.zig
@@ -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;