Skip to content

Commit

Permalink
refactor(linux): replace Pselect with pselect6 for Select
Browse files Browse the repository at this point in the history
  • Loading branch information
mauri870 committed Jul 17, 2023
1 parent 92541e6 commit 29a4f6b
Show file tree
Hide file tree
Showing 5 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion unix/syscall_linux_amd64.go
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ func Select(nfd int, r *FdSet, w *FdSet, e *FdSet, timeout *Timeval) (n int, err
if timeout != nil {
ts = &Timespec{Sec: timeout.Sec, Nsec: timeout.Usec * 1000}
}
return Pselect(nfd, r, w, e, ts, nil)
return pselect6(nfd, r, w, e, ts, nil)
}

//sys sendfile(outfd int, infd int, offset *int64, count int) (written int, err error)
Expand Down
2 changes: 1 addition & 1 deletion unix/syscall_linux_arm64.go
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ func Select(nfd int, r *FdSet, w *FdSet, e *FdSet, timeout *Timeval) (n int, err
if timeout != nil {
ts = &Timespec{Sec: timeout.Sec, Nsec: timeout.Usec * 1000}
}
return Pselect(nfd, r, w, e, ts, nil)
return pselect6(nfd, r, w, e, ts, nil)
}

//sys sendfile(outfd int, infd int, offset *int64, count int) (written int, err error)
Expand Down
2 changes: 1 addition & 1 deletion unix/syscall_linux_loong64.go
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ func Select(nfd int, r *FdSet, w *FdSet, e *FdSet, timeout *Timeval) (n int, err
if timeout != nil {
ts = &Timespec{Sec: timeout.Sec, Nsec: timeout.Usec * 1000}
}
return Pselect(nfd, r, w, e, ts, nil)
return pselect6(nfd, r, w, e, ts, nil)
}

//sys sendfile(outfd int, infd int, offset *int64, count int) (written int, err error)
Expand Down
2 changes: 1 addition & 1 deletion unix/syscall_linux_mips64x.go
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ func Select(nfd int, r *FdSet, w *FdSet, e *FdSet, timeout *Timeval) (n int, err
if timeout != nil {
ts = &Timespec{Sec: timeout.Sec, Nsec: timeout.Usec * 1000}
}
return Pselect(nfd, r, w, e, ts, nil)
return pselect6(nfd, r, w, e, ts, nil)
}

//sys sendfile(outfd int, infd int, offset *int64, count int) (written int, err error)
Expand Down
2 changes: 1 addition & 1 deletion unix/syscall_linux_riscv64.go
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ func Select(nfd int, r *FdSet, w *FdSet, e *FdSet, timeout *Timeval) (n int, err
if timeout != nil {
ts = &Timespec{Sec: timeout.Sec, Nsec: timeout.Usec * 1000}
}
return Pselect(nfd, r, w, e, ts, nil)
return pselect6(nfd, r, w, e, ts, nil)
}

//sys sendfile(outfd int, infd int, offset *int64, count int) (written int, err error)
Expand Down

0 comments on commit 29a4f6b

Please sign in to comment.