glibc/sysdeps/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
..
hurd Cache the host port like we cache the task port 2015-09-16 19:41:36 +02:00
i386 Update copyright dates with scripts/update-copyrights. 2015-01-02 16:29:47 +00:00
sys * hurd/hurdmalloc.c: Remove $ tag $ magic. 2005-12-06 01:24:30 +00:00
_strerror.c Update copyright dates with scripts/update-copyrights. 2015-01-02 16:29:47 +00:00
adjtime.c Update copyright dates with scripts/update-copyrights. 2015-01-02 16:29:47 +00:00
configure Check sysheaders when looking for Mach and Hurd headers 2015-09-06 20:56:18 +02:00
configure.ac Check sysheaders when looking for Mach and Hurd headers 2015-09-06 20:56:18 +02:00
getloadavg.c Update copyright dates with scripts/update-copyrights. 2015-01-02 16:29:47 +00:00
getpagesize.c Update copyright dates with scripts/update-copyrights. 2015-01-02 16:29:47 +00:00
getsysstats.c Update copyright dates with scripts/update-copyrights. 2015-01-02 16:29:47 +00:00
gettimeofday.c Update copyright dates with scripts/update-copyrights. 2015-01-02 16:29:47 +00:00
libc-lock.h Move bits/libc-lock.h and bits/libc-lockP.h out of bits/ (bug 14912). 2015-09-08 21:11:03 +00:00
Makefile Fix parallel build of before-compile targets. 2015-09-08 01:26:01 +02:00
mprotect.c Update copyright dates with scripts/update-copyrights. 2015-01-02 16:29:47 +00:00
msync.c Update copyright dates with scripts/update-copyrights. 2015-01-02 16:29:47 +00:00
munmap.c Update copyright dates with scripts/update-copyrights. 2015-01-02 16:29:47 +00:00
nanosleep.c Update copyright dates with scripts/update-copyrights. 2015-01-02 16:29:47 +00:00
pagecopy.h Update copyright dates with scripts/update-copyrights. 2015-01-02 16:29:47 +00:00
readonly-area.c Update copyright dates with scripts/update-copyrights. 2015-01-02 16:29:47 +00:00
sched_yield.c Update copyright dates with scripts/update-copyrights. 2015-01-02 16:29:47 +00:00
sleep.c Update copyright dates with scripts/update-copyrights. 2015-01-02 16:29:47 +00:00
strerror_l.c Update copyright dates with scripts/update-copyrights. 2015-01-02 16:29:47 +00:00
Subdirs * Makefile (subdir-target-args): New variable. 2006-02-28 07:11:04 +00:00
sysdep.h Update copyright dates with scripts/update-copyrights. 2015-01-02 16:29:47 +00:00
thread_state.h Update copyright dates with scripts/update-copyrights. 2015-01-02 16:29:47 +00:00
usleep.c Update copyright dates with scripts/update-copyrights. 2015-01-02 16:29:47 +00:00
xpg-strerror.c Update copyright dates with scripts/update-copyrights. 2015-01-02 16:29:47 +00:00