Files
substrate/vendor/github.com/moby/sys/sequential/sequential_unix.go
T
Haven Xia d32a74e21b vuln: bump github.com/moby/go-archive to v0.3.0 to fix GO-2026-6253 (#1222)
vuln check error in my merge
https://github.com/agent-substrate/substrate/actions/runs/32926359035


- [ ] Tests pass
- [ ] Appropriate changes to documentation are included in the PR
2026-08-25 21:12:44 -07:00

26 lines
673 B
Go

//go:build !windows
package sequential
import "os"
// Create is an alias for [os.Create] on non-Windows platforms.
func Create(name string) (*os.File, error) {
return os.Create(name)
}
// Open is an alias for [os.Open] on non-Windows platforms.
func Open(name string) (*os.File, error) {
return os.Open(name)
}
// OpenFile is an alias for [os.OpenFile] on non-Windows platforms.
func OpenFile(name string, flag int, perm os.FileMode) (*os.File, error) {
return os.OpenFile(name, flag, perm)
}
// CreateTemp is an alias for [os.CreateTemp] on non-Windows platforms.
func CreateTemp(dir, prefix string) (f *os.File, err error) {
return os.CreateTemp(dir, prefix)
}