add head file <unistd.h> for function close()