github.com/shogo82148/std@v1.22.1-0.20240327122250-4e474527810c/internal/poll/fd_posix.go (about) 1 // Copyright 2009 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. 4 5 //go:build unix || (js && wasm) || wasip1 || windows 6 7 package poll 8 9 // Shutdown wraps syscall.Shutdown. 10 func (fd *FD) Shutdown(how int) error 11 12 // Fchown wraps syscall.Fchown. 13 func (fd *FD) Fchown(uid, gid int) error 14 15 // Ftruncate wraps syscall.Ftruncate. 16 func (fd *FD) Ftruncate(size int64) error 17 18 // RawControl invokes the user-defined function f for a non-IO 19 // operation. 20 func (fd *FD) RawControl(f func(uintptr)) error