Lines Matching refs:NULL

281 	if (listener == NULL) {
283 return (NULL);
292 if (mutex_init(&listener->pl_lock, USYNC_THREAD, NULL) < 0) {
294 return (NULL);
307 if (pair == NULL) {
309 return (NULL);
378 if (op_pair == NULL) {
546 thr_exit(NULL);
568 thr_exit(NULL);
669 struct addrinfo *ai = NULL;
695 newffd = accept(listener->pl_fd, NULL, 0);
709 if (pair == NULL) {
732 if (listener->pl_proxy_host == NULL ||
733 listener->pl_proxy_port == NULL) {
851 return (NULL);
859 (void) pthread_setcancelstate(PTHREAD_CANCEL_DISABLE, NULL);
865 * must register a non-NULL value through thr_setspecfic. Do this
869 if (tid == NULL) {
871 return (NULL);
877 (void) door_return(NULL, 0, NULL, 0);
878 return (NULL);
900 if (dip == NULL)
905 rc = thr_create(NULL, 0, zpd_door_loop, NULL, THR_DAEMON,
906 NULL);
934 rc = thr_create(NULL, 0, proxy_thread_loop, NULL,
935 THR_BOUND, NULL);
950 if (thr_join(0, NULL, NULL) < 0) {
969 rc = thr_create(NULL, 0, proxy_thread_loop, NULL,
970 THR_BOUND, NULL);
1070 if (type == NULL)
1232 /* global zones have a NULL brand, but can be detected by zid. */
1336 for (wl = TAILQ_FIRST(&zone_listener_list); wl != NULL;
1343 return (NULL);
1359 if (listener == NULL) {
1411 for (wl = TAILQ_FIRST(&zone_listener_list); wl != NULL;
1452 for (wl = TAILQ_FIRST(&zone_listener_list); wl != NULL;
1495 door_desc_t *r_dp = NULL;
1500 (void) door_return(NULL, 0, NULL, 0);
1505 (void) door_return(NULL, 0, NULL, 0);
1626 (void) fflush(NULL);
1644 (void) wait4(pid, &status, 0, NULL);
1677 priv_set_t *ePrivSet = NULL;
1678 priv_set_t *lPrivSet = NULL;
1680 if ((ePrivSet = priv_str_to_set("basic", ",", NULL)) == NULL) {
1702 if ((lPrivSet = priv_allocset()) == NULL) {
1727 priv_set_t *ePrivSet = NULL;
1729 if ((ePrivSet = priv_allocset()) == NULL) {
1747 struct proxy_config *pc = NULL;
1749 if ((pc = malloc(sizeof (struct proxy_config))) == NULL)
1750 return (NULL);
1754 if (mutex_init(&pc->pc_lock, USYNC_THREAD, NULL) < 0) {
1758 if ((pc->pc_hdl = scf_handle_create(SCF_VERSION)) == NULL) {
1762 if ((pc->pc_inst = scf_instance_create(pc->pc_hdl)) == NULL) {
1766 if ((pc->pc_pg = scf_pg_create(pc->pc_hdl)) == NULL) {
1770 if ((pc->pc_prop = scf_property_create(pc->pc_hdl)) == NULL) {
1774 if ((pc->pc_val = scf_value_create(pc->pc_hdl)) == NULL) {
1778 if ((pc->pc_proxy_host = strdup(DEFAULT_HOST)) == NULL) {
1782 if ((pc->pc_proxy_port = strdup(DEFAULT_PORT)) == NULL) {
1792 return (NULL);
1798 if (pc == NULL)
1801 if (pc->pc_inst != NULL) {
1805 if (pc->pc_pg != NULL) {
1809 if (pc->pc_prop != NULL) {
1813 if (pc->pc_val != NULL) {
1817 if (pc->pc_hdl != NULL) {
1831 char *host = NULL;
1832 char *port = NULL;
1834 if ((host = malloc(CONF_STR_SZ)) == NULL) {
1838 if ((port = malloc(CONF_STR_SZ)) == NULL) {
1850 if (scf_handle_decode_fmri(pc->pc_hdl, SYSREPO_FMRI, NULL, NULL,
1851 pc->pc_inst, NULL, NULL, SCF_DECODE_FMRI_REQUIRE_INSTANCE) != 0) {
1954 char *proxystr = NULL;
1982 g_config_smf = (proxystr == NULL) ? B_TRUE : B_FALSE;
1986 if (proxy_host == NULL) {
1991 proxy_port = strtok(NULL, ":");
1992 if (proxy_port == NULL) {
2002 if ((g_proxy_config = config_alloc()) == NULL) {
2017 if (g_proxy_config->pc_proxy_host == NULL ||
2018 g_proxy_config->pc_proxy_port == NULL) {
2043 if (thr_sigsetmask(SIG_BLOCK, &blockset, NULL) < 0) {
2058 if (g_door_thr_cv == NULL) {
2062 if (cond_init(g_door_thr_cv, USYNC_THREAD, NULL) < 0) {
2092 g_door = door_create(zpd_door_server, NULL,
2119 rc = thr_create(NULL, 0, (void *(*)(void *))s_handler, NULL,
2120 THR_BOUND, NULL);
2127 rc = thr_create(NULL, 0, thread_manager, NULL, THR_BOUND, NULL);
2148 if (port_alert(g_port, PORT_ALERT_SET, 1, NULL) < 0) {
2163 while (thr_join(0, NULL, NULL) == 0)