glibc/mach
Justus Winter bb95a72318 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 against the macro expansion.
* mach/mach_init.c (__mach_host_self_): New variable.
(mach_init): Initialize `__mach_host_self_'.
* mach/mach_init.h (__mach_host_self_): New declaration.
(__mach_host_self, mach_host_self): New macros.
* sysdeps/mach/hurd/dl-sysdep.c (_dl_sysdep_start_cleanup):
Release reference.
2015-09-16 19:41:36 +02:00
..
mach Cache the host port like we cache the task port 2015-09-16 19:41:36 +02:00
devstream.c Update copyright dates with scripts/update-copyrights. 2015-01-02 16:29:47 +00:00
err_boot.sub
err_ipc.sub
err_kern.sub
err_mach.sub
err_server.sub
err_us.sub
error_compat.c
errorlib.h
errstring.c
errsystems.awk
lock-intern.h Update copyright dates with scripts/update-copyrights. 2015-01-02 16:29:47 +00:00
mach_error.c
mach_error.h
mach_init.c Cache the host port like we cache the task port 2015-09-16 19:41:36 +02:00
mach_init.h Cache the host port like we cache the task port 2015-09-16 19:41:36 +02:00
mach.h Update copyright dates with scripts/update-copyrights. 2015-01-02 16:29:47 +00:00
Machrules Update copyright dates with scripts/update-copyrights. 2015-01-02 16:29:47 +00:00
Makefile Update copyright dates with scripts/update-copyrights. 2015-01-02 16:29:47 +00:00
mig_strncpy.c
mig-alloc.c Update copyright dates with scripts/update-copyrights. 2015-01-02 16:29:47 +00:00
mig-dealloc.c Update copyright dates with scripts/update-copyrights. 2015-01-02 16:29:47 +00:00
mig-reply.c Update copyright dates with scripts/update-copyrights. 2015-01-02 16:29:47 +00:00
msg-destroy.c
msg.c
msgserver.c Update copyright dates with scripts/update-copyrights. 2015-01-02 16:29:47 +00:00
mutex-init.c Update copyright dates with scripts/update-copyrights. 2015-01-02 16:29:47 +00:00
mutex-solid.c Update copyright dates with scripts/update-copyrights. 2015-01-02 16:29:47 +00:00
setup-thread.c Update copyright dates with scripts/update-copyrights. 2015-01-02 16:29:47 +00:00
shortcut.awk
spin-lock.c
spin-lock.h Update copyright dates with scripts/update-copyrights. 2015-01-02 16:29:47 +00:00
spin-solid.c Update copyright dates with scripts/update-copyrights. 2015-01-02 16:29:47 +00:00
syscalls.awk
Versions