sys

package
v0.0.0-...-8666326 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jul 30, 2014 License: BSD-2-Clause Imports: 3 Imported by: 0

Documentation

Overview

Package sys wraps the stdlib syscall package.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Fcntl

func Fcntl(fd int, cmd int, arg int) (val int, err error)

func GetNonblock

func GetNonblock(fd int) (bool, error)

func Select

func Select(nfd int, r *FdSet, w *FdSet, e *FdSet, timeout *syscall.Timeval) (n int, err error)

func SetNonblock

func SetNonblock(fd int, nonblock bool) error

Types

type FdSet

type FdSet syscall.FdSet

func NewFdSet

func NewFdSet(fds ...int) *FdSet

func (*FdSet) Clear

func (fs *FdSet) Clear(fds ...int)

func (*FdSet) IsSet

func (fs *FdSet) IsSet(fd int) bool

func (*FdSet) Set

func (fs *FdSet) Set(fds ...int)

func (*FdSet) Zero

func (fs *FdSet) Zero()

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL