Ignore:
Timestamp:
2017-03-30T19:52:23Z (8 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/app/bdsh/cmds/modules/touch/touch.c

    rb5b5d84 r23a0368  
    4040#include <str.h>
    4141#include <getopt.h>
    42 #include <sys/stat.h>
    4342#include <errno.h>
     43#include <vfs/vfs.h>
    4444
    4545#include "config.h"
     
    123123               
    124124                /* Check whether file exists if -c (--no-create) option is given */
    125                 if ((!no_create) || ((no_create) && (stat(buff, &file_stat) == 0)))
     125                if ((!no_create) ||
     126                    ((no_create) && (vfs_stat_path(buff, &file_stat) == EOK))) {
    126127                        fd = open(buff, O_RDWR | O_CREAT);
     128                }
    127129               
    128130                if (fd < 0) {
Note: See TracChangeset for help on using the changeset viewer.