Lines Matching refs:needed
218 size_t needed; in Index2Nam() local
237 if (sysctl(mib, 6, NULL, &needed, NULL, 0) < 0) { in Index2Nam()
242 if ((buf = malloc(needed)) == NULL) in Index2Nam()
244 if (sysctl(mib, 6, buf, &needed, NULL, 0) < 0) { in Index2Nam()
248 end = buf + needed; in Index2Nam()
338 size_t needed; in route_Show() local
347 if (sysctl(mib, 6, NULL, &needed, NULL, 0) < 0) { in route_Show()
351 sp = malloc(needed); in route_Show()
354 if (sysctl(mib, 6, sp, &needed, NULL, 0) < 0) { in route_Show()
359 ep = sp + needed; in route_Show()
391 size_t needed; in route_IfDelete() local
403 if (sysctl(mib, 6, NULL, &needed, NULL, 0) < 0) { in route_IfDelete()
409 sp = malloc(needed); in route_IfDelete()
413 if (sysctl(mib, 6, sp, &needed, NULL, 0) < 0) { in route_IfDelete()
419 ep = sp + needed; in route_IfDelete()
482 size_t needed; in route_UpdateMTU() local
494 if (sysctl(mib, 6, NULL, &needed, NULL, 0) < 0) { in route_UpdateMTU()
500 sp = malloc(needed); in route_UpdateMTU()
504 if (sysctl(mib, 6, sp, &needed, NULL, 0) < 0) { in route_UpdateMTU()
510 ep = sp + needed; in route_UpdateMTU()