Lines Matching refs:p
461 struct vmount *p; in uv__is_ahafs_mounted() local
468 p = uv__malloc(siz); in uv__is_ahafs_mounted()
469 if (p == NULL) in uv__is_ahafs_mounted()
473 rv = mntctl(MCTL_QUERY, siz, (char*)p); in uv__is_ahafs_mounted()
478 siz = *(int*)p; in uv__is_ahafs_mounted()
479 uv__free(p); in uv__is_ahafs_mounted()
480 p = uv__malloc(siz); in uv__is_ahafs_mounted()
481 if (p == NULL) in uv__is_ahafs_mounted()
483 rv = mntctl(MCTL_QUERY, siz, (char*)p); in uv__is_ahafs_mounted()
489 for(vmt = p, i = 0; i < rv; i++) { in uv__is_ahafs_mounted()
494 uv__free(p); /* Found a match */ in uv__is_ahafs_mounted()
510 char *p = NULL; in uv__makedir_p() local
519 for (p = tmp + 1; *p; p++) { in uv__makedir_p()
520 if (*p == '/') { in uv__makedir_p()
521 *p = 0; in uv__makedir_p()
525 *p = '/'; in uv__makedir_p()
538 char *p; in uv__make_subdirs_p() local
542 p = strrchr(filename, '/'); in uv__make_subdirs_p()
544 if (p == NULL) in uv__make_subdirs_p()
553 strncat(cmd, filename, (p - filename)); in uv__make_subdirs_p()
630 static int uv__skip_lines(char **p, int n) { in uv__skip_lines() argument
634 *p = strchr(*p, '\n'); in uv__skip_lines()
635 if (!p) in uv__skip_lines()
638 (*p)++; in uv__skip_lines()
656 char *p; in uv__parse_data() local
659 p = buf; in uv__parse_data()
681 if (uv__skip_lines(&p, 9) != 9) in uv__parse_data()
684 if (sscanf(p, "RC_FROM_EVPROD=%d\nEND_EVENT_DATA", &evp_rc) == 1) { in uv__parse_data()
695 if (uv__skip_lines(&p, 1) != 1) in uv__parse_data()
699 if (sscanf(p, "BEGIN_EVPROD_INFO\n%sEND_EVPROD_INFO", filename) == 1) { in uv__parse_data()
725 char *p; in uv__ahafs_event() local
756 p = handle->dir_filename; in uv__ahafs_event()
758 p = strrchr(handle->path, '/'); in uv__ahafs_event()
759 if (p == NULL) in uv__ahafs_event()
760 p = handle->path; in uv__ahafs_event()
762 p++; in uv__ahafs_event()
766 uv__strscpy(fname, p, sizeof(fname)); in uv__ahafs_event()
1120 struct ifreq *ifr, *p, flg; in uv_interface_addresses() local
1156 #define ADDR_SIZE(p) MAX((p).sa_len, sizeof(p)) in uv_interface_addresses() argument
1161 p = ifr; in uv_interface_addresses()
1165 if (!(p->ifr_addr.sa_family == AF_INET6 || in uv_interface_addresses()
1166 p->ifr_addr.sa_family == AF_INET)) in uv_interface_addresses()
1169 memcpy(flg.ifr_name, p->ifr_name, sizeof(flg.ifr_name)); in uv_interface_addresses()
1194 p = ifr; in uv_interface_addresses()
1198 if (!(p->ifr_addr.sa_family == AF_INET6 || in uv_interface_addresses()
1199 p->ifr_addr.sa_family == AF_INET)) in uv_interface_addresses()
1202 inet6 = (p->ifr_addr.sa_family == AF_INET6); in uv_interface_addresses()
1204 memcpy(flg.ifr_name, p->ifr_name, sizeof(flg.ifr_name)); in uv_interface_addresses()
1213 address->name = uv__strdup(p->ifr_name); in uv_interface_addresses()
1216 address->address.address6 = *((struct sockaddr_in6*) &p->ifr_addr); in uv_interface_addresses()
1218 address->address.address4 = *((struct sockaddr_in*) &p->ifr_addr); in uv_interface_addresses()
1222 r = uv__strscpy(if6.ifr_name, p->ifr_name, sizeof(if6.ifr_name)); in uv_interface_addresses()
1226 memcpy(&if6.ifr_Addr, &p->ifr_addr, sizeof(if6.ifr_Addr)); in uv_interface_addresses()
1233 if (ioctl(sockfd, SIOCGIFNETMASK, p) == -1) in uv_interface_addresses()
1235 address->netmask.netmask4 = *((struct sockaddr_in*) &p->ifr_addr); in uv_interface_addresses()
1248 p = ifr; in uv_interface_addresses()
1252 if (p->ifr_addr.sa_family != AF_LINK) in uv_interface_addresses()
1257 if (strcmp(address->name, p->ifr_name) == 0) { in uv_interface_addresses()
1258 sa_addr = (struct sockaddr_dl*) &p->ifr_addr; in uv_interface_addresses()