[PATCH glibc 2/2] mach: fix typo

2015-06-06 Thread Justus Winter
* mach/mach/mach_traps.h (thread_switch): Fix typo in comment. --- mach/mach/mach_traps.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/mach/mach/mach_traps.h b/mach/mach/mach_traps.h index 8b8765e..c778caa 100644 --- a/mach/mach/mach_traps.h +++ b/mach/mach/mach_traps.h @@

Re: mach_task_self, mach_thread_self, mach_host_self

2015-06-06 Thread Justus Winter
Something along these lines? The patch is untested. It compiles fine of course, but despite my best efforts and 8+ hours of cpu time my box failed to build libc packages :/ Justus

[PATCH glibc 1/2] mach: cache the host port

2015-06-06 Thread Justus Winter
Cache the host port like we cache the task port. This way we do not need to call the kernel just to get the port. Furthermore, we no longer increase the reference count on every invocation of `mach_host_self'. * mach/mach/mach_traps.h (__mach_host_self, mach_host_self): Protect declarations

Re: [PATCH glibc 2/2] mach: fix typo

2015-06-06 Thread Samuel Thibault
Justus Winter, le Sat 06 Jun 2015 11:27:41 +0200, a écrit : * mach/mach/mach_traps.h (thread_switch): Fix typo in comment. Applied, thanks. Samuel