Source file src/runtime/export_linux_test.go
1 // Copyright 2015 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 // Export guts for testing. 6 7 package runtime 8 9 import "unsafe" 10 11 const SiginfoMaxSize = _si_max_size 12 const SigeventMaxSize = _sigev_max_size 13 14 var NewOSProc0 = newosproc0 15 var Mincore = mincore 16 var Add = add 17 18 type EpollEvent epollevent 19 type Siginfo siginfo 20 type Sigevent sigevent 21 22 func Epollctl(epfd, op, fd int32, ev unsafe.Pointer) int32 { 23 return epollctl(epfd, op, fd, (*epollevent)(ev)) 24 } 25