mirror of
https://sourceware.org/git/glibc.git
synced 2024-11-25 14:30:06 +00:00
b44c1e1252
Create a private hidden __hurd_thread_self alias, and use that one. Fixes2f8ecb58a5
"hurd: Fix x86_64 _hurd_tls_fork" andc7fcce38c8
"hurd: Make sure to not use tcb->self" Reported-by: Joseph Myers <joseph@codesourcery.com> Signed-off-by: Sergey Bugaev <bugaevc@gmail.com>
19 lines
458 B
C
19 lines
458 B
C
#ifndef _HURD_H
|
|
#include_next <hurd.h>
|
|
|
|
void _hurd_libc_proc_init (char **argv);
|
|
|
|
/* Like __USEPORT, but cleans fd on cancel. */
|
|
#define __USEPORT_CANCEL(which, expr) \
|
|
HURD_PORT_USE_CANCEL (&_hurd_ports[INIT_PORT_##which], (expr))
|
|
|
|
#ifndef _ISOMAC
|
|
libc_hidden_proto (_hurd_exec_paths)
|
|
libc_hidden_proto (_hurd_init)
|
|
libc_hidden_proto (_hurd_libc_proc_init)
|
|
|
|
extern thread_t __hurd_thread_self (void);
|
|
libc_hidden_proto (__hurd_thread_self)
|
|
#endif
|
|
#endif
|