Rename set_nonblocking() to set_blocking()

Add second parameter
Fix close_on_exec() to return the status of fcntl()