Subversion Repositories HelenOS

Compare Revisions

Ignore whitespace Rev 3363 → Rev 3364

/trunk/uspace/app/bdsh/cmds/modules/rm/rm.c
57,7 → 57,7
{ 0, 0, 0, 0 }
};
 
unsigned int rm_start(rm_job_t *rm)
static unsigned int rm_start(rm_job_t *rm)
{
rm->recursive = 0;
rm->force = 0;
85,7 → 85,7
return 1;
}
 
void rm_end(rm_job_t *rm)
static void rm_end(rm_job_t *rm)
{
if (NULL != rm->nwd)
free(rm->nwd);
99,7 → 99,7
return;
}
 
unsigned int rm_recursive(const char *path)
static unsigned int rm_recursive(const char *path)
{
int rc;
 
114,7 → 114,7
return 1;
}
 
unsigned int rm_single(const char *path)
static unsigned int rm_single(const char *path)
{
if (unlink(path)) {
cli_error(CL_EFAIL, "rm: could not remove file %s", path);
123,7 → 123,7
return 0;
}
 
unsigned int rm_scope(const char *path)
static unsigned int rm_scope(const char *path)
{
int fd;
DIR *dirp;
/trunk/uspace/app/bdsh/cmds/modules/rm/rm.h
33,11 → 33,11
 
 
/* Prototypes for the rm command, excluding entry points */
extern unsigned int rm_start(rm_job_t *);
extern void rm_end(rm_job_t *rm);
extern unsigned int rm_recursive(const char *);
extern unsigned int rm_single(const char *);
extern unsigned int rm_scope(const char *);
static unsigned int rm_start(rm_job_t *);
static void rm_end(rm_job_t *rm);
static unsigned int rm_recursive(const char *);
static unsigned int rm_single(const char *);
static unsigned int rm_scope(const char *);
 
#endif /* RM_H */
 
/trunk/uspace/app/bdsh/cmds/modules/rm/rm.def
1,6 → 1,6
{
"rm",
"The rm command",
"Remove files and directories",
&cmd_rm,
&help_cmd_rm,
0