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

Function win32_result_to_dfs

bsp/simulator/drivers/dfs_win32.c:71–87  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

69#endif
70};
71static int win32_result_to_dfs(DWORD res)
72{
73 int i;
74 int err = 0;
75 for (i = 0; i < sizeof(errcode_table) / sizeof(struct _errcode_map); i++)
76 {
77 if (errcode_table[i].win32err == (res & 0xFFFF))
78 {
79 err = -errcode_table[i].dfserr;
80 return err;
81 }
82 }
83
84 /* unknown error */
85 rt_kprintf("dfs win32 error not supported yet: %d\n", res);
86 return -1;
87}
88
89static int dfs_win32_mount(
90 struct dfs_filesystem *fs,

Callers 9

dfs_win32_openFunction · 0.85
dfs_win32_closeFunction · 0.85
dfs_win32_readFunction · 0.85
dfs_win32_writeFunction · 0.85
dfs_win32_seekFunction · 0.85
dfs_win32_getdentsFunction · 0.85
dfs_win32_unlinkFunction · 0.85
dfs_win32_renameFunction · 0.85
dfs_win32_statFunction · 0.85

Calls 1

rt_kprintfFunction · 0.85

Tested by

no test coverage detected