MNRS-BM-BSP/libwrap/sys/unlink.c

16 lines
280 B
C

/* See LICENSE of license details. */
#include <errno.h>
#include "stub.h"
#include "weak_under_alias.h"
#include "semihosting.h"
int __wrap_unlink(const char* name)
{
#if defined(SEMIHOSTING)
return sh_remove(name);
#endif
return _stub(ENOENT);
}
weak_under_alias(unlink);