github.com/rumpl/bof@v23.0.0-rc.2+incompatible/pkg/system/filesys_deprecated.go (about) 1 package system 2 3 import ( 4 "os" 5 6 "github.com/moby/sys/sequential" 7 ) 8 9 // CreateSequential is deprecated. 10 // 11 // Deprecated: use os.Create or github.com/moby/sys/sequential.Create() 12 func CreateSequential(name string) (*os.File, error) { 13 return sequential.Create(name) 14 } 15 16 // OpenSequential is deprecated. 17 // 18 // Deprecated: use os.Open or github.com/moby/sys/sequential.Open 19 func OpenSequential(name string) (*os.File, error) { 20 return sequential.Open(name) 21 } 22 23 // OpenFileSequential is deprecated. 24 // 25 // Deprecated: use github.com/moby/sys/sequential.OpenFile() 26 func OpenFileSequential(name string, flag int, perm os.FileMode) (*os.File, error) { 27 return sequential.OpenFile(name, flag, perm) 28 } 29 30 // TempFileSequential is deprecated. 31 // 32 // Deprecated: use os.CreateTemp or github.com/moby/sys/sequential.CreateTemp 33 func TempFileSequential(dir, prefix string) (f *os.File, err error) { 34 return sequential.CreateTemp(dir, prefix) 35 }