Changeset 23a0368 in mainline for uspace/lib/c/generic/io/io.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/c/generic/io/io.c

    rb5b5d84 r23a0368  
    4141#include <stdbool.h>
    4242#include <malloc.h>
    43 #include <sys/stat.h>
    4443#include <async.h>
    4544#include <io/kio.h>
     
    765764int fseek(FILE *stream, off64_t offset, int whence)
    766765{
     766        int rc;
     767
    767768        if (stream->error)
    768769                return -1;
     
    785786                break;
    786787        case SEEK_END:
    787                 if (fstat(stream->fd, &st) != EOK) {
    788                         /* errno was set by fstat() */
     788                rc = vfs_stat(stream->fd, &st);
     789                if (rc != EOK) {
     790                        errno = rc;
    789791                        stream->error = true;
    790792                        return -1;     
Note: See TracChangeset for help on using the changeset viewer.