int close(int fd);
This system call implements the POSIX close function, which closes an open file descriptor.
fd The file descriptor to close.
Returns 0 if successful, or -1 on error, in which case errno indicates the error.