blob: 97abdfc383fc2cd54a5dd7af51692f8571682e63 [file] [log] [blame]
#include <errno.h>
#include <unistd.h>
#include <irt_syscalls.h>
int __close (int fd)
{
int result = __nacl_irt_close (fd);
if (result != 0) {
errno = result;
return -1;
}
return 0;
}
weak_alias (__close, close)