aboutsummaryrefslogtreecommitdiffhomepage
path: root/src/os/file_windows.go
diff options
context:
space:
mode:
authorDan Kegel <[email protected]>2022-01-22 19:08:58 +0000
committerRon Evans <[email protected]>2022-01-24 18:23:40 +0100
commitee663ccb96e32482165e5f89836928465cdf5192 (patch)
tree2654e5728da79ae67225f036a856dd9e2ccdf724 /src/os/file_windows.go
parentcd867b72b94d77fe1fcbb0d01fa7b1255d689450 (diff)
downloadtinygo-ee663ccb96e32482165e5f89836928465cdf5192.tar.gz
tinygo-ee663ccb96e32482165e5f89836928465cdf5192.zip
Revert "Kludge: work around lack of syscall.seek on 386 and arm, #1906"
This reverts commit 60b483bd3b63653ddff715bf2fa8a293ad998972.
Diffstat (limited to 'src/os/file_windows.go')
-rw-r--r--src/os/file_windows.go14
1 files changed, 0 insertions, 14 deletions
diff --git a/src/os/file_windows.go b/src/os/file_windows.go
index be0c3ecec..3e1c63b91 100644
--- a/src/os/file_windows.go
+++ b/src/os/file_windows.go
@@ -82,20 +82,6 @@ func (f unixFileHandle) Seek(offset int64, whence int) (int64, error) {
return newoffset, handleSyscallError(err)
}
-// Seek sets the offset for the next Read or Write on file to offset, interpreted
-// according to whence: 0 means relative to the origin of the file, 1 means
-// relative to the current offset, and 2 means relative to the end.
-// It returns the new offset and an error, if any.
-// The behavior of Seek on a file opened with O_APPEND is not specified.
-//
-// If f is a directory, the behavior of Seek varies by operating
-// system; you can seek to the beginning of the directory on Unix-like
-// operating systems, but not on Windows.
-// TODO: move this back to file.go once syscall.seek is implemented on 386 and arm.
-func (f *File) Seek(offset int64, whence int) (ret int64, err error) {
- return f.handle.Seek(offset, whence)
-}
-
// isWindowsNulName reports whether name is os.DevNull ('NUL') on Windows.
// True is returned if name is 'NUL' whatever the case.
func isWindowsNulName(name string) bool {