Revert "std: adding sigevent to supported platforms."

This reverts commit 23c4f55a61.
This commit is contained in:
Andrew Kelley 2023-07-31 11:20:39 -07:00
parent 86388e3c32
commit 5f101b253e
5 changed files with 0 additions and 99 deletions

View File

@ -1143,20 +1143,3 @@ pub const POLL = struct {
pub const HUP = 0x0010;
pub const NVAL = 0x0020;
};
pub const SIGEV = struct {
pub const NONE = 0;
pub const SIGNAL = 1;
pub const THREAD = 2;
};
pub const sigevent = extern struct {
sigev_notify: c_int,
__sigev_u: extern union {
__sigev_signo: c_int,
__sigev_notify_kqueue: c_int,
__sigev_notify_attributes: ?*pthread_attr_t,
},
sigev_value: sigval,
sigev_notify_function: ?*const fn (sigval) callconv(.C) void,
};

View File

@ -2248,28 +2248,3 @@ pub const shm_largeconf = extern struct {
pub 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;
pub extern "c" fn elf_aux_info(aux: c_int, buf: ?*anyopaque, buflen: c_int) c_int;
pub const lwpid = i32;
pub const SIGEV = struct {
pub const NONE = 0;
pub const SIGNAL = 1;
pub const THREAD = 2;
pub const KEVENT = 3;
pub const THREAD_ID = 4;
};
pub const sigevent = extern struct {
sigev_notify: c_int,
sigev_signo: c_int,
sigev_value: sigval,
_sigev_un: extern union {
_threadid: lwpid,
_sigev_thread: extern struct {
_function: ?*const fn (sigval) callconv(.C) void,
_attribute: ?**pthread_attr_t,
},
_kevent_flags: c_ushort,
__spare__: [8]c_long,
},
};

View File

@ -1038,22 +1038,3 @@ pub const termios = extern struct {
};
pub const MSG_NOSIGNAL = 0x0800;
pub const SIGEV = struct {
pub const NONE = 0;
pub const SIGNAL = 1;
pub const THREAD = 2;
};
pub const sigval = extern union {
int: c_int,
ptr: ?*anyopaque,
};
pub const sigevent = extern struct {
sigev_notify: c_int,
sigev_signo: c_int,
sigev_value: sigval,
sigev_notify_function: ?*const fn (sigval) callconv(.C) void,
sigev_notify_attributes: ?*pthread_attr_t,
};

View File

@ -1633,22 +1633,3 @@ pub const POLL = struct {
pub const HUP = 0x0010;
pub const NVAL = 0x0020;
};
pub const SIGEV = struct {
pub const NONE = 0;
pub const SIGNAL = 1;
pub const THREAD = 2;
};
pub const sigval = extern union {
int: c_int,
ptr: ?*anyopaque,
};
pub const sigevent = extern struct {
sigev_notify: c_int,
sigev_signo: c_int,
sigev_value: sigval,
sigev_notify_function: ?*const fn (sigval) callconv(.C) void,
sigev_notify_attributes: ?*pthread_attr_t,
};

View File

@ -1927,22 +1927,3 @@ pub fn IOW(io_type: u8, nr: u8, comptime IOT: type) i32 {
pub fn IOWR(io_type: u8, nr: u8, comptime IOT: type) i32 {
return ioImpl(.read_write, io_type, nr, IOT);
}
pub const SIGEV = struct {
pub const NONE = 0;
pub const SIGNAL = 1;
pub const THREAD = 2;
};
pub const sigval = extern union {
int: c_int,
ptr: ?*anyopaque,
};
pub const sigevent = extern struct {
sigev_notify: c_int,
sigev_signo: c_int,
sigev_value: sigval,
sigev_notify_function: ?*const fn (sigval) callconv(.C) void,
sigev_notify_attributes: ?*pthread_attr_t,
};