github.com/rsc/go@v0.0.0-20150416155037-e040fd465409/src/runtime/os_linux.go (about)

     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.
     4  
     5  package runtime
     6  
     7  import "unsafe"
     8  
     9  //go:noescape
    10  func futex(addr unsafe.Pointer, op int32, val uint32, ts, addr2 unsafe.Pointer, val3 uint32) int32
    11  
    12  //go:noescape
    13  func clone(flags int32, stk, mm, gg, fn unsafe.Pointer) int32
    14  
    15  //go:noescape
    16  func clone0(flags int32, stk, fn, fnarg unsafe.Pointer) int32
    17  
    18  //go:noescape
    19  func rt_sigaction(sig uintptr, new, old *sigactiont, size uintptr) int32
    20  
    21  //go:noescape
    22  func sigaltstack(new, old *sigaltstackt)
    23  
    24  //go:noescape
    25  func setitimer(mode int32, new, old *itimerval)
    26  
    27  //go:noescape
    28  func rtsigprocmask(sig uint32, new, old *sigset, size int32)
    29  
    30  //go:noescape
    31  func getrlimit(kind int32, limit unsafe.Pointer) int32
    32  func raise(sig uint32)
    33  func raiseproc(sig uint32)
    34  
    35  //go:noescape
    36  func sched_getaffinity(pid, len uintptr, buf *uintptr) int32
    37  func osyield()