diff options
Diffstat (limited to 'hurd/hurd/port.h')
-rw-r--r-- | hurd/hurd/port.h | 27 |
1 files changed, 13 insertions, 14 deletions
diff --git a/hurd/hurd/port.h b/hurd/hurd/port.h index c82fa4f04c..0779578d03 100644 --- a/hurd/hurd/port.h +++ b/hurd/hurd/port.h @@ -1,5 +1,5 @@ /* Lightweight user references for ports. - Copyright (C) 1993-2016 Free Software Foundation, Inc. + Copyright (C) 1993-2018 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 @@ -24,7 +24,6 @@ #include <mach.h> #include <hurd/userlink.h> #include <spin-lock.h> -#include <hurd/signal.h> /* Structure describing a cell containing a port. With the lock held, a @@ -63,7 +62,7 @@ struct hurd_port extern void _hurd_port_init (struct hurd_port *port, mach_port_t init); #if defined __USE_EXTERN_INLINES && defined _LIBC -# if IS_IN (libc) +# if IS_IN (libc) _HURD_PORT_H_EXTERN_INLINE void _hurd_port_init (struct hurd_port *port, mach_port_t init) { @@ -71,7 +70,7 @@ _hurd_port_init (struct hurd_port *port, mach_port_t init) port->users = NULL; port->port = init; } -# endif +# endif #endif @@ -86,7 +85,7 @@ _hurd_port_locked_get (struct hurd_port *port, struct hurd_userlink *link); #if defined __USE_EXTERN_INLINES && defined _LIBC -# if IS_IN (libc) +# if IS_IN (libc) _HURD_PORT_H_EXTERN_INLINE mach_port_t _hurd_port_locked_get (struct hurd_port *port, struct hurd_userlink *link) @@ -102,7 +101,7 @@ _hurd_port_locked_get (struct hurd_port *port, __spin_unlock (&port->lock); return result; } -# endif +# endif #endif /* Same, but locks PORT first. */ @@ -112,7 +111,7 @@ _hurd_port_get (struct hurd_port *port, struct hurd_userlink *link); #if defined __USE_EXTERN_INLINES && defined _LIBC -# if IS_IN (libc) +# if IS_IN (libc) _HURD_PORT_H_EXTERN_INLINE mach_port_t _hurd_port_get (struct hurd_port *port, struct hurd_userlink *link) @@ -124,7 +123,7 @@ _hurd_port_get (struct hurd_port *port, HURD_CRITICAL_END; return result; } -# endif +# endif #endif @@ -136,7 +135,7 @@ _hurd_port_free (struct hurd_port *port, mach_port_t used_port); #if defined __USE_EXTERN_INLINES && defined _LIBC -# if IS_IN (libc) +# if IS_IN (libc) _HURD_PORT_H_EXTERN_INLINE void _hurd_port_free (struct hurd_port *port, struct hurd_userlink *link, @@ -156,7 +155,7 @@ _hurd_port_free (struct hurd_port *port, if (dealloc) __mach_port_deallocate (__mach_task_self (), used_port); } -# endif +# endif #endif @@ -166,7 +165,7 @@ _hurd_port_free (struct hurd_port *port, extern void _hurd_port_locked_set (struct hurd_port *port, mach_port_t newport); #if defined __USE_EXTERN_INLINES && defined _LIBC -# if IS_IN (libc) +# if IS_IN (libc) _HURD_PORT_H_EXTERN_INLINE void _hurd_port_locked_set (struct hurd_port *port, mach_port_t newport) { @@ -177,7 +176,7 @@ _hurd_port_locked_set (struct hurd_port *port, mach_port_t newport) if (old != MACH_PORT_NULL) __mach_port_deallocate (__mach_task_self (), old); } -# endif +# endif #endif /* Same, but locks PORT first. */ @@ -185,7 +184,7 @@ _hurd_port_locked_set (struct hurd_port *port, mach_port_t newport) extern void _hurd_port_set (struct hurd_port *port, mach_port_t newport); #if defined __USE_EXTERN_INLINES && defined _LIBC -# if IS_IN (libc) +# if IS_IN (libc) _HURD_PORT_H_EXTERN_INLINE void _hurd_port_set (struct hurd_port *port, mach_port_t newport) { @@ -194,7 +193,7 @@ _hurd_port_set (struct hurd_port *port, mach_port_t newport) _hurd_port_locked_set (port, newport); HURD_CRITICAL_END; } -# endif +# endif #endif |