Changeset 66366470 in mainline for uspace/lib/c/generic/vfs/vfs.c


Ignore:
Timestamp:
2013-07-04T18:55:31Z (12 years ago)
Author:
Manuele Conti <conti.ma@…>
Branches:
lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
Children:
9dc6083
Parents:
d8b47eca
Message:

Start to implement df command line tool.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • uspace/lib/c/generic/vfs/vfs.c

    rd8b47eca r66366470  
    892892}
    893893
     894int 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;
     909exit:
     910        vfs_exchange_end(exch);
     911        return rc;
     912}
     913
    894914/** @}
    895915 */
Note: See TracChangeset for help on using the changeset viewer.