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