os: add SEEK_SET, SEEK_CUR, and SEEK_END

These are deprecated but still used by some code.
This commit is contained in:
Ayke van Laethem
2021-09-15 15:53:06 +02:00
committed by Ron Evans
parent 88b9c27dbf
commit c528a168ee
+9
View File
@@ -10,6 +10,15 @@ import (
"syscall"
)
// Seek whence values.
//
// Deprecated: Use io.SeekStart, io.SeekCurrent, and io.SeekEnd.
const (
SEEK_SET int = io.SeekStart
SEEK_CUR int = io.SeekCurrent
SEEK_END int = io.SeekEnd
)
// Mkdir creates a directory. If the operation fails, it will return an error of
// type *PathError.
func Mkdir(path string, perm FileMode) error {