Changeset 39330200 in mainline for uspace/lib/posix/source/sys/stat.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/posix/source/sys/stat.c

    rd8023313 r39330200  
    5252 * @return 0 on success, -1 on error.
    5353 */
    54 static int stat_to_posix(struct posix_stat *dest, struct stat *src)
     54static int stat_to_posix(struct posix_stat *dest, vfs_stat_t *src)
    5555{
    5656        memset(dest, 0, sizeof(struct posix_stat));
     
    8888int posix_fstat(int fd, struct posix_stat *st)
    8989{
    90         struct stat hst;
     90        vfs_stat_t hst;
    9191        if (failed(vfs_stat(fd, &hst)))
    9292                return -1;
     
    116116int posix_stat(const char *restrict path, struct posix_stat *restrict st)
    117117{
    118         struct stat hst;
     118        vfs_stat_t hst;
    119119        if (failed(vfs_stat_path(path, &hst)))
    120120                return -1;
Note: See TracChangeset for help on using the changeset viewer.