Changeset 132ab5d1 in mainline for uspace/lib/posix/source/sys/stat.c


Ignore:
Timestamp:
2018-01-30T03:20:45Z (8 years ago)
Author:
Jenda <jenda.jzqk73@…>
Branches:
lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
Children:
5a6cc679
Parents:
8bfb163 (diff), 6a5d05b (diff)
Note: this is a merge changeset, the changes displayed below correspond to the merge itself.
Use the (diff) links above to see all the changes relative to each parent.
Message:

Merge commit '6a5d05bd2551e64111bea4f9332dd7448c26ce84' into forwardport

Separate return value from error code in gen_irq_code*().

File:
1 edited

Legend:

Unmodified
Added
Removed
  • uspace/lib/posix/source/sys/stat.c

    r8bfb163 r132ab5d1  
    4141#include "libc/vfs/vfs.h"
    4242
    43 #include "posix/errno.h"
     43#include <errno.h>
    4444#include "libc/mem.h"
    4545
     
    8989{
    9090        struct stat hst;
    91         int rc = rcerrno(vfs_stat, fd, &hst);
    92         if (rc < 0)
     91        if (failed(vfs_stat(fd, &hst)))
    9392                return -1;
    9493        return stat_to_posix(st, &hst);
     
    118117{
    119118        struct stat hst;
    120         int rc = rcerrno(vfs_stat_path, path, &hst);
    121         if (rc < 0)
     119        if (failed(vfs_stat_path(path, &hst)))
    122120                return -1;
    123121        return stat_to_posix(st, &hst);
     
    159157int posix_mkdir(const char *path, posix_mode_t mode)
    160158{
    161         int rc = rcerrno(vfs_link_path, path, KIND_DIRECTORY, NULL);
    162         if (rc != EOK)
     159        if (failed(vfs_link_path(path, KIND_DIRECTORY, NULL)))
    163160                return -1;
    164161        else
Note: See TracChangeset for help on using the changeset viewer.