// Copyright 2014 Mikio Hara. All rights reserved.
// Use of this source code is governed by a BSD-style
// license that can be found in the LICENSE file.

// +build darwin dragonfly freebsd linux,!s390x,!386 netbsd openbsd

package tcp

import (
	
	
)

func ioctl( uintptr,  int,  []byte) error {
	if , ,  := syscall.Syscall(syscall.SYS_IOCTL, , uintptr(), uintptr(unsafe.Pointer(&[0])));  != 0 {
		return error()
	}
	return nil
}

func setsockopt( uintptr, ,  int,  []byte) error {
	if , ,  := syscall.Syscall6(syscall.SYS_SETSOCKOPT, , uintptr(), uintptr(), uintptr(unsafe.Pointer(&[0])), uintptr(len()), 0);  != 0 {
		return error()
	}
	return nil
}

func getsockopt( uintptr, ,  int,  []byte) (int, error) {
	 := uint32(len())
	if , ,  := syscall.Syscall6(syscall.SYS_GETSOCKOPT, , uintptr(), uintptr(), uintptr(unsafe.Pointer(&[0])), uintptr(unsafe.Pointer(&)), 0);  != 0 {
		return int(), error()
	}
	return int(), nil
}