Changeset 23a0368 in mainline for uspace/lib/bithenge/src/file.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/bithenge/src/file.c

    rb5b5d84 r23a0368  
    4141#include <stdio.h>
    4242#include <stdlib.h>
    43 #include <sys/stat.h>
     43#include <vfs/vfs.h>
    4444#include <sys/types.h>
    4545#include <unistd.h>
     
    104104
    105105        struct stat stat;
    106         int rc = fstat(fd, &stat);
    107         if (rc != 0) {
     106        int rc = vfs_stat(fd, &stat);
     107        if (rc != EOK) {
    108108                if (needs_close)
    109109                        close(fd);
Note: See TracChangeset for help on using the changeset viewer.