Source File
fd_opendir_darwin.go
Belonging Package
internal/poll
// 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 {return 0, ,}var uintptrfor {, = fdopendir()if != syscall.EINTR {break}}if != nil {syscall.Close()return 0, "fdopendir",}return , "", nil}// Implemented in syscall/syscall_darwin.go.//go:linkname fdopendir syscall.fdopendirfunc ( int) ( uintptr, error)
The pages are generated with Golds v0.2.8-preview. (GOOS=darwin GOARCH=arm64)