mirror of
https://github.com/ziglang/zig.git
synced 2024-11-15 08:33:06 +00:00
rename signalfd4 to signalfd
This commit is contained in:
parent
96a27557e2
commit
2deb07a001
@ -5309,7 +5309,7 @@ pub fn ioctl_SIOCGIFINDEX(fd: fd_t, ifr: *ifreq) IoCtl_SIOCGIFINDEX_Error!void {
|
||||
}
|
||||
|
||||
pub fn signalfd(fd: fd_t, mask: *const sigset_t, flags: i32) !fd_t {
|
||||
const rc = system.signalfd4(fd, mask, flags);
|
||||
const rc = system.signalfd(fd, mask, flags);
|
||||
switch (errno(rc)) {
|
||||
0 => return @intCast(fd_t, rc),
|
||||
EBADF, EINVAL => unreachable,
|
||||
|
@ -1200,7 +1200,7 @@ pub fn ioctl(fd: fd_t, request: u32, arg: usize) usize {
|
||||
return syscall3(.ioctl, @bitCast(usize, @as(isize, fd)), request, arg);
|
||||
}
|
||||
|
||||
pub fn signalfd4(fd: fd_t, mask: *const sigset_t, flags: i32) usize {
|
||||
pub fn signalfd(fd: fd_t, mask: *const sigset_t, flags: i32) usize {
|
||||
return syscall4(
|
||||
.signalfd4,
|
||||
@bitCast(usize, @as(isize, fd)),
|
||||
|
Loading…
Reference in New Issue
Block a user