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

Function statfs

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

* 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. */

Source from the content-addressed store, hash-verified

590 * @return 0 on successful, others on failed.
591 */
592int 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}
606RTM_EXPORT(statfs);
607
608/**

Callers 1

fstatfsFunction · 0.70

Calls 2

rt_set_errnoFunction · 0.85
dfs_statfsFunction · 0.70

Tested by

no test coverage detected