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

Function rmdir

components/dfs/dfs_v1/src/dfs_posix.c:682–695  ·  view source on GitHub ↗

* this function is a POSIX compliant version, which will remove a directory. * * @param pathname the path name to be removed. * * @return 0 on successful, others on failed. */

Source from the content-addressed store, hash-verified

680 * @return 0 on successful, others on failed.
681 */
682int rmdir(const char *pathname)
683{
684 int result;
685
686 result = dfs_file_unlink(pathname);
687 if (result < 0)
688 {
689 rt_set_errno(result);
690
691 return -1;
692 }
693
694 return 0;
695}
696RTM_EXPORT(rmdir);
697
698/**

Callers 7

directory_delete_for_mshFunction · 0.50
sys_rmdirFunction · 0.50
test_posix_rmdirFunction · 0.50
test_posix_chdir_getcwdFunction · 0.50
utest_tc_initFunction · 0.50
utest_tc_cleanupFunction · 0.50

Calls 2

rt_set_errnoFunction · 0.85
dfs_file_unlinkFunction · 0.70

Tested by 3

test_posix_rmdirFunction · 0.40
test_posix_chdir_getcwdFunction · 0.40