Changeset 39330200 in mainline for uspace/app
- Timestamp:
- 2018-01-15T21:40:49Z (8 years ago)
- 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)
- Location:
- uspace/app
- Files:
-
- 9 edited
-
bdsh/cmds/modules/cat/cat.c (modified) (1 diff)
-
bdsh/cmds/modules/cp/cp.c (modified) (3 diffs)
-
bdsh/cmds/modules/ls/ls.h (modified) (1 diff)
-
bdsh/cmds/modules/touch/touch.c (modified) (1 diff)
-
bdsh/compl.c (modified) (1 diff)
-
df/df.c (modified) (3 diffs)
-
init/init.c (modified) (1 diff)
-
sysinst/futil.c (modified) (2 diffs)
-
viewer/viewer.c (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
uspace/app/bdsh/cmds/modules/cat/cat.c
rd8023313 r39330200 215 215 216 216 if (tail != CAT_FULL_FILE) { 217 struct stat st;217 vfs_stat_t st; 218 218 219 219 if (vfs_stat(fd, &st) != EOK) { -
uspace/app/bdsh/cmds/modules/cp/cp.c
rd8023313 r39330200 80 80 static dentry_type_t get_type(const char *path) 81 81 { 82 struct stat s;82 vfs_stat_t s; 83 83 84 84 errno_t r = vfs_stat_path(path, &s); … … 340 340 */ 341 341 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; 344 344 345 345 char src_dent[PATH_MAX]; … … 392 392 char *buff = NULL; 393 393 aoff64_t posr = 0, posw = 0; 394 struct stat st;394 vfs_stat_t st; 395 395 396 396 if (vb) -
uspace/app/bdsh/cmds/modules/ls/ls.h
rd8023313 r39330200 23 23 struct dir_elem_t { 24 24 char *name; 25 struct stat s;25 vfs_stat_t s; 26 26 }; 27 27 -
uspace/app/bdsh/cmds/modules/touch/touch.c
rd8023313 r39330200 82 82 int longind; 83 83 bool no_create = false; 84 struct stat file_stat;84 vfs_stat_t file_stat; 85 85 int fd = -1; 86 86 char *buff = NULL; -
uspace/app/bdsh/compl.c
rd8023313 r39330200 360 360 char *ent_path; 361 361 asprintf(&ent_path, "%s/%s", *cs->path, dent->d_name); 362 struct stat ent_stat;362 vfs_stat_t ent_stat; 363 363 if (vfs_stat_path(ent_path, &ent_stat) != EOK) { 364 364 /* Error */ -
uspace/app/df/df.c
rd8023313 r39330200 58 58 static errno_t size_to_human_readable(uint64_t, size_t, char **); 59 59 static void print_header(void); 60 static errno_t print_statfs( struct statfs*, char *, char *);60 static errno_t print_statfs(vfs_statfs_t *, char *, char *); 61 61 static void print_usage(void); 62 62 … … 64 64 { 65 65 int optres, errflg = 0; 66 struct statfsst;66 vfs_statfs_t st; 67 67 errno_t rc; 68 68 … … 147 147 } 148 148 149 static errno_t print_statfs( struct statfs*st, char *name, char *mountpoint)149 static errno_t print_statfs(vfs_statfs_t *st, char *name, char *mountpoint) 150 150 { 151 151 uint64_t const used_blocks = st->f_blocks - st->f_bfree; -
uspace/app/init/init.c
rd8023313 r39330200 152 152 static errno_t srv_startl(const char *path, ...) 153 153 { 154 struct stat s;154 vfs_stat_t s; 155 155 if (vfs_stat_path(path, &s) != EOK) { 156 156 printf("%s: Unable to stat %s\n", NAME, path); -
uspace/app/sysinst/futil.c
rd8023313 r39330200 108 108 DIR *dir; 109 109 struct dirent *de; 110 struct stat s;110 vfs_stat_t s; 111 111 char *srcp, *destp; 112 112 errno_t rc; … … 165 165 size_t fsize; 166 166 char *data; 167 struct stat st;167 vfs_stat_t st; 168 168 169 169 rc = vfs_lookup_open(srcp, WALK_REGULAR, MODE_READ, &sf); -
uspace/app/viewer/viewer.c
rd8023313 r39330200 115 115 return false; 116 116 117 struct stat stat;117 vfs_stat_t stat; 118 118 rc = vfs_stat(fd, &stat); 119 119 if (rc != EOK) {
Note:
See TracChangeset
for help on using the changeset viewer.
