Changes in uspace/lib/c/generic/vfs/vfs.c [35a35651:73fbcbb] in mainline
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
uspace/lib/c/generic/vfs/vfs.c
r35a35651 r73fbcbb 43 43 #include <stdio.h> 44 44 #include <sys/stat.h> 45 #include <sys/statfs.h> 45 46 #include <sys/types.h> 46 47 #include <ipc/services.h> … … 892 893 } 893 894 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 894 921 /** @} 895 922 */
Note:
See TracChangeset
for help on using the changeset viewer.