For a namespace clean function, implement
_unlink
, otherwise implement
unlink
. The detailed implementation will
depend on the file handling functionality available.
A minimal implementation has no file system, so this function
should always fail, setting an appropriate value in
errno
.
#include <errno.h> #undef errno extern int errno; int _unlink (char *name) { errno = ENOENT; return -1; /* Always fails */ } /* _unlink () */