Go to most recent revision |
Blame |
Compare with Previous |
Last modification |
View Log
| RSS feed
/*
*
*
*
*/
#include <ll/i386/cons.h>
#include <kernel/func.h>
#include <fs/bdevinit.h>
#include <fs/fsinit.h>
#include <fs/bdev.h>
#include <drivers/keyb.h>
#include <sys/mount.h>
#include <sys/types.h>
#include <fcntl.h>
#include <unistd.h>
#include <errno.h>
#include <string.h>
#include "common.h"
#define FILENAME "/TEMP/TESTW1.TXT"
//#define FILENAME "/TEMP/CIR2"
extern dev_t temp_device
;
int main
(int argc
,char *argv
[])
{
int res
;
showmessage
("Try to unlink (ie. delete) a file.\n");
cprintf
("UNLINKING %s\n",FILENAME
);
res
=unlink
(FILENAME
);
if (res
!=0) {
cprintf
("FAILED!\n");
cprintf
("errno: %i '%s'\n",errno
,strerror(errno
));
} else cprintf
("OK!\n");
waitend
();
return 0;
}