Lines Matching defs:NULL

203 	if (commdout != (FILE *)NULL) { \
223 } else if (slave_result == NULL) {
237 (void) uadmin(A_DUMP, AD_BOOT, NULL);
250 if (commdout == (FILE *)NULL)
263 * And we drop the verbosity level to NULL
286 /* safer version of clnt_destroy. If clnt is NULL don't do anything */
383 now = time((time_t *)NULL);
431 /* if commdout is non-NULL it is an open FILE, we'd better close it */
432 if (commdout != (FILE *)NULL) {
439 if (commdoutfile == (char *)NULL) {
447 ((commdout = fopen(commdoutfile, "a")) == (FILE *)NULL)) {
458 if (commdout == (FILE *)NULL) {
491 if ((ptr = popen(cmd, "r")) != NULL) {
492 if (fgets(buf, sizeof (buf), ptr) != NULL) {
553 (void) sigaction(SIGHUP, &sighandler, NULL);
560 (void) thr_create(NULL, 0, (void *(*)(void *))flush_fcout,
561 (void *) NULL, THR_DETACHED, NULL);
564 (void) mutex_init(&check_timeout_mutex, USYNC_THREAD, NULL);
565 (void) cond_init(&check_timeout_cv, USYNC_THREAD, NULL);
566 (void) mutex_init(&get_setdesc_mutex, USYNC_THREAD, NULL);
577 (void) thr_create(NULL, 0, (void *(*)(void *))check_timeouts,
578 (void *) NULL, THR_DETACHED, NULL);
586 * called if client[setno][nodeid] is NULL
612 if (sd == NULL) {
623 if (sd == NULL) {
643 if (node == (md_mnnode_desc *)NULL) {
651 node->nd_nodename ? node->nd_nodename : "NULL", node->nd_flags);
656 node->nd_nodename ? node->nd_nodename : "NULL", setno);
662 if (client[setno][nid] == (CLIENT *) NULL) {
674 while ((client[setno][nid] == (CLIENT *) NULL) &&
689 if (client[setno][nid] == (CLIENT *) NULL) {
725 while ((client[setno][nodeid] == (CLIENT *)NULL) && (ret == 0)) {
767 (void) mutex_init(&mdmn_busy_mutex[setno], USYNC_THREAD, NULL);
768 (void) cond_init(&mdmn_busy_cv[setno], USYNC_THREAD, NULL);
769 (void) rwlock_init(&client_rwlock[setno], USYNC_THREAD, NULL);
770 (void) rwlock_init(&set_desc_rwlock[setno], USYNC_THREAD, NULL);
774 class), USYNC_THREAD, NULL);
776 USYNC_THREAD, NULL);
778 class), USYNC_THREAD, NULL);
874 USYNC_THREAD, NULL);
889 if ((sp = metasetnosetname(setno, &ep)) == NULL) {
891 "metasetnosetname(%d) returned NULL\n", setno);
902 if (sd == NULL) {
904 "metaget_setdesc(%d) returned NULL\n", setno);
918 for (node = sd->sd_nodelist; node != NULL; node = node->nd_next) {
924 node->nd_nodename ? node->nd_nodename : "NULL",
925 node->nd_priv_ic ? node->nd_priv_ic : "NULL",
931 node->nd_nodename ? node->nd_nodename : "NULL",
936 if (client[setno][nid] != (CLIENT *) NULL) {
939 node->nd_nodename ? node->nd_nodename : "NULL");
952 while ((client[setno][nid] == (CLIENT *) NULL) &&
967 if (client[setno][nid] == (CLIENT *) NULL) {
996 node->nd_nodename ? node->nd_nodename : "NULL");
1007 int *rpc_err = NULL;
1076 if (rpc_err == NULL) {
1085 if (client[setno][set_master] != (CLIENT *)NULL) {
1086 client[setno][set_master] = (CLIENT *)NULL;
1152 return (NULL);
1177 if (handler == NULL) {
1203 (void) mdmn_mark_completion(msg, NULL, MDMN_MCT_IN_PROGRESS);
1258 int *ret = NULL;
1283 while ((rpc_retries != 0) && (ret == NULL)) {
1312 if (client[setno][nid] == NULL) {
1318 commd_debug(MD_MMV_PROC_M, "client is NULL\n");
1329 if (ret != NULL) {
1337 " NULL \n",
1341 if ((ret == NULL) || (*ret == MDMNE_CANNOT_CONNECT) ||
1350 if (client[setno][nid] != (CLIENT *)NULL) {
1351 client[setno][nid] = (CLIENT *)NULL;
1367 ret = NULL;
1371 if (ret == NULL) {
1399 ret = NULL;
1436 client[setno][nid] = (CLIENT *)NULL;
1554 ret = (int *)NULL;
1566 if (ret == (int *)NULL) {
1586 assert(lr != NULL);
1589 msg = copy_msg(&(lr->lr_msg), NULL);
1609 if (smgen == NULL) {
1660 node = NULL;
1765 slave_result = (md_mn_result_t *)NULL;
1793 * If the result is NULL, or err doesn't show success,
1796 if ((slave_result == NULL) || (err != MDMNE_ACK)) {
1814 "result (%d,0x%llx-%d) is NULL\n",
1940 ret = (int *)NULL;
1952 if (ret == (int *)NULL) {
1983 (void) metaioctl(MD_IOCGUNIQMSGID, &dummyid, &mde, NULL);
2005 int *ret = NULL;
2041 if (handler == NULL) {
2064 (void) mdmn_mark_completion(msg, NULL,
2117 ret = (int *)NULL;
2132 * if mdmn_wakeup_master_2 returns NULL, it can be that
2141 if (ret == (int *)NULL) {
2143 "proc_sla: wakeup_master returned NULL\n");
2148 if (client[setno][sender] != (CLIENT *)NULL) {
2149 client[setno][sender] = (CLIENT *)NULL;
2173 if (ret != (int *)NULL)
2202 msg = copy_msg(omsg, NULL);
2355 (void) thr_create(NULL, 0, mdmn_send_to_work, (void *) matp,
2356 THR_DETACHED, NULL);
2390 msg = copy_msg(omsg, NULL);
2495 *retval = thr_create(NULL, 0,
2500 *retval = thr_create(NULL, 0,
2531 SVCXPRT *transp = NULL;
3156 if ((set_descriptor[setno] != NULL) &&
3173 if (client[setno][node->nd_nodeid] != (CLIENT *)NULL) {
3174 client[setno][node->nd_nodeid] = (CLIENT *)NULL;