os: add a stub for File.Truncate

This commit is contained in:
Damian Gryski
2021-11-24 14:41:00 -08:00
committed by Ron Evans
parent b0fce80b50
commit 47db50b273
+5
View File
@@ -174,6 +174,11 @@ func (f *File) Fd() uintptr {
panic("unimplemented: os.file.Fd()")
}
// Truncate is a stub, not yet implemented
func (f *File) Truncate(size int64) error {
return &PathError{"truncate", f.name, ErrNotImplemented}
}
const (
PathSeparator = '/' // OS-specific path separator
PathListSeparator = ':' // OS-specific path list separator