Changeset 23a0368 in mainline for uspace/srv/devman/driver.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/srv/devman/driver.c

    rb5b5d84 r23a0368  
    3434#include <errno.h>
    3535#include <fcntl.h>
    36 #include <sys/stat.h>
    3736#include <io/log.h>
     37#include <vfs/vfs.h>
    3838#include <loc.h>
    3939#include <str_error.h>
     
    142142        /* Check whether the driver's binary exists. */
    143143        struct stat s;
    144         if (stat(drv->binary_path, &s) != 0) {
     144        if (vfs_stat_path(drv->binary_path, &s) != EOK) {
    145145                log_msg(LOG_DEFAULT, LVL_ERROR, "Driver not found at path `%s'.",
    146146                    drv->binary_path);
Note: See TracChangeset for help on using the changeset viewer.