mirror of
https://github.com/open-simh/simtools.git
synced 2026-02-02 14:52:29 +00:00
file systems. It supports reading and writing as well as a number
of other operations, such as octal dump, file system initialize,
and file system check ("clean").
This was originally maintained as a Subversion repository at
svn://akdesign.dyndns.org/flx/branches/V2.6.
as suggested by Timothe Litt on the SIMH mailing list.
29 lines
562 B
C
29 lines
562 B
C
/* handler for the "delete" command */
|
|
|
|
#include <stdio.h>
|
|
|
|
#include "flx.h"
|
|
#include "fldef.h"
|
|
#include "dodelete.h"
|
|
#include "fip.h"
|
|
#include "filename.h"
|
|
#include "fileio.h"
|
|
#include "scancmd.h"
|
|
|
|
void dodel2 (firqb *f)
|
|
{
|
|
if (protfile (f)) return; /* quit if protected file */
|
|
delfile (f); /* now really delete the file */
|
|
if (sw.verbose != NULL) {
|
|
printcurname (f);
|
|
printf (" deleted\n");
|
|
}
|
|
}
|
|
|
|
void dodelete (int argc, char **argv)
|
|
{
|
|
rmountrw (); /* mount r/w */
|
|
dofiles (argc, argv, dodel2, NOTNULL);
|
|
rumountrw (); /* done with r/w */
|
|
}
|