1 /* 2 ** Copyright 2001, Manuel J. Petit. All rights reserved. 3 ** Distributed under the terms of the NewOS License. 4 */ 5 6 7 #include <unistd.h> 8 9 #include <errno.h> 10 #include <pthread.h> 11 12 #include <syscall_utils.h> 13 14 #include <syscalls.h> 15 16 17 int 18 close(int fd) 19 { 20 RETURN_AND_SET_ERRNO_TEST_CANCEL(_kern_close(fd)); 21 } 22