1 // Copyright 2012 Google, Inc. All rights reserved.
3 // Use of this source code is governed by a BSD-style license
4 // that can be found in the LICENSE file in the root of the source
14 "golang.org/x/sys/unix"
22 func socketcall(call int, a0, a1, a2, a3, a4, a5 uintptr) (int, unix.Errno)
24 // setsockopt provides access to the setsockopt syscall.
25 func setsockopt(fd, level, name int, v unsafe.Pointer, l uintptr) error {
26 _, errno := socketcall(
42 func getsockopt(fd, level, name int, v unsafe.Pointer, l uintptr) error {
43 _, errno := socketcall(