* gcc-interface/decl.c (warn_on_field_placement): Issue the warning
[official-gcc.git] / libgo / go / net / hook_unix.go
blobb2522a2ed2329d40b18e157b2a9b96f4e5468e7f
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.
5 // +build aix darwin dragonfly freebsd linux nacl netbsd openbsd solaris
7 package net
9 import "syscall"
11 var (
12 testHookDialChannel = func() {} // for golang.org/issue/5349
13 testHookCanceledDial = func() {} // for golang.org/issue/16523
15 // Placeholders for socket system calls.
16 socketFunc func(int, int, int) (int, error) = syscall.Socket
17 closeFunc func(int) error = syscall.Close
18 connectFunc func(int, syscall.Sockaddr) error = syscall.Connect
19 listenFunc func(int, int) error = syscall.Listen
20 acceptFunc func(int) (int, syscall.Sockaddr, error) = syscall.Accept
21 getsockoptIntFunc func(int, int, int) (int, error) = syscall.GetsockoptInt