- Sort Score
- Result 10 results
- Languages All
Results 11 - 19 of 19 for DUP (0.06 sec)
-
src/internal/poll/fd_wasip1.go
package poll import ( "internal/byteorder" "sync/atomic" "syscall" "unsafe" ) type SysFile struct { // RefCountPtr is a pointer to the reference count of Sysfd. // // WASI preview 1 lacks a dup(2) system call. When the os and net packages // need to share a file/socket, instead of duplicating the underlying file // descriptor, we instead provide a way to copy FD instances and manage the
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Tue May 14 20:14:02 UTC 2024 - 6.7K bytes - Viewed (0) -
src/internal/trace/mud_test.go
t.Errorf("inverse(%g) = %g, not ∈ [%g, %g)", trackMass, inv, l, u) } } } } } // aeq returns true if x and y are equal up to 8 digits (1 part in 100 // million). // TODO(amedee) dup of gc_test.go func aeq(x, y float64) bool { if x < 0 && y < 0 { x, y = -x, -y } const digits = 8 factor := 1 - math.Pow(10, -digits+1) return x*factor <= y && y*factor <= x
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Fri May 17 18:48:18 UTC 2024 - 2.5K bytes - Viewed (0) -
src/runtime/debug/stack.go
// to a full pipe buffer don't get lost. fd2, _, err := poll.DupCloseOnExec(int(f.Fd())) if err != nil { return err } runtime.KeepAlive(f) // prevent finalization before dup fd = uintptr(fd2) } if prev := runtime_setCrashFD(fd); prev != ^uintptr(0) { // We use NewFile+Close because it is portable // unlike syscall.Close, whose parameter type varies.
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Thu May 16 15:19:04 UTC 2024 - 3.2K bytes - Viewed (0) -
src/net/fd_windows.go
lsa, _ := lrsa.Sockaddr() rsa, _ := rrsa.Sockaddr() netfd.setAddr(netfd.addrFunc()(lsa), netfd.addrFunc()(rsa)) return netfd, nil } // Unimplemented functions. func (fd *netFD) dup() (*os.File, error) { // TODO: Implement this, perhaps using internal/poll.DupCloseOnExec. return nil, syscall.EWINDOWS
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Thu Mar 07 16:46:10 UTC 2024 - 6.2K bytes - Viewed (0) -
src/net/tcpsock_posix.go
} func (ln *TCPListener) close() error { return ln.fd.Close() } func (ln *TCPListener) file() (*os.File, error) { f, err := ln.fd.dup() if err != nil { return nil, err } return f, nil } func (sl *sysListener) listenTCP(ctx context.Context, laddr *TCPAddr) (*TCPListener, error) { return sl.listenTCPProto(ctx, laddr, 0) }
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Thu May 16 16:54:32 UTC 2024 - 6.3K bytes - Viewed (0) -
src/net/unixsock_posix.go
ln.unlinkOnce.Do(func() { if ln.path[0] != '@' && ln.unlink { syscall.Unlink(ln.path) } }) return ln.fd.Close() } func (ln *UnixListener) file() (*os.File, error) { f, err := ln.fd.dup() if err != nil { return nil, err } return f, nil } // SetUnlinkOnClose sets whether the underlying socket file should be removed // from the file system when the listener is closed. //
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Thu May 16 16:54:32 UTC 2024 - 6.6K bytes - Viewed (0) -
pkg/controlplane/controller/crdregistration/crdregistration_controller.go
apiServiceRegistration AutoAPIServiceRegistration syncHandler func(groupVersion schema.GroupVersion) error syncedInitialSet chan struct{} // queue is where incoming work is placed to de-dup and to allow "easy" rate limited requeues on errors // this is actually keyed by a groupVersion queue workqueue.TypedRateLimitingInterface[schema.GroupVersion] }
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Sat May 04 18:33:12 UTC 2024 - 8.3K bytes - Viewed (0) -
src/syscall/exec_unix.go
// so use ForkLock. // - [Socket]. Use SOCK_CLOEXEC if available. Otherwise, does not // block, so use ForkLock. // - [Open]. Use [O_CLOEXEC] if available. Otherwise, may block, // so live with the race. // - [Dup]. Use [F_DUPFD_CLOEXEC] or dup3 if available. Otherwise, // does not block, so use ForkLock. var ForkLock sync.RWMutex // StringSlicePtr converts a slice of strings to a slice of pointers
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Mon Feb 26 21:03:59 UTC 2024 - 8.7K bytes - Viewed (0) -
src/syscall/syscall_plan9.go
func Wstat(path string, edir []byte) (err error) { if fixwd(path) { defer runtime.UnlockOSThread() } return wstat(path, edir) } //sys chdir(path string) (err error) //sys Dup(oldfd int, newfd int) (fd int, err error) //sys Pread(fd int, p []byte, offset int64) (n int, err error) //sys Pwrite(fd int, p []byte, offset int64) (n int, err error) //sys Close(fd int) (err error)
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Mon Feb 26 21:03:59 UTC 2024 - 9.4K bytes - Viewed (0)