Home
last modified time | relevance | path

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

/titanic_41/usr/src/lib/libbc/libc/net/
H A Dbindresvport.c47 #define NPORTS (ENDPORT - STARTPORT + 1) in bindresvport() macro
58 port = (getpid() % NPORTS) + STARTPORT; in bindresvport()
62 for (i = 0; i < NPORTS && res < 0 && errno == EADDRINUSE; i++) { in bindresvport()
/titanic_41/usr/src/cmd/ssh/libopenbsd-compat/common/
H A Dbindresvport.c50 #define NPORTS (ENDPORT - STARTPORT + 1) macro
99 port = (arc4random() % NPORTS) + STARTPORT;
104 for(i = 0; i < NPORTS; i++) {
/titanic_41/usr/src/lib/librpcsvc/common/
H A Dbindresvport.c55 #define NPORTS (ENDPORT - STARTPORT + 1) macro
158 port = (getpid() % NPORTS) + STARTPORT;
160 for (i = 0; i < NPORTS; i++) {
/titanic_41/usr/src/lib/libnsl/rpc/
H A Drpc_soc.c293 #define NPORTS (ENDPORT - STARTPORT + 1) in __rpc_bindresvport_ipv6() macro
343 port = (getpid() % NPORTS) + STARTPORT; in __rpc_bindresvport_ipv6()
344 for (i = 0; i < NPORTS; i++) { in __rpc_bindresvport_ipv6()