+build !plan9,!windows

package osfs

import (
	

	
)

func ( *file) () error {
	.m.Lock()
	defer .m.Unlock()

	return unix.Flock(int(.File.Fd()), unix.LOCK_EX)
}

func ( *file) () error {
	.m.Lock()
	defer .m.Unlock()

	return unix.Flock(int(.File.Fd()), unix.LOCK_UN)
}

func (,  string) error {
	return os.Rename(, )