Lines Matching refs:p
420 char *p, buf[512]; in kvp_get_os_info() local
434 p = strchr(os_version, '-'); in kvp_get_os_info()
435 if (p) in kvp_get_os_info()
436 *p = '\0'; in kvp_get_os_info()
452 p = strchr(buf, '='); in kvp_get_os_info()
453 if (!p) in kvp_get_os_info()
455 *p++ = 0; in kvp_get_os_info()
458 value = p; in kvp_get_os_info()
459 q = p; in kvp_get_os_info()
460 while (*p) { in kvp_get_os_info()
461 if (*p == '\\') { in kvp_get_os_info()
462 ++p; in kvp_get_os_info()
463 if (!*p) in kvp_get_os_info()
465 *q++ = *p++; in kvp_get_os_info()
466 } else if (*p == '\'' || *p == '"' || in kvp_get_os_info()
467 *p == '\n') { in kvp_get_os_info()
468 ++p; in kvp_get_os_info()
470 *q++ = *p++; in kvp_get_os_info()
476 p = strdup(value); in kvp_get_os_info()
477 if (!p) in kvp_get_os_info()
479 os_name = p; in kvp_get_os_info()
481 p = strdup(value); in kvp_get_os_info()
482 if (!p) in kvp_get_os_info()
484 os_major = p; in kvp_get_os_info()
506 p = fgets(buf, sizeof(buf), file); in kvp_get_os_info()
507 if (p) { in kvp_get_os_info()
508 p = strchr(buf, '\n'); in kvp_get_os_info()
509 if (p) in kvp_get_os_info()
510 *p = '\0'; in kvp_get_os_info()
511 p = strdup(buf); in kvp_get_os_info()
512 if (!p) in kvp_get_os_info()
514 os_name = p; in kvp_get_os_info()
517 p = fgets(buf, sizeof(buf), file); in kvp_get_os_info()
518 if (p) { in kvp_get_os_info()
519 p = strchr(buf, '\n'); in kvp_get_os_info()
520 if (p) in kvp_get_os_info()
521 *p = '\0'; in kvp_get_os_info()
522 p = strdup(buf); in kvp_get_os_info()
523 if (!p) in kvp_get_os_info()
525 os_major = p; in kvp_get_os_info()
528 p = fgets(buf, sizeof(buf), file); in kvp_get_os_info()
529 if (p) { in kvp_get_os_info()
530 p = strchr(buf, '\n'); in kvp_get_os_info()
531 if (p) in kvp_get_os_info()
532 *p = '\0'; in kvp_get_os_info()
533 p = strdup(buf); in kvp_get_os_info()
534 if (p) in kvp_get_os_info()
535 os_minor = p; in kvp_get_os_info()
560 char *p, *x; in kvp_get_if_name() local
580 p = fgets(buf, sizeof(buf), file); in kvp_get_if_name()
581 if (p) { in kvp_get_if_name()
582 x = strchr(p, '\n'); in kvp_get_if_name()
586 if (!strcmp(p, guid)) { in kvp_get_if_name()
610 char *p, *x; in kvp_if_name_to_mac() local
623 p = fgets(buf, sizeof(buf), file); in kvp_if_name_to_mac()
624 if (p) { in kvp_if_name_to_mac()
625 x = strchr(p, '\n'); in kvp_if_name_to_mac()
628 for (i = 0; i < strlen(p); i++) in kvp_if_name_to_mac()
629 p[i] = toupper(p[i]); in kvp_if_name_to_mac()
630 mac_addr = strdup(p); in kvp_if_name_to_mac()
642 char *p; in kvp_process_ipconfig_file() local
655 while ((p = fgets(buf, sizeof(buf), file)) != NULL) { in kvp_process_ipconfig_file()
659 x = strchr(p, '\n'); in kvp_process_ipconfig_file()
663 strcat(config_buf, p); in kvp_process_ipconfig_file()
674 char *p; in kvp_get_ipconfig_info() local
740 p = fgets(dhcp_info, sizeof(dhcp_info), file); in kvp_get_ipconfig_info()
741 if (p == NULL) { in kvp_get_ipconfig_info()
746 if (!strncmp(p, "Enabled", 7)) in kvp_get_ipconfig_info()
951 char *p, *x; in kvp_mac_to_ip() local
973 p = fgets(buf, sizeof(buf), file); in kvp_mac_to_ip()
975 if (!p) in kvp_mac_to_ip()
978 x = strchr(p, '\n'); in kvp_mac_to_ip()
982 for (i = 0; i < strlen(p); i++) in kvp_mac_to_ip()
983 p[i] = toupper(p[i]); in kvp_mac_to_ip()
985 if (strcmp(p, mac)) in kvp_mac_to_ip()
1541 char *p; in main() local
1656 p = (char *)hv_msg->body.kvp_register.version; in main()
1657 lic_version = malloc(strlen(p) + 1); in main()
1659 strcpy(lic_version, p); in main()