Search Options

Results per page
Sort
Preferred Languages
Advance

Results 21 - 30 of 1,652 for closeFD (0.14 sec)

  1. src/runtime/os_darwin.go

    }
    
    var urandom_dev = []byte("/dev/urandom\x00")
    
    //go:nosplit
    func readRandom(r []byte) int {
    	fd := open(&urandom_dev[0], 0 /* O_RDONLY */, 0)
    	n := read(fd, unsafe.Pointer(&r[0]), int32(len(r)))
    	closefd(fd)
    	return int(n)
    }
    
    func goenvs() {
    	goenvs_unix()
    }
    
    // May run with m.p==nil, so write barriers are not allowed.
    //
    //go:nowritebarrierrec
    func newosproc(mp *m) {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Dec 05 20:34:30 UTC 2023
    - 11.9K bytes
    - Viewed (0)
  2. src/runtime/os_netbsd.go

    }
    
    var urandom_dev = []byte("/dev/urandom\x00")
    
    //go:nosplit
    func readRandom(r []byte) int {
    	fd := open(&urandom_dev[0], 0 /* O_RDONLY */, 0)
    	n := read(fd, unsafe.Pointer(&r[0]), int32(len(r)))
    	closefd(fd)
    	return int(n)
    }
    
    func goenvs() {
    	goenvs_unix()
    }
    
    // Called to initialize a new m (including the bootstrap m).
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Mar 25 19:53:03 UTC 2024
    - 10.1K bytes
    - Viewed (0)
  3. src/runtime/os_freebsd.go

    	}
    }
    
    var urandom_dev = []byte("/dev/urandom\x00")
    
    //go:nosplit
    func readRandom(r []byte) int {
    	fd := open(&urandom_dev[0], 0 /* O_RDONLY */, 0)
    	n := read(fd, unsafe.Pointer(&r[0]), int32(len(r)))
    	closefd(fd)
    	return int(n)
    }
    
    func goenvs() {
    	goenvs_unix()
    }
    
    // Called to initialize a new m (including the bootstrap m).
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Dec 05 20:34:30 UTC 2023
    - 11.6K bytes
    - Viewed (0)
  4. src/runtime/sys_freebsd_riscv64.s

    	MOV	name+0(FP), A0
    	MOVW	mode+8(FP), A1
    	MOVW	perm+12(FP), A2
    	MOV	$SYS_open, T0
    	ECALL
    	BEQ	T0, ZERO, ok
    	MOV	$-1, A0
    ok:
    	MOVW	A0, ret+16(FP)
    	RET
    
    // func closefd(fd int32) int32
    TEXT runtime·closefd(SB),NOSPLIT|NOFRAME,$0-12
    	MOVW	fd+0(FP), A0
    	MOV	$SYS_close, T0
    	ECALL
    	BEQ	T0, ZERO, ok
    	MOV	$-1, A0
    ok:
    	MOVW	A0, ret+8(FP)
    	RET
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Jun 06 18:49:01 UTC 2023
    - 8.9K bytes
    - Viewed (0)
  5. src/runtime/sys_freebsd_arm64.s

    	MOVD	name+0(FP), R0
    	MOVW	mode+8(FP), R1
    	MOVW	perm+12(FP), R2
    	MOVD	$SYS_open, R8
    	SVC
    	BCC	ok
    	MOVW	$-1, R0
    ok:
    	MOVW	R0, ret+16(FP)
    	RET
    
    // func closefd(fd int32) int32
    TEXT runtime·closefd(SB),NOSPLIT|NOFRAME,$0-12
    	MOVW	fd+0(FP), R0
    	MOVD	$SYS_close, R8
    	SVC
    	BCC	ok
    	MOVW	$-1, R0
    ok:
    	MOVW	R0, ret+8(FP)
    	RET
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Jun 06 18:49:01 UTC 2023
    - 9.5K bytes
    - Viewed (0)
  6. src/runtime/sys_linux_riscv64.s

    	MOV	$AT_FDCWD, A0
    	MOV	name+0(FP), A1
    	MOVW	mode+8(FP), A2
    	MOVW	perm+12(FP), A3
    	MOV	$SYS_openat, A7
    	ECALL
    	MOV	$-4096, T0
    	BGEU	T0, A0, 2(PC)
    	MOV	$-1, A0
    	MOVW	A0, ret+16(FP)
    	RET
    
    // func closefd(fd int32) int32
    TEXT runtime·closefd(SB),NOSPLIT|NOFRAME,$0-12
    	MOVW	fd+0(FP), A0
    	MOV	$SYS_close, A7
    	ECALL
    	MOV	$-4096, T0
    	BGEU	T0, A0, 2(PC)
    	MOV	$-1, A0
    	MOVW	A0, ret+8(FP)
    	RET
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Nov 09 13:57:06 UTC 2023
    - 11.5K bytes
    - Viewed (0)
  7. src/runtime/sys_linux_loong64.s

    	MOVV	name+0(FP), R5
    	MOVW	mode+8(FP), R6
    	MOVW	perm+12(FP), R7
    	MOVV	$SYS_openat, R11
    	SYSCALL
    	MOVW	$-4096, R5
    	BGEU	R5, R4, 2(PC)
    	MOVW	$-1, R4
    	MOVW	R4, ret+16(FP)
    	RET
    
    // func closefd(fd int32) int32
    TEXT runtime·closefd(SB),NOSPLIT|NOFRAME,$0-12
    	MOVW	fd+0(FP), R4
    	MOVV	$SYS_close, R11
    	SYSCALL
    	MOVW	$-4096, R5
    	BGEU	R5, R4, 2(PC)
    	MOVW	$-1, R4
    	MOVW	R4, ret+8(FP)
    	RET
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri Aug 25 20:58:13 UTC 2023
    - 14.2K bytes
    - Viewed (0)
  8. src/runtime/os2_aix.go

    }
    
    //go:nosplit
    func open(name *byte, mode, perm int32) int32 {
    	r, _ := syscall3(&libc_open, uintptr(unsafe.Pointer(name)), uintptr(mode), uintptr(perm))
    	return int32(r)
    }
    
    //go:nosplit
    func closefd(fd int32) int32 {
    	r, _ := syscall1(&libc_close, uintptr(fd))
    	return int32(r)
    }
    
    //go:nosplit
    func pipe() (r, w int32, errno int32) {
    	var p [2]int32
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Dec 14 17:22:18 UTC 2023
    - 20.9K bytes
    - Viewed (0)
  9. src/runtime/sys_darwin.go

    	var p [2]int32
    	errno = libcCall(unsafe.Pointer(abi.FuncPCABI0(pipe_trampoline)), noescape(unsafe.Pointer(&p)))
    	return p[0], p[1], errno
    }
    func pipe_trampoline()
    
    //go:nosplit
    //go:cgo_unsafe_args
    func closefd(fd int32) int32 {
    	return libcCall(unsafe.Pointer(abi.FuncPCABI0(close_trampoline)), unsafe.Pointer(&fd))
    }
    func close_trampoline()
    
    // This is exported via linkname to assembly in runtime/cgo.
    //
    //go:nosplit
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 23 01:17:26 UTC 2024
    - 23.9K bytes
    - Viewed (0)
  10. guava/src/com/google/common/io/Closer.java

     *
     * <pre>{@code
     * Closer closer = Closer.create();
     * try {
     *   InputStream in = closer.register(openInputStream());
     *   OutputStream out = closer.register(openOutputStream());
     *   // do stuff
     * } catch (Throwable e) {
     *   // ensure that any checked exception types other than IOException that could be thrown are
     *   // provided here, e.g. throw closer.rethrow(e, CheckedException.class);
    Registered: Wed Jun 12 16:38:11 UTC 2024
    - Last Modified: Tue May 07 15:26:58 UTC 2024
    - 10.4K bytes
    - Viewed (0)
Back to top