// Copyright 2009 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.

//go:build unix || windows

package poll

import 

// SetsockoptInt wraps the setsockopt network call with an int argument.
func ( *FD) (, ,  int) error {
	if  := .incref();  != nil {
		return 
	}
	defer .decref()
	return syscall.SetsockoptInt(.Sysfd, , , )
}

// SetsockoptInet4Addr wraps the setsockopt network call with an IPv4 address.
func ( *FD) (,  int,  [4]byte) error {
	if  := .incref();  != nil {
		return 
	}
	defer .decref()
	return syscall.SetsockoptInet4Addr(.Sysfd, , , )
}

// SetsockoptLinger wraps the setsockopt network call with a Linger argument.
func ( *FD) (,  int,  *syscall.Linger) error {
	if  := .incref();  != nil {
		return 
	}
	defer .decref()
	return syscall.SetsockoptLinger(.Sysfd, , , )
}

// GetsockoptInt wraps the getsockopt network call with an int argument.
func ( *FD) (,  int) (int, error) {
	if  := .incref();  != nil {
		return -1, 
	}
	defer .decref()
	return syscall.GetsockoptInt(.Sysfd, , )
}