Revert "[PATCH 7/7] RISC-V: Disable by pieces for vector setmem length > UNITS_PER_WORD"
[official-gcc.git] / libgo / go / runtime / stubs2.go
blob587109209d18bbc7734c25e87b7e34d608010c6e
1 // Copyright 2014 The Go Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style
3 // license that can be found in the LICENSE file.
5 //go:build !js && !plan9 && !windows
7 package runtime
9 import "unsafe"
11 // read calls the read system call.
12 // It returns a non-negative number of bytes written or a negative errno value.
13 //go:noescape
14 func read(fd int32, p unsafe.Pointer, n int32) int32
16 func closefd(fd int32) int32
18 //extern-sysinfo exit
19 func exit(code int32)
20 func usleep(usec uint32)
22 //go:nosplit
23 func usleep_no_g(usec uint32) {
24 usleep(usec)
27 // write calls the write system call.
28 // It returns a non-negative number of bytes written or a negative errno value.
29 //go:noescape
30 func write1(fd uintptr, p unsafe.Pointer, n int32) int32
32 //go:noescape
33 func open(name *byte, mode, perm int32) int32
35 // exitThread terminates the current thread, writing *wait = 0 when
36 // the stack is safe to reclaim.
37 func exitThread(wait *uint32) {
38 // This is never used by gccgo.
39 throw("exitThread")
42 // So that the C initialization code can call osinit.
43 //go:linkname osinit runtime.osinit