Home
last modified time | relevance | path

Searched refs:cur (Results 1 – 4 of 4) sorted by relevance

/libuv/src/unix/
H A Dibmi.c396 struct ifaddrs_pase *ifap = NULL, *cur; in uv_interface_addresses()
406 for (cur = ifap; cur; cur = cur->ifa_next) { in uv_interface_addresses()
407 if (!(cur->ifa_addr->sa_family == AF_INET6 || in uv_interface_addresses()
408 cur->ifa_addr->sa_family == AF_INET)) in uv_interface_addresses()
411 if (!(cur->ifa_flags & IFF_UP && cur->ifa_flags & IFF_RUNNING)) in uv_interface_addresses()
431 for (cur = ifap; cur; cur = cur->ifa_next) { in uv_interface_addresses()
432 if (!(cur->ifa_addr->sa_family == AF_INET6 || in uv_interface_addresses()
433 cur->ifa_addr->sa_family == AF_INET)) in uv_interface_addresses()
436 if (!(cur->ifa_flags & IFF_UP && cur->ifa_flags & IFF_RUNNING)) in uv_interface_addresses()
439 address->name = uv__strdup(cur->ifa_name); in uv_interface_addresses()
[all …]
H A Dfreebsd.c185 cur = 0; in uv_cpu_info() local
260 cpu_info->cpu_times.user = (uint64_t)(cp_times[CP_USER+cur]) * multiplier; in uv_cpu_info()
261 cpu_info->cpu_times.nice = (uint64_t)(cp_times[CP_NICE+cur]) * multiplier; in uv_cpu_info()
262 cpu_info->cpu_times.sys = (uint64_t)(cp_times[CP_SYS+cur]) * multiplier; in uv_cpu_info()
263 cpu_info->cpu_times.idle = (uint64_t)(cp_times[CP_IDLE+cur]) * multiplier; in uv_cpu_info()
264 cpu_info->cpu_times.irq = (uint64_t)(cp_times[CP_INTR+cur]) * multiplier; in uv_cpu_info()
269 cur+=CPUSTATES; in uv_cpu_info()
H A Dnetbsd.c188 unsigned int cur = 0; in uv_cpu_info() local
230 cpu_info->cpu_times.user = (uint64_t)(cp_times[CP_USER+cur]) * multiplier; in uv_cpu_info()
231 cpu_info->cpu_times.nice = (uint64_t)(cp_times[CP_NICE+cur]) * multiplier; in uv_cpu_info()
232 cpu_info->cpu_times.sys = (uint64_t)(cp_times[CP_SYS+cur]) * multiplier; in uv_cpu_info()
233 cpu_info->cpu_times.idle = (uint64_t)(cp_times[CP_IDLE+cur]) * multiplier; in uv_cpu_info()
234 cpu_info->cpu_times.irq = (uint64_t)(cp_times[CP_INTR+cur]) * multiplier; in uv_cpu_info()
237 cur += CPUSTATES; in uv_cpu_info()
/libuv/src/
H A Dinet.c71 struct { int base, len; } best, cur; in inet_ntop6() local
85 cur.base = -1; in inet_ntop6()
86 cur.len = 0; in inet_ntop6()
89 if (cur.base == -1) in inet_ntop6()
90 cur.base = i, cur.len = 1; in inet_ntop6()
92 cur.len++; in inet_ntop6()
94 if (cur.base != -1) { in inet_ntop6()
96 best = cur; in inet_ntop6()
97 cur.base = -1; in inet_ntop6()
101 if (cur.base != -1) { in inet_ntop6()
[all …]

Completed in 13 milliseconds