* 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. */
| 680 | * @return 0 on successful, others on failed. |
| 681 | */ |
| 682 | int 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 | } |
| 696 | RTM_EXPORT(rmdir); |
| 697 | |
| 698 | /** |