mirror of https://github.com/golang/go.git
Use the libc fcntl (via syscall.fcntl) on aix and solaris like it is already done for darwin. For the syscall-based fcntl implementation use FcntlSyscall from internal/syscall/unix in order to get fcntl64 on 32-bit Linux systems. On aix, fcntl with F_DUPFD_CLOEXEC is not supported. Thus, defined F_DUPFD_CLOEXEC = 0 in the syscall package and check its value before calling fcntl(fd, syscall.F_DUPFD_CLOEXEC, 0). On js/wasm, fcntl is not supported thus let its implementation return ENOSYS directly. Updates #36211 Change-Id: I96a2ea79e5c4eed2fefd94d0aefd72c940825682 Reviewed-on: https://go-review.googlesource.com/c/go/+/212278 Run-TryBot: Tobias Klauser <tobias.klauser@gmail.com> TryBot-Result: Gobot Gobot <gobot@golang.org> Reviewed-by: Ian Lance Taylor <iant@golang.org> |
||
|---|---|---|
| .. | ||
| errno_unix.go | ||
| errno_windows.go | ||
| error_linux_test.go | ||
| error_stub_test.go | ||
| error_test.go | ||
| export_posix_test.go | ||
| export_test.go | ||
| export_windows_test.go | ||
| fcntl_js.go | ||
| fcntl_libc.go | ||
| fcntl_syscall.go | ||
| fd.go | ||
| fd_fsync_darwin.go | ||
| fd_fsync_posix.go | ||
| fd_fsync_windows.go | ||
| fd_io_plan9.go | ||
| fd_mutex.go | ||
| fd_mutex_test.go | ||
| fd_opendir_darwin.go | ||
| fd_plan9.go | ||
| fd_poll_js.go | ||
| fd_poll_runtime.go | ||
| fd_posix.go | ||
| fd_posix_test.go | ||
| fd_unix.go | ||
| fd_windows.go | ||
| fd_windows_test.go | ||
| fd_writev_darwin.go | ||
| fd_writev_unix.go | ||
| hook_cloexec.go | ||
| hook_unix.go | ||
| hook_windows.go | ||
| read_test.go | ||
| sendfile_bsd.go | ||
| sendfile_linux.go | ||
| sendfile_solaris.go | ||
| sendfile_windows.go | ||
| sock_cloexec.go | ||
| sockopt.go | ||
| sockopt_linux.go | ||
| sockopt_unix.go | ||
| sockopt_windows.go | ||
| sockoptip.go | ||
| splice_linux.go | ||
| strconv.go | ||
| sys_cloexec.go | ||
| writev.go | ||
| writev_test.go | ||