summaryrefslogtreecommitdiff
path: root/src/unistd/close.c
blob: 231f79ef699cfdeedf72cc42505602d1a1ad7e2f (plain)
1
2
3
4
5
6
7
8
9
10
#include <unistd.h>
#include "syscall.h"
#include "libc.h"

int close(int fd)
{
	int ret = syscall_cp(SYS_close, fd);
	if (libc.testcancel) libc.testcancel();
	return ret;
}