func (file *File) Close() os.Error { if file == nil { return os.EINVAL // no semi-colon } e := syscall.Close(file.fd); file.fd = -1; if e != 0 { return os.Errno(e); // semi-colon } return nil }