mirror of
https://github.com/autc04/Retro68.git
synced 2024-10-20 05:25:11 +00:00
16 lines
478 B
Go
16 lines
478 B
Go
|
// Copyright 2017 The Go Authors. All rights reserved.
|
||
|
// Use of this source code is governed by a BSD-style
|
||
|
// license that can be found in the LICENSE file.
|
||
|
|
||
|
// +build aix darwin dragonfly freebsd linux nacl netbsd openbsd solaris
|
||
|
|
||
|
package poll
|
||
|
|
||
|
import "syscall"
|
||
|
|
||
|
// CloseFunc is used to hook the close call.
|
||
|
var CloseFunc func(int) error = syscall.Close
|
||
|
|
||
|
// AcceptFunc is used to hook the accept call.
|
||
|
var AcceptFunc func(int) (int, syscall.Sockaddr, error) = syscall.Accept
|