2016-07-22 18:15:38 +00:00
|
|
|
// Copyright 2015 The Go Authors. All rights reserved.
|
2015-01-15 00:27:56 +00:00
|
|
|
// Use of this source code is governed by a BSD-style
|
|
|
|
// license that can be found in the LICENSE file.
|
|
|
|
|
2015-10-31 00:59:47 +00:00
|
|
|
// Export guts for testing.
|
|
|
|
|
|
|
|
package runtime
|
|
|
|
|
2018-09-24 21:46:21 +00:00
|
|
|
import "unsafe"
|
|
|
|
|
|
|
|
// var NewOSProc0 = newosproc0
|
|
|
|
// var Mincore = mincore
|
2020-01-02 15:05:27 -08:00
|
|
|
var Add = add
|
|
|
|
|
|
|
|
type EpollEvent epollevent
|
2018-09-24 21:46:21 +00:00
|
|
|
|
|
|
|
func Epollctl(epfd, op, fd int32, ev unsafe.Pointer) int32 {
|
|
|
|
return epollctl(epfd, op, fd, (*epollevent)(ev))
|
|
|
|
}
|