Changeset 39330200 in mainline for uspace/app


Ignore:
Timestamp:
2018-01-15T21:40:49Z (8 years ago)
Author:
Jiří Zárevúcky <zarevucky.jiri@…>
Branches:
lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
Children:
ba29018
Parents:
d8023313
git-author:
Jiří Zárevúcky <zarevucky.jiri@…> (2018-01-15 21:20:07)
git-committer:
Jiří Zárevúcky <zarevucky.jiri@…> (2018-01-15 21:40:49)
Message:

Rename struct stat and struct statfs to vfs_stat_t and vfs_statfs_t,
respectively. They are nonstandard vestiges of times when native file API
was modeled after POSIX API.

Location:
uspace/app
Files:
9 edited

Legend:

Unmodified
Added
Removed
  • uspace/app/bdsh/cmds/modules/cat/cat.c

    rd8023313 r39330200  
    215215
    216216        if (tail != CAT_FULL_FILE) {
    217                 struct stat st;
     217                vfs_stat_t st;
    218218
    219219                if (vfs_stat(fd, &st) != EOK) {
  • uspace/app/bdsh/cmds/modules/cp/cp.c

    rd8023313 r39330200  
    8080static dentry_type_t get_type(const char *path)
    8181{
    82         struct stat s;
     82        vfs_stat_t s;
    8383
    8484        errno_t r = vfs_stat_path(path, &s);
     
    340340                 */
    341341                while ((dp = readdir(dir))) {
    342                         struct stat src_s;
    343                         struct stat dest_s;
     342                        vfs_stat_t src_s;
     343                        vfs_stat_t dest_s;
    344344
    345345                        char src_dent[PATH_MAX];
     
    392392        char *buff = NULL;
    393393        aoff64_t posr = 0, posw = 0;
    394         struct stat st;
     394        vfs_stat_t st;
    395395
    396396        if (vb)
  • uspace/app/bdsh/cmds/modules/ls/ls.h

    rd8023313 r39330200  
    2323struct dir_elem_t {
    2424        char *name;
    25         struct stat s;
     25        vfs_stat_t s;
    2626};
    2727
  • uspace/app/bdsh/cmds/modules/touch/touch.c

    rd8023313 r39330200  
    8282        int longind;
    8383        bool no_create = false;
    84         struct stat file_stat;
     84        vfs_stat_t file_stat;
    8585        int fd = -1;
    8686        char *buff = NULL;
  • uspace/app/bdsh/compl.c

    rd8023313 r39330200  
    360360                                char *ent_path;
    361361                                asprintf(&ent_path, "%s/%s", *cs->path, dent->d_name);
    362                                 struct stat ent_stat;
     362                                vfs_stat_t ent_stat;
    363363                                if (vfs_stat_path(ent_path, &ent_stat) != EOK) {
    364364                                        /* Error */
  • uspace/app/df/df.c

    rd8023313 r39330200  
    5858static errno_t size_to_human_readable(uint64_t, size_t, char **);
    5959static void print_header(void);
    60 static errno_t print_statfs(struct statfs *, char *, char *);
     60static errno_t print_statfs(vfs_statfs_t *, char *, char *);
    6161static void print_usage(void);
    6262
     
    6464{
    6565        int optres, errflg = 0;
    66         struct statfs st;
     66        vfs_statfs_t st;
    6767        errno_t rc;
    6868
     
    147147}
    148148
    149 static errno_t print_statfs(struct statfs *st, char *name, char *mountpoint)
     149static errno_t print_statfs(vfs_statfs_t *st, char *name, char *mountpoint)
    150150{
    151151        uint64_t const used_blocks = st->f_blocks - st->f_bfree;
  • uspace/app/init/init.c

    rd8023313 r39330200  
    152152static errno_t srv_startl(const char *path, ...)
    153153{
    154         struct stat s;
     154        vfs_stat_t s;
    155155        if (vfs_stat_path(path, &s) != EOK) {
    156156                printf("%s: Unable to stat %s\n", NAME, path);
  • uspace/app/sysinst/futil.c

    rd8023313 r39330200  
    108108        DIR *dir;
    109109        struct dirent *de;
    110         struct stat s;
     110        vfs_stat_t s;
    111111        char *srcp, *destp;
    112112        errno_t rc;
     
    165165        size_t fsize;
    166166        char *data;
    167         struct stat st;
     167        vfs_stat_t st;
    168168
    169169        rc = vfs_lookup_open(srcp, WALK_REGULAR, MODE_READ, &sf);
  • uspace/app/viewer/viewer.c

    rd8023313 r39330200  
    115115                return false;
    116116       
    117         struct stat stat;
     117        vfs_stat_t stat;
    118118        rc = vfs_stat(fd, &stat);
    119119        if (rc != EOK) {
Note: See TracChangeset for help on using the changeset viewer.