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

19 lines
278 B
C

/* See LICENSE of license details. */
#include <errno.h>
#include "stub.h"
#include "weak_under_alias.h"
#include "semihosting.h"
int __wrap_close(int fd)
{
#if defined(SEMIHOTING)
int i = sh_close(fd);
return i;
#endif
return _stub(EBADF);
}
weak_under_alias(close);