* this function is a POSIX compliant version, which will return the * information about a mounted file system. * * @param path the path which mounted file system. * @param buf the buffer to save the returned information. * * @return 0 on successful, others on failed. */
| 590 | * @return 0 on successful, others on failed. |
| 591 | */ |
| 592 | int statfs(const char *path, struct statfs *buf) |
| 593 | { |
| 594 | int result; |
| 595 | |
| 596 | result = dfs_statfs(path, buf); |
| 597 | if (result < 0) |
| 598 | { |
| 599 | rt_set_errno(result); |
| 600 | |
| 601 | return -1; |
| 602 | } |
| 603 | |
| 604 | return result; |
| 605 | } |
| 606 | RTM_EXPORT(statfs); |
| 607 | |
| 608 | /** |
no test coverage detected