1
0
mirror of https://sourceware.org/git/glibc.git synced 2025-12-24 17:51:17 +03:00
2000-03-23  Ulrich Drepper  <drepper@redhat.com>

	* resolv/netdb.h (SCOPE_DELIMITER): New definitions.
	* inet/netinet/in.h (struct sockaddr_in6): Add sin6_scope_id
	according to RFC 2553.
	* sysdeps/posix/getaddrinfo.c: Change to follow latest RFC draft.
	* inet/getnameinfo.c: Likewise.
	Patches by YOSHIFUJI Hideaki <yoshfuji@v6.linux.or.jp>.
This commit is contained in:
Ulrich Drepper
2000-03-23 22:16:37 +00:00
parent c0bc5f7b8f
commit 383052e98c
5 changed files with 27 additions and 0 deletions

View File

@@ -223,3 +223,15 @@ int __pthread_once(pthread_once_t * once_control, void (*init_routine)(void))
return 0;
}
strong_alias (__pthread_once, pthread_once)
/*
* This is called in the child process after a fork to make
* sure that the global mutex pthread_once is not held,
* and that the condition variable is reset to an initial state.
*/
void __pthread_reset_pthread_once(void)
{
pthread_mutex_init(&once_masterlock, NULL);
pthread_cond_init(&once_finished, NULL);
}