Changeset 66366470 in mainline for uspace/lib/c
- Timestamp:
- 2013-07-04T18:55:31Z (12 years ago)
- Branches:
- lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
- Children:
- 9dc6083
- Parents:
- d8b47eca
- Location:
- uspace/lib/c
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
uspace/lib/c/generic/vfs/vfs.c
rd8b47eca r66366470 892 892 } 893 893 894 int statfs(const char *path, struct statfs *buf) 895 { 896 sysarg_t rc; 897 //aid_t req; 898 899 if ( NULL == buf ) 900 return 1; 901 902 sysarg_t value; 903 async_exch_t *exch = vfs_exchange_begin(); 904 rc = async_req_0_1(exch, VFS_IN_STATFS, &value); 905 if (rc != EOK) 906 goto exit; 907 908 buf->f_bsize = value; 909 exit: 910 vfs_exchange_end(exch); 911 return rc; 912 } 913 894 914 /** @} 895 915 */ -
uspace/lib/c/include/ipc/vfs.h
rd8b47eca r66366470 82 82 VFS_IN_WAIT_HANDLE, 83 83 VFS_IN_MTAB_GET, 84 VFS_IN_STATFS 84 85 } vfs_in_request_t; 85 86 -
uspace/lib/c/include/vfs/vfs.h
rd8b47eca r66366470 44 44 #include "vfs_mtab.h" 45 45 46 46 47 enum vfs_change_state_type { 47 48 VFS_PASS_HANDLE 48 49 }; 50 51 struct statfs { 52 short f_type; /* type of file system */ 53 long f_bsize; /* fundamental file system block size */ 54 long f_blocks; /* total data blocks in file system */ 55 long f_bfree; /* free blocks in fs */ 56 }; 57 49 58 50 59 extern char *absolutize(const char *, size_t *); … … 61 70 extern async_exch_t *vfs_exchange_begin(void); 62 71 extern void vfs_exchange_end(async_exch_t *); 63 72 extern int statfs(const char *path, struct statfs *buf); 64 73 #endif 65 74
Note:
See TracChangeset
for help on using the changeset viewer.