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
11 // read calls the read system call.
12 // It returns a non-negative number of bytes written or a negative errno value.
14 func read(fd
int32, p unsafe
.Pointer
, n
int32) int32
16 func closefd(fd
int32) int32
20 func usleep(usec
uint32)
23 func usleep_no_g(usec
uint32) {
27 // write calls the write system call.
28 // It returns a non-negative number of bytes written or a negative errno value.
30 func write1(fd
uintptr, p unsafe
.Pointer
, n
int32) int32
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.
42 // So that the C initialization code can call osinit.
43 //go:linkname osinit runtime.osinit