Changeset 23a0368 in mainline for uspace/lib/posix/source/sys/stat.c


Ignore:
Timestamp:
2017-03-30T19:52:23Z (7 years ago)
Author:
Jakub Jermar <jakub@…>
Branches:
lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
Children:
ae7bfbbd
Parents:
b5b5d84
Message:

Rename stat() to vfs_stat_path() and fstat() to vfs_stat()

File:
1 edited

Legend:

Unmodified
Added
Removed
  • uspace/lib/posix/source/sys/stat.c

    rb5b5d84 r23a0368  
    3939#include "../internal/common.h"
    4040#include "posix/sys/stat.h"
    41 #include "libc/sys/stat.h"
     41#include "libc/vfs/vfs.h"
    4242
    4343#include "posix/errno.h"
     
    8080{
    8181        struct stat hst;
    82         int rc = negerrno(fstat, fd, &hst);
     82        int rc = rcerrno(vfs_stat, fd, &hst);
    8383        if (rc < 0)
    84                 return rc;
     84                return -1;
    8585        stat_to_posix(st, &hst);
    8686        return 0;
     
    110110{
    111111        struct stat hst;
    112         int rc = negerrno(stat, path, &hst);
     112        int rc = rcerrno(vfs_stat_path, path, &hst);
    113113        if (rc < 0)
    114                 return rc;
     114                return -1;
    115115        stat_to_posix(st, &hst);
    116116        return 0;
Note: See TracChangeset for help on using the changeset viewer.