- Sort Score
- Result 10 results
- Languages All
Results 1 - 10 of 1,010 for closeFD (0.16 sec)
-
src/time/sys_windows.go
err = syscall.ENOENT } return 0, err } return uintptr(fd), nil } func read(fd uintptr, buf []byte) (int, error) { return syscall.Read(syscall.Handle(fd), buf) } func closefd(fd uintptr) { syscall.Close(syscall.Handle(fd)) } func preadn(fd uintptr, buf []byte, off int) error { whence := seekStart if off < 0 { whence = seekEnd }
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Sun May 08 17:19:07 UTC 2022 - 1.1K bytes - Viewed (0) -
src/time/sys_plan9.go
if err != nil { return 0, err } return uintptr(fd), nil } func read(fd uintptr, buf []byte) (int, error) { return syscall.Read(int(fd), buf) } func closefd(fd uintptr) { syscall.Close(int(fd)) } func preadn(fd uintptr, buf []byte, off int) error { whence := seekStart if off < 0 { whence = seekEnd } if _, err := syscall.Seek(int(fd), int64(off), whence); err != nil {
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Thu Oct 28 18:17:57 UTC 2021 - 1016 bytes - Viewed (0) -
src/runtime/stubs2.go
"unsafe" ) // read calls the read system call. // It returns a non-negative number of bytes written or a negative errno value. func read(fd int32, p unsafe.Pointer, n int32) int32 func closefd(fd int32) int32 func exit(code int32) func usleep(usec uint32) //go:nosplit func usleep_no_g(usec uint32) { usleep(usec) } // write1 calls the write system call.
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Mon Mar 25 19:53:03 UTC 2024 - 1.1K bytes - Viewed (0) -
src/runtime/env_plan9.go
copy(buf, envDir) dirfd := open(&buf[0], _OREAD, 0) if dirfd < 0 { return } defer closefd(dirfd) dofiles(dirfd, func(name []byte) { name = append(name, 0) buf = buf[:len(envDir)] copy(buf, envDir) buf = append(buf, name...) fd := open(&buf[0], _OREAD, 0) if fd < 0 { return } defer closefd(fd) n := len(buf) r := 0 for { r = int(pread(fd, unsafe.Pointer(&buf[0]), int32(n), 0))
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Wed Oct 26 02:39:39 UTC 2022 - 3K bytes - Viewed (0) -
src/time/sys_unix.go
if err != nil { return 0, err } return uintptr(fd), nil } func read(fd uintptr, buf []byte) (int, error) { return syscall.Read(int(fd), buf) } func closefd(fd uintptr) { syscall.Close(int(fd)) } func preadn(fd uintptr, buf []byte, off int) error { whence := seekStart if off < 0 { whence = seekEnd } if _, err := syscall.Seek(int(fd), int64(off), whence); err != nil {
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Tue Apr 11 20:56:10 UTC 2023 - 1.4K bytes - Viewed (0) -
src/runtime/vdso_freebsd_x86.go
fd := open(&devPath[0], 0 /* O_RDONLY */ |_O_CLOEXEC, 0) if fd < 0 { atomic.Casuintptr(&hpetDevMap[idx], 0, ^uintptr(0)) return } addr, mmapErr := mmap(nil, physPageSize, _PROT_READ, _MAP_SHARED, fd, 0) closefd(fd) newP := uintptr(addr) if mmapErr != 0 { newP = ^uintptr(0) } if !atomic.Casuintptr(&hpetDevMap[idx], 0, newP) && mmapErr == 0 { munmap(addr, physPageSize) } } //go:nosplit
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Mon Mar 25 19:53:03 UTC 2024 - 1.9K bytes - Viewed (0) -
src/syscall/exec_libc.go
if err1 != 0 { goto childerror } } // By convention, we don't close-on-exec the fds we are // started with, so if len(fd) < 3, close 0, 1, 2 as needed. // Programs that know they inherit fds >= 3 will need // to set them close-on-exec. for i = len(fd); i < 3; i++ { closeFD(uintptr(i)) } // Detach fd 0 from tty if sys.Noctty { err1 = ioctl(0, uintptr(TIOCNOTTY), 0)
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Fri Sep 29 18:51:35 UTC 2023 - 8.2K bytes - Viewed (0) -
src/time/zoneinfo_android.go
) if len(name) > namesize { return nil, errors.New(name + " is longer than the maximum zone name length (40 bytes)") } fd, err := open(file) if err != nil { return nil, err } defer closefd(fd) buf := make([]byte, headersize) if err := preadn(fd, buf, 0); err != nil { return nil, errors.New("corrupt tzdata file " + file) } d := dataIO{buf, false} if magic := d.read(6); string(magic) != "tzdata" {
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Fri Mar 18 20:57:35 UTC 2022 - 2.2K bytes - Viewed (0) -
src/syscall/asm_solaris_amd64.s
TEXT ·rawSysvicall6(SB),NOSPLIT,$0 JMP runtime·syscall_rawsysvicall6(SB) TEXT ·chdir(SB),NOSPLIT,$0 JMP runtime·syscall_chdir(SB) TEXT ·chroot1(SB),NOSPLIT,$0 JMP runtime·syscall_chroot(SB) TEXT ·closeFD(SB),NOSPLIT,$0 JMP runtime·syscall_close(SB) TEXT ·dup2child(SB),NOSPLIT,$0 JMP runtime·syscall_dup2(SB) RET TEXT ·execve(SB),NOSPLIT,$0 JMP runtime·syscall_execve(SB) TEXT ·exit(SB),NOSPLIT,$0
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Wed Mar 15 17:21:30 UTC 2023 - 1.8K bytes - Viewed (0) -
src/runtime/os_wasm.go
func sigignore(uint32) {} // Stubs so tests can link correctly. These should never be called. func open(name *byte, mode, perm int32) int32 { panic("not implemented") } func closefd(fd int32) int32 { panic("not implemented") }
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Mon Mar 25 19:53:03 UTC 2024 - 3.2K bytes - Viewed (0)