Changeset 5a6cc679 in mainline for uspace/app/df/df.c
- Timestamp:
- 2018-01-31T02:21:24Z (7 years ago)
- Branches:
- lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
- Children:
- a0a9cc2
- Parents:
- 132ab5d1
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
uspace/app/df/df.c
r132ab5d1 r5a6cc679 56 56 static bool display_blocks; 57 57 58 static int size_to_human_readable(uint64_t, size_t, char **);58 static errno_t size_to_human_readable(uint64_t, size_t, char **); 59 59 static void print_header(void); 60 static int print_statfs(struct statfs *, char *, char *);60 static errno_t print_statfs(struct statfs *, char *, char *); 61 61 static void print_usage(void); 62 62 … … 65 65 int optres, errflg = 0; 66 66 struct statfs st; 67 int rc;67 errno_t rc; 68 68 69 69 display_blocks = false; … … 128 128 } 129 129 130 static int size_to_human_readable(uint64_t nblocks, size_t block_size, char **rptr)130 static errno_t size_to_human_readable(uint64_t nblocks, size_t block_size, char **rptr) 131 131 { 132 132 cap_spec_t cap; … … 147 147 } 148 148 149 static int print_statfs(struct statfs *st, char *name, char *mountpoint)149 static errno_t print_statfs(struct statfs *st, char *name, char *mountpoint) 150 150 { 151 151 uint64_t const used_blocks = st->f_blocks - st->f_bfree; 152 152 unsigned const perc_used = PERCENTAGE(used_blocks, st->f_blocks); 153 153 char *str; 154 int rc;154 errno_t rc; 155 155 156 156 printf("%10s", name);
Note:
See TracChangeset
for help on using the changeset viewer.