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 Remove trailing whitespace from mach/*.sub. 2013-06-10 22:47:08 +00:00
err_ipc.sub Remove trailing whitespace from mach/*.sub. 2013-06-10 22:47:08 +00:00
err_kern.sub * hurd/hurdmalloc.c: Remove $ tag $ magic. 2005-12-06 01:24:30 +00:00
err_mach.sub Remove trailing whitespace from mach/*.sub. 2013-06-10 22:47:08 +00:00
err_server.sub * hurd/hurdmalloc.c: Remove $ tag $ magic. 2005-12-06 01:24:30 +00:00
err_us.sub * hurd/hurdmalloc.c: Remove $ tag $ magic. 2005-12-06 01:24:30 +00:00
error_compat.c * hurd/hurdmalloc.c: Remove $ tag $ magic. 2005-12-06 01:24:30 +00:00
errorlib.h * hurd/hurdmalloc.c: Remove $ tag $ magic. 2005-12-06 01:24:30 +00:00
errstring.c * hurd/hurdmalloc.c: Remove $ tag $ magic. 2005-12-06 01:24:30 +00:00
errsystems.awk * mach/errsystems.awk: Include <errno.h> in generated output. 2003-02-16 03:55:27 +00:00
lock-intern.h Update copyright dates with scripts/update-copyrights. 2015-01-02 16:29:47 +00:00
mach_error.c * hurd/hurdmalloc.c: Remove $ tag $ magic. 2005-12-06 01:24:30 +00:00
mach_error.h * hurd/hurdmalloc.c: Remove $ tag $ magic. 2005-12-06 01:24:30 +00:00
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 initial import 1995-02-18 01:27:10 +00:00
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 Fix leading whitespaces. 2013-06-06 20:36:07 +02:00
msg.c * sysdeps/mach/hurd/times.c: Fix typo in last change. 2002-02-19 00:22:30 +00:00
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 2005-08-05 Roland McGrath <roland@redhat.com> 2005-08-08 20:52:23 +00:00
spin-lock.c initial import 1995-02-18 01:27:10 +00:00
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 initial import 1995-02-18 01:27:10 +00:00
Versions Remove obsolete SHLIB_COMPAT conditionalization in Versions files. 2014-02-22 01:19:45 -08:00