headers/bsd: Add sys/queue.h.
[haiku.git] / src / system / libroot / posix / unistd / close.c
blob44b4138b5b31b58ad84bd7bb55f65039ec9dda00
1 /*
2 ** Copyright 2001, Manuel J. Petit. All rights reserved.
3 ** Distributed under the terms of the NewOS License.
4 */
7 #include <unistd.h>
9 #include <errno.h>
10 #include <pthread.h>
12 #include <syscall_utils.h>
14 #include <errno_private.h>
15 #include <syscalls.h>
18 int
19 close(int fd)
21 RETURN_AND_SET_ERRNO_TEST_CANCEL(_kern_close(fd));