diff options
Diffstat (limited to 'llgo/third_party/gofrontend/libgo/go/os/file_posix.go')
| -rw-r--r-- | llgo/third_party/gofrontend/libgo/go/os/file_posix.go | 10 |
1 files changed, 1 insertions, 9 deletions
diff --git a/llgo/third_party/gofrontend/libgo/go/os/file_posix.go b/llgo/third_party/gofrontend/libgo/go/os/file_posix.go index fbb3b5e4d81..6d8076fdf5c 100644 --- a/llgo/third_party/gofrontend/libgo/go/os/file_posix.go +++ b/llgo/third_party/gofrontend/libgo/go/os/file_posix.go @@ -28,14 +28,6 @@ func Readlink(name string) (string, error) { } } -func rename(oldname, newname string) error { - e := syscall.Rename(oldname, newname) - if e != nil { - return &LinkError{"rename", oldname, newname, e} - } - return nil -} - // syscallMode returns the syscall-specific mode bits from Go's portable mode bits. func syscallMode(i FileMode) (o uint32) { o |= uint32(i.Perm()) @@ -122,7 +114,7 @@ func (f *File) Truncate(size int64) error { // Sync commits the current contents of the file to stable storage. // Typically, this means flushing the file system's in-memory copy // of recently written data to disk. -func (f *File) Sync() (err error) { +func (f *File) Sync() error { if f == nil { return ErrInvalid } |

