Search Options

Results per page
Sort
Preferred Languages
Advance

Results 11 - 20 of 2,541 for write1 (0.11 sec)

  1. src/runtime/os3_solaris.go

    }
    
    func walltime() (sec int64, nsec int32) {
    	var ts mts
    	sysvicall2(&libc_clock_gettime, _CLOCK_REALTIME, uintptr(unsafe.Pointer(&ts)))
    	return ts.tv_sec, int32(ts.tv_nsec)
    }
    
    //go:nosplit
    func write1(fd uintptr, buf unsafe.Pointer, nbyte int32) int32 {
    	r1, err := sysvicall3Err(&libc_write, fd, uintptr(buf), uintptr(nbyte))
    	if c := int32(r1); c >= 0 {
    		return c
    	}
    	return -int32(err)
    }
    
    //go:nosplit
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Mar 25 19:53:03 UTC 2024
    - 17.6K bytes
    - Viewed (0)
  2. src/runtime/os_windows.go

    		}
    	}
    	var written uint32
    	stdcall5(_WriteFile, handle, uintptr(buf), uintptr(n), uintptr(unsafe.Pointer(&written)), 0)
    	return int32(written)
    }
    
    var (
    	utf16ConsoleBack     [1000]uint16
    	utf16ConsoleBackLock mutex
    )
    
    // writeConsole writes bufLen bytes from buf to the console File.
    // It returns the number of bytes written.
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri Apr 26 22:55:25 UTC 2024
    - 41.5K bytes
    - Viewed (0)
  3. src/runtime/sys_linux_riscv64.s

    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
    
    // func write1(fd uintptr, p unsafe.Pointer, n int32) int32
    TEXT runtime·write1(SB),NOSPLIT|NOFRAME,$0-28
    	MOV	fd+0(FP), A0
    	MOV	p+8(FP), A1
    	MOVW	n+16(FP), A2
    	MOV	$SYS_write, A7
    	ECALL
    	MOVW	A0, ret+24(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)
  4. src/runtime/os2_aix.go

    	// Check the validity of g because without a g during
    	// newosproc0.
    	if gp != nil {
    		syscall1(&libc_exit, uintptr(code))
    		return
    	}
    	exit1(code)
    }
    
    func write2(fd, p uintptr, n int32) int32
    
    //go:nosplit
    func write1(fd uintptr, p unsafe.Pointer, n int32) int32 {
    	gp := getg()
    
    	// Check the validity of g because without a g during
    	// newosproc0.
    	if gp != nil {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Dec 14 17:22:18 UTC 2023
    - 20.9K bytes
    - Viewed (0)
  5. src/runtime/sys_linux_loong64.s

    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
    
    // func write1(fd uintptr, p unsafe.Pointer, n int32) int32
    TEXT runtime·write1(SB),NOSPLIT|NOFRAME,$0-28
    	MOVV	fd+0(FP), R4
    	MOVV	p+8(FP), R5
    	MOVW	n+16(FP), R6
    	MOVV	$SYS_write, R11
    	SYSCALL
    	MOVW	R4, ret+24(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)
  6. src/runtime/sys_darwin.go

    //go:nosplit
    //go:cgo_unsafe_args
    func usleep_no_g(usec uint32) {
    	asmcgocall_no_g(unsafe.Pointer(abi.FuncPCABI0(usleep_trampoline)), unsafe.Pointer(&usec))
    }
    
    //go:nosplit
    //go:cgo_unsafe_args
    func write1(fd uintptr, p unsafe.Pointer, n int32) int32 {
    	ret := libcCall(unsafe.Pointer(abi.FuncPCABI0(write_trampoline)), unsafe.Pointer(&fd))
    	KeepAlive(p)
    	return ret
    }
    func write_trampoline()
    
    //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)
  7. src/runtime/sys_openbsd_riscv64.s

    noerr:
    	RET
    
    TEXT runtime·write_trampoline(SB),NOSPLIT,$8
    	MOV	8(X10), X11		// arg 2 - buf
    	MOVW	16(X10), X12		// arg 3 - count
    	MOV	0(X10), X10		// arg 1 - fd (uintptr from write1)
    	CALL	libc_write(SB)
    	MOV	$-1, X5
    	BNE	X5, X10, noerr
    	CALL	libc_errno(SB)
    	MOVW	(X10), X10		// errno
    	NEG	X10			// caller expects negative errno
    noerr:
    	RET
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed Oct 04 02:55:17 UTC 2023
    - 16.8K bytes
    - Viewed (0)
  8. tensorflow/compiler/mlir/tensorflow/tests/tensor_array_ops_decomposition.mlir

      %read = "tf.TensorArrayReadV3"(%ta#0, %index, %write) : (tensor<!tf_type.resource>, tensor<i32>, tensor<f32>) -> tensor<3xf32>
      // CHECK-NOT: TensorArrayCloseV3
      "tf.TensorArrayCloseV3"(%ta#0) : (tensor<!tf_type.resource>) -> ()
      // CHECK: return %[[READ]] : tensor<3xf32>
      func.return %read: tensor<3xf32>
    }
    
    // -----
    
    // Test inferring shape from the first write.
    
    // CHECK-LABEL: func @main
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Mon Oct 30 06:52:55 UTC 2023
    - 49K bytes
    - Viewed (0)
  9. src/encoding/csv/writer.go

    }
    
    // NewWriter returns a new Writer that writes to w.
    func NewWriter(w io.Writer) *Writer {
    	return &Writer{
    		Comma: ',',
    		w:     bufio.NewWriter(w),
    	}
    }
    
    // Write writes a single CSV record to w along with any necessary quoting.
    // A record is a slice of strings with each string being one field.
    // Writes are buffered, so [Writer.Flush] must eventually be called to ensure
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri Sep 08 19:04:28 UTC 2023
    - 4.8K bytes
    - Viewed (0)
  10. src/mime/quotedprintable/writer.go

    }
    
    // Write encodes p using quoted-printable encoding and writes it to the
    // underlying [io.Writer]. It limits line length to 76 characters. The encoded
    // bytes are not necessarily flushed until the [Writer] is closed.
    func (w *Writer) Write(p []byte) (n int, err error) {
    	for i, b := range p {
    		switch {
    		// Simple writes are done in batch.
    		case b >= '!' && b <= '~' && b != '=':
    			continue
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Mar 21 16:12:35 UTC 2024
    - 3.2K bytes
    - Viewed (0)
Back to top