Searched refs:NPORTS (Results 1 – 4 of 4) sorted by relevance
47 #define NPORTS (ENDPORT - STARTPORT + 1) in bindresvport() macro58 port = (getpid() % NPORTS) + STARTPORT; in bindresvport()62 for (i = 0; i < NPORTS && res < 0 && errno == EADDRINUSE; i++) { in bindresvport()
50 #define NPORTS (ENDPORT - STARTPORT + 1) macro99 port = (arc4random() % NPORTS) + STARTPORT;104 for(i = 0; i < NPORTS; i++) {
55 #define NPORTS (ENDPORT - STARTPORT + 1) macro158 port = (getpid() % NPORTS) + STARTPORT;160 for (i = 0; i < NPORTS; i++) {
293 #define NPORTS (ENDPORT - STARTPORT + 1) in __rpc_bindresvport_ipv6() macro343 port = (getpid() % NPORTS) + STARTPORT; in __rpc_bindresvport_ipv6()344 for (i = 0; i < NPORTS; i++) { in __rpc_bindresvport_ipv6()