Subversion Repositories HelenOS

Compare Revisions

Ignore whitespace Rev 3363 → Rev 3364

/trunk/uspace/app/bdsh/cmds/modules/ls/ls.c
50,7 → 50,7
 
static char *cmdname = "ls";
 
unsigned int ls_scope(const char *path)
static unsigned int ls_scope(const char *path)
{
int fd;
DIR *dirp;
70,7 → 70,7
return LS_BOGUS;
}
 
void ls_scan_dir(const char *d, DIR *dirp)
static void ls_scan_dir(const char *d, DIR *dirp)
{
struct dirent *dp;
unsigned int scope;
118,7 → 118,7
*
* Now we just print basic DOS style lists */
 
void ls_print_dir(const char *d)
static void ls_print_dir(const char *d)
{
printf("%-40s\t<DIR>\n", d);
 
125,7 → 125,7
return;
}
 
void ls_print_file(const char *f)
static void ls_print_file(const char *f)
{
printf("%-40s\n", f);
 
/trunk/uspace/app/bdsh/cmds/modules/ls/ls.h
6,13 → 6,11
#define LS_FILE 1
#define LS_DIR 2
 
/* Protoypes for non entry points, intrinsic to ls. Stuff like ls_scope()
* is also duplicated in rm, while rm sort of duplicates ls_scan_dir().
* TODO make some more shared functions and don't expose the stuff below */
extern unsigned int ls_scope(const char *);
extern void ls_scan_dir(const char *, DIR *);
extern void ls_print_dir(const char *);
extern void ls_print_file(const char *);
 
static unsigned int ls_scope(const char *);
static void ls_scan_dir(const char *, DIR *);
static void ls_print_dir(const char *);
static void ls_print_file(const char *);
 
#endif /* LS_H */
 
/trunk/uspace/app/bdsh/cmds/modules/ls/ls.def
1,6 → 1,6
{
"ls",
"The ls command",
"List files and directories",
&cmd_ls,
&help_cmd_ls,
0