MCPcopy Create free account
hub / github.com/RT-Thread/rt-thread / dfs_win32_write

Function dfs_win32_write

bsp/simulator/drivers/dfs_win32.c:283–297  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

281}
282
283static int dfs_win32_write(struct dfs_file *file, const void *buf, size_t len)
284{
285 int fd;
286 int char_write;
287
288 fd = (int)(file->data);
289
290 char_write = _write(fd, buf, len);
291 if (char_write < 0)
292 return win32_result_to_dfs(GetLastError());
293
294 /* update position */
295 file->pos = _lseek(fd, 0, SEEK_CUR);
296 return char_write;
297}
298
299static int dfs_win32_flush(struct dfs_file *file)
300{

Callers

nothing calls this directly

Calls 3

win32_result_to_dfsFunction · 0.85
_writeFunction · 0.50
_lseekFunction · 0.50

Tested by

no test coverage detected