Changeset 39330200 in mainline for uspace/lib/fs/libfs.c


Ignore:
Timestamp:
2018-01-15T21:40:49Z (6 years ago)
Author:
Jiří Zárevúcky <zarevucky.jiri@…>
Branches:
lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
Children:
ba29018
Parents:
d8023313
git-author:
Jiří Zárevúcky <zarevucky.jiri@…> (2018-01-15 21:20:07)
git-committer:
Jiří Zárevúcky <zarevucky.jiri@…> (2018-01-15 21:40:49)
Message:

Rename struct stat and struct statfs to vfs_stat_t and vfs_statfs_t,
respectively. They are nonstandard vestiges of times when native file API
was modeled after POSIX API.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • uspace/lib/fs/libfs.c

    rd8023313 r39330200  
    733733        size_t size;
    734734        if ((!async_data_read_receive(&callid, &size)) ||
    735             (size != sizeof(struct stat))) {
     735            (size != sizeof(vfs_stat_t))) {
    736736                ops->node_put(fn);
    737737                async_answer_0(callid, EINVAL);
     
    740740        }
    741741
    742         struct stat stat;
    743         memset(&stat, 0, sizeof(struct stat));
     742        vfs_stat_t stat;
     743        memset(&stat, 0, sizeof(vfs_stat_t));
    744744
    745745        stat.fs_handle = fs_handle;
     
    755755
    756756
    757         async_data_read_finalize(callid, &stat, sizeof(struct stat));
     757        async_data_read_finalize(callid, &stat, sizeof(vfs_stat_t));
    758758        async_answer_0(rid, EOK);
    759759}
     
    772772        size_t size;
    773773        if ((!async_data_read_receive(&callid, &size)) ||
    774             (size != sizeof(struct statfs))) {
     774            (size != sizeof(vfs_statfs_t))) {
    775775                goto error;
    776776        }
    777777
    778         struct statfs st;
    779         memset(&st, 0, sizeof(struct statfs));
     778        vfs_statfs_t st;
     779        memset(&st, 0, sizeof(vfs_statfs_t));
    780780
    781781        str_cpy(st.fs_name, sizeof(st.fs_name), fs_name);
     
    800800
    801801        ops->node_put(fn);
    802         async_data_read_finalize(callid, &st, sizeof(struct statfs));
     802        async_data_read_finalize(callid, &st, sizeof(vfs_statfs_t));
    803803        async_answer_0(rid, EOK);
    804804        return;
Note: See TracChangeset for help on using the changeset viewer.