Services and Modeling for Embedded Software Development
Embecosm divider strip
Prev  Next

5.3.18.  Remove a File's Directory Entry, unlink

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;

_unlink (char *name)
  errno = ENOENT;
  return -1;                    /* Always fails */

}       /* _unlink () */
Embecosm divider strip