1
0
mirror of https://sourceware.org/git/glibc.git synced 2025-07-28 00:21:52 +03:00

resolv: Move res_randomid to its own file

This commit is contained in:
Florian Weimer
2017-06-19 13:17:03 +02:00
parent ca3d65ff69
commit 26bf5a1029
4 changed files with 99 additions and 8 deletions

View File

@ -479,13 +479,6 @@ net_mask (struct in_addr in)
return (htonl(IN_CLASSC_NET));
}
u_int
res_randomid(void) {
return 0xffff & __getpid();
}
libc_hidden_def (__res_randomid)
/*
* This routine is for closing the socket if a virtual circuit is used and
* the program wants to close it. This provides support for endhostent()