File: nosymlink-nunix.go

package info (click to toggle)
golang-github-hlandau-goutils 0.0~git20160722.0.0cdb66a-4
  • links: PTS, VCS
  • area: main
  • in suites: bookworm, forky, sid, trixie
  • size: 160 kB
  • sloc: makefile: 2
file content (14 lines) | stat: -rw-r--r-- 361 bytes parent folder | download | duplicates (4)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
// +build !linux,!openbsd,!freebsd,!netbsd,!dragonfly,!solaris,!darwin

package os

import (
	"errors"
	"os"
)

var errNoSymlinksNotSupported = errors.New("opening files without following symlinks is not supported on this platform")

func openFileNoSymlinks(path string, flags int, mode os.FileMode) (*os.File, error) {
	return nil, errNoSymlinksNotSupported
}