diff options
author | Samuel Thibault <samuel.thibault@ens-lyon.org> | 2016-10-09 20:05:49 +0200 |
---|---|---|
committer | Samuel Thibault <samuel.thibault@ens-lyon.org> | 2016-10-09 20:05:49 +0200 |
commit | f74b54f0680d4769e5f8272a5c740f74e140c806 (patch) | |
tree | b42cf500ef1f6f2f13b429f72d34a426c6b82b65 /mach | |
parent | 28e51f33a0ec3467f71fff3998f323a96cfcf313 (diff) | |
parent | e363f1648534a412603268f493e3089058feef21 (diff) |
Merge commit 'refs/top-bases/t/gsync-libc' into t/gsync-libc
Diffstat (limited to 'mach')
-rw-r--r-- | mach/Machrules | 2 | ||||
-rw-r--r-- | mach/Makefile | 2 | ||||
-rw-r--r-- | mach/Versions | 3 | ||||
-rw-r--r-- | mach/devstream.c | 2 | ||||
-rw-r--r-- | mach/lock-intern.h | 2 | ||||
-rw-r--r-- | mach/mach.h | 2 | ||||
-rw-r--r-- | mach/mach/mach_traps.h | 9 | ||||
-rw-r--r-- | mach/mach/mig_support.h | 2 | ||||
-rw-r--r-- | mach/mach_init.c | 4 | ||||
-rw-r--r-- | mach/mach_init.h | 7 | ||||
-rw-r--r-- | mach/mig-alloc.c | 2 | ||||
-rw-r--r-- | mach/mig-dealloc.c | 2 | ||||
-rw-r--r-- | mach/mig-reply.c | 2 | ||||
-rw-r--r-- | mach/msg-destroy.c | 11 | ||||
-rw-r--r-- | mach/msgserver.c | 10 | ||||
-rw-r--r-- | mach/mutex-init.c | 2 | ||||
-rw-r--r-- | mach/mutex-solid.c | 2 | ||||
-rw-r--r-- | mach/setup-thread.c | 2 | ||||
-rw-r--r-- | mach/spin-lock.h | 2 | ||||
-rw-r--r-- | mach/spin-solid.c | 2 |
20 files changed, 39 insertions, 33 deletions
diff --git a/mach/Machrules b/mach/Machrules index 297794a3ad..acea1289b2 100644 --- a/mach/Machrules +++ b/mach/Machrules @@ -1,5 +1,5 @@ # Rules for MiG interfaces that want to go into the C library. -# Copyright (C) 1991-2015 Free Software Foundation, Inc. +# Copyright (C) 1991-2016 Free Software Foundation, Inc. # This file is part of the GNU C Library. # The GNU C Library is free software; you can redistribute it and/or diff --git a/mach/Makefile b/mach/Makefile index d76f751cc0..308099090d 100644 --- a/mach/Makefile +++ b/mach/Makefile @@ -1,4 +1,4 @@ -# Copyright (C) 1991-2015 Free Software Foundation, Inc. +# Copyright (C) 1991-2016 Free Software Foundation, Inc. # This file is part of the GNU C Library. # The GNU C Library is free software; you can redistribute it and/or diff --git a/mach/Versions b/mach/Versions index 45260c7c0a..0097aad59b 100644 --- a/mach/Versions +++ b/mach/Versions @@ -54,6 +54,9 @@ libc { # This was always there, but not exported as it should have been. mig_strncpy; } + GLIBC_2.23 { + __mach_host_self_; + } HURD_CTHREADS_0.3 { __mutex_init; __mutex_lock; __mutex_lock_solid; __mutex_trylock; diff --git a/mach/devstream.c b/mach/devstream.c index 032e486523..ba1c01b4e0 100644 --- a/mach/devstream.c +++ b/mach/devstream.c @@ -1,6 +1,6 @@ /* stdio on a Mach device port. Translates \n to \r\n on output, echos and translates \r to \n on input. - Copyright (C) 1992-2015 Free Software Foundation, Inc. + Copyright (C) 1992-2016 Free Software Foundation, Inc. This file is part of the GNU C Library. The GNU C Library is free software; you can redistribute it and/or diff --git a/mach/lock-intern.h b/mach/lock-intern.h index 8776f85efe..32c83b9786 100644 --- a/mach/lock-intern.h +++ b/mach/lock-intern.h @@ -1,4 +1,4 @@ -/* Copyright (C) 1994-2015 Free Software Foundation, Inc. +/* Copyright (C) 1994-2016 Free Software Foundation, Inc. This file is part of the GNU C Library. The GNU C Library is free software; you can redistribute it and/or diff --git a/mach/mach.h b/mach/mach.h index 41479f61cc..7ea8a64733 100644 --- a/mach/mach.h +++ b/mach/mach.h @@ -1,5 +1,5 @@ /* Standard header for all Mach programs. - Copyright (C) 1993-2015 Free Software Foundation, Inc. + Copyright (C) 1993-2016 Free Software Foundation, Inc. This file is part of the GNU C Library. The GNU C Library is free software; you can redistribute it and/or diff --git a/mach/mach/mach_traps.h b/mach/mach/mach_traps.h index 53ec21e2d2..10dd3703f2 100644 --- a/mach/mach/mach_traps.h +++ b/mach/mach/mach_traps.h @@ -1,4 +1,4 @@ -/* Copyright (C) 1994-2015 Free Software Foundation, Inc. +/* Copyright (C) 1994-2016 Free Software Foundation, Inc. This file is part of the GNU C Library. The GNU C Library is free software; you can redistribute it and/or @@ -41,9 +41,10 @@ extern mach_port_t __mach_thread_self (void); extern mach_port_t (mach_task_self) (void); extern mach_port_t (__mach_task_self) (void); -/* Return the host information port for the host of the calling task. */ -extern mach_port_t mach_host_self (void); -extern mach_port_t __mach_host_self (void); +/* Return the host information port for the host of the calling task. + The parens are needed to protect against the macro in <mach_init.h>. */ +extern mach_port_t (mach_host_self) (void); +extern mach_port_t (__mach_host_self) (void); /* Attempt to context switch the current thread off the processor. Returns true if there are other threads that can be run and false if not. */ diff --git a/mach/mach/mig_support.h b/mach/mach/mig_support.h index eca79b3837..b8a4c317b2 100644 --- a/mach/mach/mig_support.h +++ b/mach/mach/mig_support.h @@ -1,4 +1,4 @@ -/* Copyright (C) 1993-2015 Free Software Foundation, Inc. +/* Copyright (C) 1993-2016 Free Software Foundation, Inc. This file is part of the GNU C Library. The GNU C Library is free software; you can redistribute it and/or diff --git a/mach/mach_init.c b/mach/mach_init.c index cf8ac3bb31..941cb8670a 100644 --- a/mach/mach_init.c +++ b/mach/mach_init.c @@ -1,4 +1,4 @@ -/* Copyright (C) 1992-2015 Free Software Foundation, Inc. +/* Copyright (C) 1992-2016 Free Software Foundation, Inc. This file is part of the GNU C Library. The GNU C Library is free software; you can redistribute it and/or @@ -20,6 +20,7 @@ #include <unistd.h> mach_port_t __mach_task_self_; +mach_port_t __mach_host_self_; vm_size_t __vm_page_size = 0; /* Must be data not bss for weak alias. */ weak_alias (__vm_page_size, vm_page_size) @@ -34,6 +35,7 @@ __mach_init (void) kern_return_t err; __mach_task_self_ = (__mach_task_self) (); + __mach_host_self_ = (__mach_host_self) (); __mig_init (0); #ifdef HAVE_HOST_PAGE_SIZE diff --git a/mach/mach_init.h b/mach/mach_init.h index 44a7ce2c50..3cced775b4 100644 --- a/mach/mach_init.h +++ b/mach/mach_init.h @@ -1,5 +1,5 @@ /* Declarations and macros for the basic Mach things set at startup. - Copyright (C) 1993-2015 Free Software Foundation, Inc. + Copyright (C) 1993-2016 Free Software Foundation, Inc. This file is part of the GNU C Library. The GNU C Library is free software; you can redistribute it and/or @@ -31,6 +31,11 @@ extern mach_port_t __mach_task_self_; #define __mach_task_self() (__mach_task_self_ + 0) /* Not an lvalue. */ #define mach_task_self() (__mach_task_self ()) +/* This cache is initialized at startup. */ +extern mach_port_t __mach_host_self_; +#define __mach_host_self() (__mach_host_self_ + 0) /* Not an lvalue. */ +#define mach_host_self() (__mach_host_self ()) + /* Kernel page size. */ extern vm_size_t __vm_page_size; extern vm_size_t vm_page_size; diff --git a/mach/mig-alloc.c b/mach/mig-alloc.c index a1ab8ba5d8..cd76b40879 100644 --- a/mach/mig-alloc.c +++ b/mach/mig-alloc.c @@ -1,4 +1,4 @@ -/* Copyright (C) 1992-2015 Free Software Foundation, Inc. +/* Copyright (C) 1992-2016 Free Software Foundation, Inc. This file is part of the GNU C Library. The GNU C Library is free software; you can redistribute it and/or diff --git a/mach/mig-dealloc.c b/mach/mig-dealloc.c index 830ee78d72..b75480ae26 100644 --- a/mach/mig-dealloc.c +++ b/mach/mig-dealloc.c @@ -1,4 +1,4 @@ -/* Copyright (C) 1992-2015 Free Software Foundation, Inc. +/* Copyright (C) 1992-2016 Free Software Foundation, Inc. This file is part of the GNU C Library. The GNU C Library is free software; you can redistribute it and/or diff --git a/mach/mig-reply.c b/mach/mig-reply.c index e39b717f08..b817bc4745 100644 --- a/mach/mig-reply.c +++ b/mach/mig-reply.c @@ -1,4 +1,4 @@ -/* Copyright (C) 1992-2015 Free Software Foundation, Inc. +/* Copyright (C) 1992-2016 Free Software Foundation, Inc. This file is part of the GNU C Library. The GNU C Library is free software; you can redistribute it and/or diff --git a/mach/msg-destroy.c b/mach/msg-destroy.c index aad7a7709f..bc7dd558e9 100644 --- a/mach/msg-destroy.c +++ b/mach/msg-destroy.c @@ -58,8 +58,7 @@ static void mach_msg_destroy_memory(vm_offset_t, vm_size_t); */ void -__mach_msg_destroy(msg) - mach_msg_header_t *msg; +__mach_msg_destroy (mach_msg_header_t *msg) { mach_msg_bits_t mbits = msg->msgh_bits; @@ -192,9 +191,7 @@ __mach_msg_destroy(msg) weak_alias (__mach_msg_destroy, mach_msg_destroy) static void -mach_msg_destroy_port(port, type) - mach_port_t port; - mach_msg_type_name_t type; +mach_msg_destroy_port (mach_port_t port, mach_msg_type_name_t type) { if (MACH_PORT_VALID(port)) switch (type) { case MACH_MSG_TYPE_MOVE_SEND: @@ -227,9 +224,7 @@ mach_msg_destroy_port(port, type) } static void -mach_msg_destroy_memory(addr, size) - vm_offset_t addr; - vm_size_t size; +mach_msg_destroy_memory (vm_offset_t addr, vm_size_t size) { if (size > 0) (void) __vm_deallocate(__mach_task_self(), addr, size); diff --git a/mach/msgserver.c b/mach/msgserver.c index 2f4a08ee3a..87c3c06d37 100644 --- a/mach/msgserver.c +++ b/mach/msgserver.c @@ -1,4 +1,4 @@ -/* Copyright (C) 1993-2015 Free Software Foundation, Inc. +/* Copyright (C) 1993-2016 Free Software Foundation, Inc. This file is part of the GNU C Library. The GNU C Library is free software; you can redistribute it and/or @@ -187,10 +187,10 @@ __mach_msg_server_timeout (boolean_t (*demux) (mach_msg_header_t *request, weak_alias (__mach_msg_server_timeout, mach_msg_server_timeout) mach_msg_return_t -__mach_msg_server (demux, max_size, rcv_name) - boolean_t (*demux) (mach_msg_header_t *in, mach_msg_header_t *out); - mach_msg_size_t max_size; - mach_port_t rcv_name; +__mach_msg_server (boolean_t (*demux) (mach_msg_header_t *in, + mach_msg_header_t *out), + mach_msg_size_t max_size, + mach_port_t rcv_name) { return __mach_msg_server_timeout (demux, max_size, rcv_name, MACH_MSG_OPTION_NONE, diff --git a/mach/mutex-init.c b/mach/mutex-init.c index cb9ba0e33c..9de79fabf6 100644 --- a/mach/mutex-init.c +++ b/mach/mutex-init.c @@ -1,5 +1,5 @@ /* Initialize a cthreads mutex structure. - Copyright (C) 1995-2015 Free Software Foundation, Inc. + Copyright (C) 1995-2016 Free Software Foundation, Inc. This file is part of the GNU C Library. The GNU C Library is free software; you can redistribute it and/or diff --git a/mach/mutex-solid.c b/mach/mutex-solid.c index 8e52a7ae4a..5107c4cc3e 100644 --- a/mach/mutex-solid.c +++ b/mach/mutex-solid.c @@ -1,5 +1,5 @@ /* Stub versions of mutex_lock_solid/mutex_unlock_solid for no -lthreads. - Copyright (C) 1995-2015 Free Software Foundation, Inc. + Copyright (C) 1995-2016 Free Software Foundation, Inc. This file is part of the GNU C Library. The GNU C Library is free software; you can redistribute it and/or diff --git a/mach/setup-thread.c b/mach/setup-thread.c index cc6902ebb1..1505027feb 100644 --- a/mach/setup-thread.c +++ b/mach/setup-thread.c @@ -1,4 +1,4 @@ -/* Copyright (C) 1991-2015 Free Software Foundation, Inc. +/* Copyright (C) 1991-2016 Free Software Foundation, Inc. This file is part of the GNU C Library. The GNU C Library is free software; you can redistribute it and/or diff --git a/mach/spin-lock.h b/mach/spin-lock.h index 62ef17e9e9..535191a5ec 100644 --- a/mach/spin-lock.h +++ b/mach/spin-lock.h @@ -1,5 +1,5 @@ /* Definitions of user-visible names for spin locks. - Copyright (C) 1994-2015 Free Software Foundation, Inc. + Copyright (C) 1994-2016 Free Software Foundation, Inc. This file is part of the GNU C Library. The GNU C Library is free software; you can redistribute it and/or diff --git a/mach/spin-solid.c b/mach/spin-solid.c index 758d1a8dc2..a81816afa7 100644 --- a/mach/spin-solid.c +++ b/mach/spin-solid.c @@ -1,4 +1,4 @@ -/* Copyright (C) 1994-2015 Free Software Foundation, Inc. +/* Copyright (C) 1994-2016 Free Software Foundation, Inc. This file is part of the GNU C Library. The GNU C Library is free software; you can redistribute it and/or |