github.com/aloncn/graphics-go@v0.0.1/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  type mOS struct{}
    10  
    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  //go:noescape
    18  func rt_sigaction(sig uintptr, new, old *sigactiont, size uintptr) int32
    19  
    20  //go:noescape
    21  func sigaltstack(new, old *sigaltstackt)
    22  
    23  //go:noescape
    24  func setitimer(mode int32, new, old *itimerval)
    25  
    26  //go:noescape
    27  func rtsigprocmask(sig uint32, new, old *sigset, size int32)
    28  
    29  //go:noescape
    30  func getrlimit(kind int32, limit unsafe.Pointer) int32
    31  func raise(sig int32)
    32  func raiseproc(sig int32)
    33  
    34  //go:noescape
    35  func sched_getaffinity(pid, len uintptr, buf *uintptr) int32
    36  func osyield()