Lines Matching refs:sh_result
75 long sh_result; in sh_file_open() local
81 sh_result = semihosting_file_open(file_spec->path, file_spec->mode); in sh_file_open()
83 if (sh_result > 0) { in sh_file_open()
84 entity->info = (uintptr_t)sh_result; in sh_file_open()
94 long file_handle, sh_result; in sh_file_seek() local
100 sh_result = semihosting_file_seek(file_handle, (ssize_t)offset); in sh_file_seek()
102 return (sh_result == 0) ? 0 : -ENOENT; in sh_file_seek()
115 long sh_result = semihosting_file_length(sh_handle); in sh_file_len() local
117 if (sh_result >= 0) { in sh_file_len()
119 *length = (size_t)sh_result; in sh_file_len()
131 long sh_result; in sh_file_read() local
140 sh_result = semihosting_file_read(file_handle, &bytes, buffer); in sh_file_read()
142 if (sh_result >= 0) { in sh_file_read()
155 long sh_result; in sh_file_write() local
164 sh_result = semihosting_file_write(file_handle, &bytes, buffer); in sh_file_write()
168 return (sh_result == 0) ? 0 : -ENOENT; in sh_file_write()
175 long sh_result; in sh_file_close() local
182 sh_result = semihosting_file_close(file_handle); in sh_file_close()
184 return (sh_result >= 0) ? 0 : -ENOENT; in sh_file_close()