Changeset 9646159 in mainline
- Timestamp:
- 2009-02-21T11:44:24Z (16 years ago)
- Branches:
- lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
- Children:
- 0cb9fa0
- Parents:
- 5ad8661
- Location:
- uspace/app/bdsh/cmds/modules/ls
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
uspace/app/bdsh/cmds/modules/ls/ls.c
r5ad8661 r9646159 115 115 break; 116 116 case LS_FILE: 117 ls_print_file(dp->d_name );117 ls_print_file(dp->d_name, buff); 118 118 break; 119 119 case LS_BOGUS: … … 144 144 } 145 145 146 static void ls_print_file(const char * f)147 { 148 printf("%-40s\t%llu\n", f, (long long) flen(f));146 static void ls_print_file(const char *name, const char *pathname) 147 { 148 printf("%-40s\t%llu\n", name, (long long) flen(pathname)); 149 149 150 150 return; … … 193 193 return CMD_FAILURE; 194 194 case LS_FILE: 195 ls_print_file(buff );195 ls_print_file(buff, buff); 196 196 break; 197 197 case LS_DIR: -
uspace/app/bdsh/cmds/modules/ls/ls.h
r5ad8661 r9646159 11 11 static void ls_scan_dir(const char *, DIR *); 12 12 static void ls_print_dir(const char *); 13 static void ls_print_file(const char * );13 static void ls_print_file(const char *, const char *); 14 14 15 15 #endif /* LS_H */
Note:
See TracChangeset
for help on using the changeset viewer.