Changeset ee79df74 in mainline for uspace/app/bdsh/cmds/modules/ls/ls.c
- Timestamp:
- 2009-01-30T18:17:37Z (16 years ago)
- Branches:
- lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
- Children:
- 7c98874
- Parents:
- 826c203
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
uspace/app/bdsh/cmds/modules/ls/ls.c
r826c203 ree79df74 51 51 static char *cmdname = "ls"; 52 52 53 static inline uint64_t flen(const char *f)53 static inline off_t flen(const char *f) 54 54 { 55 55 int fd; 56 uint64_t size;56 off_t size; 57 57 58 58 fd = open(f, O_RDONLY); … … 146 146 static void ls_print_file(const char *f) 147 147 { 148 printf("%-40s\t% u\n", f,flen(f));148 printf("%-40s\t%llu\n", f, (long long) flen(f)); 149 149 150 150 return;
Note:
See TracChangeset
for help on using the changeset viewer.