Rev 3346 | Rev 3376 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed
Rev 3346 | Rev 3364 | ||
---|---|---|---|
Line 48... | Line 48... | ||
48 | #include "ls.h" |
48 | #include "ls.h" |
49 | #include "cmds.h" |
49 | #include "cmds.h" |
50 | 50 | ||
51 | static char *cmdname = "ls"; |
51 | static char *cmdname = "ls"; |
52 | 52 | ||
53 | unsigned int ls_scope(const char *path) |
53 | static unsigned int ls_scope(const char *path) |
54 | { |
54 | { |
55 | int fd; |
55 | int fd; |
56 | DIR *dirp; |
56 | DIR *dirp; |
57 | 57 | ||
58 | dirp = opendir(path); |
58 | dirp = opendir(path); |
Line 68... | Line 68... | ||
68 | } |
68 | } |
69 | 69 | ||
70 | return LS_BOGUS; |
70 | return LS_BOGUS; |
71 | } |
71 | } |
72 | 72 | ||
73 | void ls_scan_dir(const char *d, DIR *dirp) |
73 | static void ls_scan_dir(const char *d, DIR *dirp) |
74 | { |
74 | { |
75 | struct dirent *dp; |
75 | struct dirent *dp; |
76 | unsigned int scope; |
76 | unsigned int scope; |
77 | char *buff; |
77 | char *buff; |
78 | 78 | ||
Line 116... | Line 116... | ||
116 | * some sort of ls_options structure that controls how each |
116 | * some sort of ls_options structure that controls how each |
117 | * entry is printed and what is printed about it. |
117 | * entry is printed and what is printed about it. |
118 | * |
118 | * |
119 | * Now we just print basic DOS style lists */ |
119 | * Now we just print basic DOS style lists */ |
120 | 120 | ||
121 | void ls_print_dir(const char *d) |
121 | static void ls_print_dir(const char *d) |
122 | { |
122 | { |
123 | printf("%-40s\t<DIR>\n", d); |
123 | printf("%-40s\t<DIR>\n", d); |
124 | 124 | ||
125 | return; |
125 | return; |
126 | } |
126 | } |
127 | 127 | ||
128 | void ls_print_file(const char *f) |
128 | static void ls_print_file(const char *f) |
129 | { |
129 | { |
130 | printf("%-40s\n", f); |
130 | printf("%-40s\n", f); |
131 | 131 | ||
132 | return; |
132 | return; |
133 | } |
133 | } |