Update lib

This commit is contained in:
xing-yang
2023-10-15 00:12:10 +00:00
parent 46c9845c2e
commit 5ceee78eeb
89 changed files with 586 additions and 2209 deletions

View File

@@ -549,6 +549,9 @@ func SetNonblock(fd int, nonblocking bool) (err error) {
if err != nil {
return err
}
if (flag&O_NONBLOCK != 0) == nonblocking {
return nil
}
if nonblocking {
flag |= O_NONBLOCK
} else {