blob: 287fc81fa9c237ee5dd3b6b6b94c4e2c2f2edf50 [file] [log] [blame] [edit]
// Copyright 2025 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.
//go:build unix || wasip1
package os
import (
"internal/syscall/unix"
)
func isErrNoFollow(err error) bool {
return err == unix.NoFollowErrno
}
func newDirFile(fd int, name string) (*File, error) {
// We use kindNoPoll because we know that this is a directory.
return newFile(fd, name, kindNoPoll, false), nil
}