}   result = __fcntl (daemon_sock, F_GETFD, 0); if (result >= 0) result = __fcntl (daemon_sock, F_SETFD, flags | FD_CLOEXEC); if (result == -1) { close (daemon_sock); return 0;
setutent_daemon (void){  if (__access (_PATH_UTMPD_RW, F_OK) == -1      && __access (_PATH_UTMPD_RO, F_OK) == -1)    return 0;  if (daemon_sock < 0)    {      daemon_sock = open_socket (_PATH_UTMPD_RW);      if (daemon_sock < 0)	{	  /* Hhm, read-write access did not work.  Try read-only.  */	  daemon_sock = open_socket (_PATH_UTMPD_RO);	  if (daemon_sock < 0)	    return 0;	}    }  /* Send request to the daemon.  */  if (do_setutent (daemon_sock) < 0)    return 0;  return 1;}