mirror of
https://git.rtems.org/rtems-libbsd/
synced 2025-10-14 07:15:58 +08:00
Update to FreeBSD head 2017-10-01
Git mirror commit b2f0376b45428f13151d229c5ae9d4d8f74acbd1. Update #3472.
This commit is contained in:
@@ -37,7 +37,7 @@
|
||||
* in the source code. This is because RFC2553 is silent about which error
|
||||
* code must be returned for which situation.
|
||||
* - freeaddrinfo(NULL). RFC2553 is silent about it. XNET 5.2 says it is
|
||||
* invalid. current code - SEGV on freeaddrinfo(NULL)
|
||||
* invalid. Current code accepts NULL to be compatible with other OSes.
|
||||
*
|
||||
* Note:
|
||||
* - The code filters out AFs that are not supported by the kernel,
|
||||
@@ -361,14 +361,13 @@ freeaddrinfo(struct addrinfo *ai)
|
||||
{
|
||||
struct addrinfo *next;
|
||||
|
||||
do {
|
||||
while (ai != NULL) {
|
||||
next = ai->ai_next;
|
||||
if (ai->ai_canonname)
|
||||
free(ai->ai_canonname);
|
||||
free(ai->ai_canonname);
|
||||
/* no need to free(ai->ai_addr) */
|
||||
free(ai);
|
||||
ai = next;
|
||||
} while (ai);
|
||||
}
|
||||
}
|
||||
|
||||
static int
|
||||
|
@@ -93,6 +93,7 @@ int expand_number(const char *_buf, uint64_t *_num);
|
||||
int extattr_namespace_to_string(int _attrnamespace, char **_string);
|
||||
int extattr_string_to_namespace(const char *_string, int *_attrnamespace);
|
||||
int flopen(const char *_path, int _flags, ...);
|
||||
int flopenat(int _dirfd, const char *_path, int _flags, ...);
|
||||
int forkpty(int *_amaster, char *_name,
|
||||
struct termios *_termp, struct winsize *_winp);
|
||||
void hexdump(const void *_ptr, int _length, const char *_hdr, int _flags);
|
||||
|
Reference in New Issue
Block a user