// Copyright 2018 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.package pollimport (_// for go:linkname)// OpenDir returns a pointer to a DIR structure suitable for// ReadDir. In case of an error, the name of the failed// syscall is returned along with a syscall.Errno.func ( *FD) () (uintptr, string, error) {// fdopendir(3) takes control of the file descriptor, // so use a dup. , , := .Dup()if != nil {return0, , }varuintptrfor { , = fdopendir()if != syscall.EINTR {break } }if != nil {syscall.Close()return0, "fdopendir", }return , "", nil}// Implemented in syscall/syscall_darwin.go.//go:linkname fdopendir syscall.fdopendirfunc ( int) ( uintptr, error)
The pages are generated with Goldsv0.3.6. (GOOS=darwin GOARCH=amd64)
Golds is a Go 101 project developed by Tapir Liu.
PR and bug reports are welcome and can be submitted to the issue list.
Please follow @Go100and1 (reachable from the left QR code) to get the latest news of Golds.