Changes in uspace/lib/c/generic/vfs/vfs.c [73fbcbb:35a35651] in mainline
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
uspace/lib/c/generic/vfs/vfs.c
r73fbcbb r35a35651 43 43 #include <stdio.h> 44 44 #include <sys/stat.h> 45 #include <sys/statfs.h>46 45 #include <sys/types.h> 47 46 #include <ipc/services.h> … … 893 892 } 894 893 895 int statfs(const char *path, struct statfs *st)896 {897 sysarg_t rc, rc_orig;898 aid_t req;899 size_t pa_size;900 901 char *pa = absolutize(path, &pa_size);902 if (!pa)903 return ENOMEM;904 905 async_exch_t *exch = vfs_exchange_begin();906 907 req = async_send_0(exch, VFS_IN_STATFS, NULL);908 rc = async_data_write_start(exch, pa, pa_size);909 if (rc != EOK)910 goto exit;911 912 rc = async_data_read_start(exch, (void *) st, sizeof(*st));913 914 exit:915 vfs_exchange_end(exch);916 free(pa);917 async_wait_for(req, &rc_orig);918 return (int) (rc_orig != EOK ? rc_orig : rc);919 }920 921 894 /** @} 922 895 */
Note:
See TracChangeset
for help on using the changeset viewer.