os_linux.go 731 B

123456789101112131415161718
  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. package runtime
  5. import "unsafe"
  6. func futex(addr unsafe.Pointer, op int32, val uint32, ts, addr2 unsafe.Pointer, val3 uint32) int32
  7. func clone(flags int32, stk, mm, gg, fn unsafe.Pointer) int32
  8. func rt_sigaction(sig uintptr, new, old unsafe.Pointer, size uintptr) int32
  9. func sigaltstack(new, old unsafe.Pointer)
  10. func setitimer(mode int32, new, old unsafe.Pointer)
  11. func rtsigprocmask(sig int32, new, old unsafe.Pointer, size int32)
  12. func getrlimit(kind int32, limit unsafe.Pointer) int32
  13. func raise(sig int32)
  14. func sched_getaffinity(pid, len uintptr, buf *uintptr) int32