Lines Matching defs:file_handle
82 long semihosting_file_seek(long file_handle, ssize_t offset)
87 seek_block.handle = file_handle;
99 long semihosting_file_read(long file_handle, size_t *length, uintptr_t buffer)
107 read_block.handle = file_handle;
123 long semihosting_file_write(long file_handle,
132 write_block.handle = file_handle;
142 long semihosting_file_close(long file_handle)
145 (void *) &file_handle);
148 long semihosting_file_length(long file_handle)
151 (void *) &file_handle);
182 long file_handle;
187 file_handle = semihosting_file_open(file_name, FOPEN_MODE_RB);
188 if (file_handle == -1)
189 return file_handle;
192 length = semihosting_file_length(file_handle);
194 return semihosting_file_close(file_handle) ? -1 : length;
203 long file_handle;
211 file_handle = semihosting_file_open(file_name, FOPEN_MODE_RB);
212 if (file_handle == -1)
216 length = semihosting_file_length(file_handle);
229 ret = semihosting_file_read(file_handle, &length, buf);
236 semihosting_file_close(file_handle);