mirror of
https://github.com/containerd/containerd.git
synced 2026-08-10 17:14:49 +00:00
Bumps the moby-sys group with 1 update in the / directory: [github.com/moby/sys/sequential](https://github.com/moby/sys). Updates `github.com/moby/sys/sequential` from 0.6.0 to 0.7.0 - [Release notes](https://github.com/moby/sys/releases) - [Commits](https://github.com/moby/sys/compare/signal/v0.6.0...signal/v0.7.0) --- updated-dependencies: - dependency-name: github.com/moby/sys/sequential dependency-version: 0.7.0 dependency-type: direct:production update-type: version-update:semver-minor dependency-group: moby-sys ... Signed-off-by: dependabot[bot] <support@github.com>
26 lines
673 B
Go
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)
|
|
}
|