authorgravatar for andrew@ziglang.orgAndrew Kelley <andrew@ziglang.org> 2023-07-31 11:20:39-07:00
committergravatar for andrew@ziglang.orgAndrew Kelley <andrew@ziglang.org> 2023-07-31 11:20:39-07:00
log5f101b253ea4c61c9e4feeac2ad375f2e2f53bea
tree684ac35958a8b9f13cc8835bdda851e4a6a691d2
parent86388e3c32e238c88174cf9c91600f11add84d0a

Revert "std: adding sigevent to supported platforms."

This reverts commit 23c4f55a612842d8544a9dfe604a9caf1ca39697.

5 files changed, 0 insertions(+), 99 deletions(-)

lib/std/c/dragonfly.zig-17
......@@ -1143,20 +1143,3 @@ pub const POLL = struct {
11431143 pub const HUP = 0x0010;
11441144 pub const NVAL = 0x0020;
11451145};
1146
1147pub const SIGEV = struct {
1148 pub const NONE = 0;
1149 pub const SIGNAL = 1;
1150 pub const THREAD = 2;
1151};
1152
1153pub const sigevent = extern struct {
1154 sigev_notify: c_int,
1155 __sigev_u: extern union {
1156 __sigev_signo: c_int,
1157 __sigev_notify_kqueue: c_int,
1158 __sigev_notify_attributes: ?*pthread_attr_t,
1159 },
1160 sigev_value: sigval,
1161 sigev_notify_function: ?*const fn (sigval) callconv(.C) void,
1162};
lib/std/c/freebsd.zig-25
......@@ -2248,28 +2248,3 @@ pub const shm_largeconf = extern struct {
22482248pub extern "c" fn shm_create_largepage(path: [*:0]const u8, flags: c_int, psind: c_int, alloc_policy: c_int, mode: mode_t) c_int;
22492249
22502250pub extern "c" fn elf_aux_info(aux: c_int, buf: ?*anyopaque, buflen: c_int) c_int;
2251
2252pub const lwpid = i32;
2253
2254pub const SIGEV = struct {
2255 pub const NONE = 0;
2256 pub const SIGNAL = 1;
2257 pub const THREAD = 2;
2258 pub const KEVENT = 3;
2259 pub const THREAD_ID = 4;
2260};
2261
2262pub const sigevent = extern struct {
2263 sigev_notify: c_int,
2264 sigev_signo: c_int,
2265 sigev_value: sigval,
2266 _sigev_un: extern union {
2267 _threadid: lwpid,
2268 _sigev_thread: extern struct {
2269 _function: ?*const fn (sigval) callconv(.C) void,
2270 _attribute: ?**pthread_attr_t,
2271 },
2272 _kevent_flags: c_ushort,
2273 __spare__: [8]c_long,
2274 },
2275};
lib/std/c/haiku.zig-19
......@@ -1038,22 +1038,3 @@ pub const termios = extern struct {
10381038};
10391039
10401040pub const MSG_NOSIGNAL = 0x0800;
1041
1042pub const SIGEV = struct {
1043 pub const NONE = 0;
1044 pub const SIGNAL = 1;
1045 pub const THREAD = 2;
1046};
1047
1048pub const sigval = extern union {
1049 int: c_int,
1050 ptr: ?*anyopaque,
1051};
1052
1053pub const sigevent = extern struct {
1054 sigev_notify: c_int,
1055 sigev_signo: c_int,
1056 sigev_value: sigval,
1057 sigev_notify_function: ?*const fn (sigval) callconv(.C) void,
1058 sigev_notify_attributes: ?*pthread_attr_t,
1059};
lib/std/c/netbsd.zig-19
......@@ -1633,22 +1633,3 @@ pub const POLL = struct {
16331633 pub const HUP = 0x0010;
16341634 pub const NVAL = 0x0020;
16351635};
1636
1637pub const SIGEV = struct {
1638 pub const NONE = 0;
1639 pub const SIGNAL = 1;
1640 pub const THREAD = 2;
1641};
1642
1643pub const sigval = extern union {
1644 int: c_int,
1645 ptr: ?*anyopaque,
1646};
1647
1648pub const sigevent = extern struct {
1649 sigev_notify: c_int,
1650 sigev_signo: c_int,
1651 sigev_value: sigval,
1652 sigev_notify_function: ?*const fn (sigval) callconv(.C) void,
1653 sigev_notify_attributes: ?*pthread_attr_t,
1654};
lib/std/c/solaris.zig-19
......@@ -1927,22 +1927,3 @@ pub fn IOW(io_type: u8, nr: u8, comptime IOT: type) i32 {
19271927pub fn IOWR(io_type: u8, nr: u8, comptime IOT: type) i32 {
19281928 return ioImpl(.read_write, io_type, nr, IOT);
19291929}
1930
1931pub const SIGEV = struct {
1932 pub const NONE = 0;
1933 pub const SIGNAL = 1;
1934 pub const THREAD = 2;
1935};
1936
1937pub const sigval = extern union {
1938 int: c_int,
1939 ptr: ?*anyopaque,
1940};
1941
1942pub const sigevent = extern struct {
1943 sigev_notify: c_int,
1944 sigev_signo: c_int,
1945 sigev_value: sigval,
1946 sigev_notify_function: ?*const fn (sigval) callconv(.C) void,
1947 sigev_notify_attributes: ?*pthread_attr_t,
1948};