You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The text was updated successfully, but these errors were encountered:
hustcat
changed the title
syscall.FD_CLOEXEC is not equal with syscall.O_CLOEXEC
syscall: syscall.FD_CLOEXEC is not equal with syscall.O_CLOEXEC
May 23, 2018
Also, the given C program is checking the EFD_* constants while the Go program tests the FD_* constants. These are different things. As I see it, the current values of FD_CLOEXEC and FD_NONBLOCK match the respective values in glibc. FD_CLOEXEC is not the same value as O_CLOEXEC in glibc either, i.e. it matches the values in package syscall:
Why
syscall.FD_CLOEXEC
is not equal withsyscall.O_CLOEXEC
?However,FD_CLOEXEC
is equal withO_CLOEXEC
in glibc.In go:
In glibc:
And more, why
EFD_NONBLOCK
is not exist in go?What version of Go are you using (
go version
)?What operating system and processor architecture are you using (
go env
)?The text was updated successfully, but these errors were encountered: