Lines Matching +full:0 +full:x10100000

109 static int sig_record_quit = 0;
111 static int sig_record_reload = 0;
131 exit(0);
198 sig_record_quit = 0;
199 sig_record_reload = 0;
215 if(r != 0) {
225 #if OPENSSL_VERSION_NUMBER < 0x10100000 || !defined(HAVE_OPENSSL_INIT_SSL)
231 # if OPENSSL_VERSION_NUMBER < 0x10100000 || !defined(HAVE_OPENSSL_INIT_CRYPTO)
244 # if OPENSSL_VERSION_NUMBER < 0x10100000 || !defined(HAVE_OPENSSL_INIT_SSL)
261 daemon->need_to_exit = 0;
275 alloc_init(&daemon->superalloc, NULL, 0);
301 if(gettimeofday(&daemon->time_boot, NULL) < 0)
304 if((daemon->env->auth_zones = auth_zones_create()) == 0) {
339 return 0;
352 int num_resif = 0;
355 daemon->reuseport = 0;
358 for(i=0; i<daemon->num_ports; i++)
367 return 0;
370 if(daemon->cfg->so_reuseport && daemon->cfg->num_threads > 0)
379 return 0;
393 return 0;
395 daemon->ports[0] = p0;
397 daemon->ports[0])) {
400 return 0;
410 for(i=0; i<daemon->num_ports; i++)
415 return 0;
419 for(i=0; i<daemon->num_ports; i++)
424 return 0;
434 daemon->rc_port = 0;
440 return 0;
471 daemon->env->need_to_validate = 0; /* set by module init below */
490 int avail = 0;
491 for(i=0; i<65536; i++) {
497 if(avail == 0)
502 while(--n > 0) {
503 k = ub_random_max(daemon->rand, n+1); /* 0<= k<= n */
525 for(i=0; i<daemon->old_num; i++) {
537 * from 0..numthread initialised. Used as user arguments to new threads.
586 for(i=0; i<daemon->num; i++) {
599 for(i=0; i<daemon->num; i++) {
615 * @param thr: thread number 0..num-1 of thread to skip.
620 for(i=0; i<daemon->num; i++)
622 if(i==0) {
643 int port_num = 0;
655 port_num = 0;
658 worker->daemon->ports[port_num], 0))
675 /* skip i=0, is this thread */
696 /* skip i=0, is this thread */
697 /* use i=0 buffer for sending cmds; because we are #0 */
713 int have_view_respip_cfg = 0;
744 daemon->cfg->cookie_secret_file[0]) {
794 modstack_find(&daemon->mods, "respip") < 0)
800 modstack_find(&daemon->mods, "respip") < 0)
810 if(!worker_init(daemon->workers[0], daemon->cfg, daemon->ports[0], 1))
815 * By the way, this is thread #0 (the main thread).
824 if(!worker_init(daemon->workers[0], daemon->cfg, daemon->ports[0], 1))
827 signal_handling_playback(daemon->workers[0]);
834 ret = sd_notify(0, "READY=1");
835 if(ret <= 0 && getenv("NOTIFY_SOCKET"))
839 (ret==0?"no $NOTIFY_SOCKET": strerror(-ret)));
842 worker_work(daemon->workers[0]);
844 if (daemon->workers[0]->need_to_exit)
845 sd_notify(0, "STOPPING=1");
847 sd_notify(0, "RELOADING=1");
857 daemon->reuse_cache = daemon->workers[0]->reuse_cache;
858 daemon->need_to_exit = daemon->workers[0]->need_to_exit;
900 for(i=0; i<daemon->num; i++)
910 daemon->num = 0;
936 for(i = 0; i < daemon->num_ports; i++)
978 # if OPENSSL_VERSION_NUMBER < 0x10100000
985 # if (OPENSSL_VERSION_NUMBER < 0x10100000) && !defined(OPENSSL_NO_ENGINE) && defined(HAVE_ENGINE_CLEANUP)
996 # if OPENSSL_VERSION_NUMBER < 0x10100000
1010 if(WSACleanup() != 0) {
1067 daemon->env->rrset_cache, cfg, &daemon->superalloc)) == 0)
1070 cfg))==0)