TakefiveInteractive / TedkOS

Operating System - ECE 391 Takefive Interactive Team
GNU General Public License v2.0
96 stars 17 forks source link

Implement unlink #24

Open tengyifei opened 8 years ago

tengyifei commented 8 years ago

Remove a file’s directory entry. Minimal implementation:

#include <errno.h>
#undef errno
extern int errno;
int unlink(char *name) {
  errno = ENOENT;
  return -1; 
}