Ignore:
File:
1 edited

Legend:

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

    r73fbcbb r35a35651  
    4343#include <stdio.h>
    4444#include <sys/stat.h>
    45 #include <sys/statfs.h>
    4645#include <sys/types.h>
    4746#include <ipc/services.h>
     
    893892}
    894893
    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 
    921894/** @}
    922895 */
Note: See TracChangeset for help on using the changeset viewer.