- Sort Score
- Result 10 results
- Languages All
Results 1 - 10 of 1,266 for write1 (0.13 sec)
-
src/runtime/os_plan9.go
return pread(fd, buf, n, -1) } //go:nosplit func write1(fd uintptr, buf unsafe.Pointer, n int32) int32 { return pwrite(int32(fd), buf, n, -1) } var _badsignal = []byte("runtime: signal received on thread not created by Go.\n") // This runs on a foreign stack, without an m or a g. No stack split. // //go:nosplit func badsignal2() { pwrite(2, unsafe.Pointer(&_badsignal[0]), int32(len(_badsignal)), -1)
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Fri May 17 15:41:45 UTC 2024 - 10.3K bytes - Viewed (0) -
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) -
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) -
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) -
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) -
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) -
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) -
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) -
src/archive/tar/writer.go
"path" "slices" "strings" "time" ) // Writer provides sequential writing of a tar archive. // [Writer.WriteHeader] begins a new file with the provided [Header], // and then Writer can be treated as an io.Writer to supply that file's data. type Writer struct { w io.Writer pad int64 // Amount of padding to write after current file entry curr fileWriter // Writer for current file entry
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Thu May 23 01:00:11 UTC 2024 - 19.6K bytes - Viewed (0) -
src/image/jpeg/writer.go
theHuffmanLUT[i].init(s) } } // writer is a buffered writer. type writer interface { Flush() error io.Writer io.ByteWriter } // encoder encodes an image to the JPEG format. type encoder struct { // w is the writer to write to. err is the first error encountered during // writing. All attempted writes after the first error become no-ops. w writer err error // buf is a scratch buffer.
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Thu Oct 19 12:02:45 UTC 2023 - 17.1K bytes - Viewed (0)