os: add SEEK_SET, SEEK_CUR, and SEEK_END

These are deprecated but still used by some code.
Этот коммит содержится в:
Ayke van Laethem 2021-09-15 15:53:06 +02:00 коммит произвёл Ron Evans
родитель 88b9c27dbf
коммит c528a168ee

Просмотреть файл

@ -10,6 +10,15 @@ import (
"syscall" "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 // Mkdir creates a directory. If the operation fails, it will return an error of
// type *PathError. // type *PathError.
func Mkdir(path string, perm FileMode) error { func Mkdir(path string, perm FileMode) error {