Changeset 23a0368 in mainline for uspace/lib/posix/source/unistd.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/unistd.c

    rb5b5d84 r23a0368  
    4848#include "libc/malloc.h"
    4949#include "libc/vfs/vfs.h"
    50 #include "libc/sys/stat.h"
    5150
    5251aoff64_t posix_pos[MAX_OPEN_FILES];
     
    221220{
    222221        struct stat st;
     222        int rc;
    223223
    224224        switch (whence) {
     
    230230                break;
    231231        case SEEK_END:
    232                 if (fstat(fildes, &st) != EOK) {
    233                         errno = -errno;
     232                rc = rcerrno(vfs_stat, fildes, &st);
     233                if (rc != EOK)
    234234                        return -1;
    235                 }
    236235                posix_pos[fildes] = st.size + offset;
    237236                break;
Note: See TracChangeset for help on using the changeset viewer.