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

Function cmd_link

components/finsh/msh_file.c:204–220  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

202MSH_CMD_EXPORT_ALIAS(cmd_ln, ln, Make symbolic link between files);
203
204static int cmd_link(int argc, char **argv)
205{
206 if (argc < 3)
207 {
208 rt_kprintf("Usage: link target link_name\n");
209 rt_kprintf("Make link between files.\n");
210 }
211 else
212 {
213 for(int i = 0; i + 3 <= argc; i ++)
214 {
215 dfs_file_link(argv[1], argv[2 + i]);
216 }
217 }
218
219 return 0;
220}
221MSH_CMD_EXPORT_ALIAS(cmd_link, link, Make link between files);
222#endif
223

Callers

nothing calls this directly

Calls 2

rt_kprintfFunction · 0.85
dfs_file_linkFunction · 0.85

Tested by

no test coverage detected