Source file src/os/eloop_netbsd.go

     1  // Copyright 2024 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 netbsd
     6  
     7  package os
     8  
     9  import "syscall"
    10  
    11  // isNoFollowErr reports whether err may result from O_NOFOLLOW blocking an open operation.
    12  func isNoFollowErr(err error) bool {
    13  	// NetBSD returns EFTYPE, but check the other possibilities as well.
    14  	switch err {
    15  	case syscall.ELOOP, syscall.EMLINK, syscall.EFTYPE:
    16  		return true
    17  	}
    18  	return false
    19  }
    20  

View as plain text