overhaul pthread cancellation
[musl] / src / unistd / close.c
1 #include <unistd.h>
2 #include "syscall.h"
3 #include "libc.h"
4
5 int close(int fd)
6 {
7         int ret = syscall_cp(SYS_close, fd);
8         if (libc.testcancel) libc.testcancel();
9         return ret;
10 }