Lines Matching defs:error

127 		syslog(LOG_ERR, "Failed to acquire the lock pool: %d; error: %d %s", pool,
139 syslog(LOG_ERR, "Failed to release the lock pool: %d; error: %d %s", pool,
157 syslog(LOG_ERR, "Failed to open file, pool: %d; error: %d %s", pool,
188 syslog(LOG_ERR, "Failed to open file, pool: %d; error: %d %s", pool,
201 "Failed to read file, pool: %d; error: %d %s",
241 syslog(LOG_ERR, "Failed to create '%s'; error: %d %s", KVP_CONFIG_LOC,
810 int error = 0;
882 error = kvp_process_ip_address(
889 if (error)
927 error = kvp_process_ip_address(curp->ifa_addr,
931 if (error)
939 return error;
956 int error = HV_E_FAIL;
996 error = kvp_get_ip_info(0, if_name, KVP_OP_GET_IP_INFO,
999 if (!error && strlen((char *)kvp_ip_val->ip_addr))
1004 return error;
1098 int error = 0;
1165 error = kvp_write_file(f, str, sub_str, addr);
1166 if (error)
1167 return error;
1205 int error, i = 0;
1227 error = fprintf(f, "address%d=%s/%d\n", ++i, (char *)addr,
1229 if (error < 0)
1230 return error;
1241 int error = 0;
1332 syslog(LOG_ERR, "Failed to open config file; error: %d %s",
1343 syslog(LOG_ERR, "Failed to open config file; error: %d %s",
1355 error = HV_E_FAIL;
1359 error = kvp_write_file(ifcfg_file, "HWADDR", "", mac_addr);
1360 if (error < 0)
1363 error = kvp_write_file(ifcfg_file, "DEVICE", "", if_name);
1364 if (error < 0)
1367 error = fprintf(nmfile, "\n[connection]\n");
1368 if (error < 0)
1371 error = kvp_write_file(nmfile, "interface-name", "", if_name);
1372 if (error)
1375 error = fprintf(nmfile, "\n[ethernet]\n");
1376 if (error < 0)
1379 error = kvp_write_file(nmfile, "mac-address", "", mac_addr);
1380 if (error)
1396 error = kvp_write_file(ifcfg_file, "BOOTPROTO", "", "dhcp");
1397 if (error)
1400 error = kvp_write_file(ifcfg_file, "BOOTPROTO", "", "none");
1401 if (error)
1405 error = process_ip_string(ifcfg_file, (char *)new_val->ip_addr,
1407 if (error)
1410 error = process_ip_string(ifcfg_file, (char *)new_val->sub_net,
1412 if (error)
1415 error = process_ip_string(ifcfg_file, (char *)new_val->gate_way,
1417 if (error)
1420 error = process_ip_string(ifcfg_file, (char *)new_val->dns_addr, DNS);
1421 if (error)
1425 error = fprintf(nmfile, "\n[ipv6]\n");
1426 if (error < 0)
1430 error = fprintf(nmfile, "\n[ipv4]\n");
1431 if (error < 0)
1440 error = kvp_write_file(nmfile, "method", "", "auto");
1441 if (error < 0)
1444 error = kvp_write_file(nmfile, "method", "", "manual");
1445 if (error < 0)
1453 error = process_ip_string_nm(nmfile, (char *)new_val->ip_addr,
1455 if (error < 0)
1460 error = fprintf(nmfile, "gateway=%s\n", (char *)new_val->gate_way);
1461 if (error < 0)
1466 error = fprintf(nmfile, "dns=%s\n", (char *)new_val->dns_addr);
1467 if (error < 0)
1491 syslog(LOG_ERR, "Failed to execute cmd '%s'; error: %d %s",
1502 return error;
1510 int error = 0;
1518 error = getaddrinfo(buffer, NULL, &hints, &info);
1519 if (error != 0) {
1521 error, gai_strerror(error));
1539 int error;
1600 syslog(LOG_ERR, "open /dev/vmbus/hv_kvp failed; error: %d %s",
1611 syslog(LOG_ERR, "registration to kernel failed; error: %d %s",
1624 syslog(LOG_ERR, "poll failed; error: %d %s", errno, strerror(errno));
1636 syslog(LOG_ERR, "read failed; error:%d %s",
1643 * the error from this daemon. So, first copy the state
1644 * and set the error code to success.
1648 hv_msg->error = HV_S_OK;
1672 error = kvp_mac_to_ip(kvp_ip_val);
1674 if (error)
1675 hv_msg->error = error;
1686 * interface name; return error.
1688 hv_msg->error = HV_GUID_NOTFOUND;
1691 error = kvp_set_ip_info(if_name, kvp_ip_val);
1692 if (error)
1693 hv_msg->error = error;
1704 hv_msg->error = HV_S_CONT;
1713 hv_msg->error = HV_S_CONT;
1720 hv_msg->error = HV_S_CONT;
1742 hv_msg->error = HV_S_CONT;
1793 hv_msg->error = HV_S_CONT;
1799 * return an error due to hibernation; we can ignore the error
1805 syslog(LOG_ERR, "write failed; error: %d %s", errno,