Changeset b19e892 in mainline for uspace/srv/devman/match.c


Ignore:
Timestamp:
2017-04-02T10:39:13Z (7 years ago)
Author:
Jakub Jermar <jakub@…>
Branches:
lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
Children:
9c4cf0d
Parents:
80743a1
Message:

Merge open() with posix_open() and provide vfs_lookup_open() instead

vfs_lookup_open() is really just a convenience wrapper around
vfs_lookup() and vfs_open().

File:
1 edited

Legend:

Unmodified
Added
Removed
  • uspace/srv/devman/match.c

    r80743a1 rb19e892  
    3232
    3333#include <errno.h>
    34 #include <fcntl.h>
    3534#include <io/log.h>
    3635#include <str.h>
     
    203202        struct stat st;
    204203       
    205         fd = open(conf_path, O_RDONLY);
     204        fd = vfs_lookup_open(conf_path, WALK_REGULAR, MODE_READ);
    206205        if (fd < 0) {
    207206                log_msg(LOG_DEFAULT, LVL_ERROR, "Unable to open `%s' for reading: %s.",
Note: See TracChangeset for help on using the changeset viewer.