Subversion Repositories HelenOS

Rev

Rev 3397 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 3397 Rev 3492
Line 130... Line 130...
130
    printf("%-40s\n", f);
130
    printf("%-40s\n", f);
131
 
131
 
132
    return;
132
    return;
133
}
133
}
134
 
134
 
135
void * help_cmd_ls(unsigned int level)
135
void help_cmd_ls(unsigned int level)
136
{
136
{
137
    if (level == HELP_SHORT) {
137
    if (level == HELP_SHORT) {
138
        printf("`%s' lists files and directories.\n", cmdname);
138
        printf("`%s' lists files and directories.\n", cmdname);
139
    } else {
139
    } else {
140
        help_cmd_ls(HELP_SHORT);
140
        help_cmd_ls(HELP_SHORT);
141
        printf("  `%s' [path], if no path is given the current "
141
        printf("  `%s' [path], if no path is given the current "
142
                "working directory is used.\n", cmdname);
142
                "working directory is used.\n", cmdname);
143
    }
143
    }
144
 
144
 
145
    return CMD_VOID;
145
    return;
146
}
146
}
147
 
147
 
148
int * cmd_ls(char **argv)
148
int cmd_ls(char **argv)
149
{
149
{
150
    unsigned int argc;
150
    unsigned int argc;
151
    unsigned int scope;
151
    unsigned int scope;
152
    char *buff;
152
    char *buff;
153
    DIR *dirp;
153
    DIR *dirp;