os_linux.go 896 Bytes
Newer Older
1 2 3 4 5 6 7 8
// Copyright 2014 The Go Authors.  All rights reserved.
// Use of this source code is governed by a BSD-style
// license that can be found in the LICENSE file.

package runtime

import "unsafe"

9 10
type mOS struct{}

11
//go:noescape
12
func futex(addr unsafe.Pointer, op int32, val uint32, ts, addr2 unsafe.Pointer, val3 uint32) int32
13 14

//go:noescape
15
func clone(flags int32, stk, mm, gg, fn unsafe.Pointer) int32
16 17 18 19 20 21 22 23 24 25 26 27 28 29

//go:noescape
func rt_sigaction(sig uintptr, new, old *sigactiont, size uintptr) int32

//go:noescape
func sigaltstack(new, old *sigaltstackt)

//go:noescape
func setitimer(mode int32, new, old *itimerval)

//go:noescape
func rtsigprocmask(sig uint32, new, old *sigset, size int32)

//go:noescape
30
func getrlimit(kind int32, limit unsafe.Pointer) int32
31 32
func raise(sig int32)
func raiseproc(sig int32)
33 34

//go:noescape
35
func sched_getaffinity(pid, len uintptr, buf *uintptr) int32
36
func osyield()