summaryrefslogtreecommitdiff
path: root/hurd/hurd
diff options
context:
space:
mode:
authorSamuel Thibault <samuel.thibault@ens-lyon.org>2016-08-20 19:44:11 +0200
committerSamuel Thibault <samuel.thibault@ens-lyon.org>2016-08-20 19:44:11 +0200
commit0734460e6a9dfc0725b35f0be0491b6308a7674e (patch)
tree09761b81e18ee4730a6e60051d41d02f9880671e /hurd/hurd
parent13cb6162f659446cb7bdb0a6c3cf1d9efe8218f1 (diff)
parent1090dca5a801410bee6580635070dcbb90a72d01 (diff)
Merge commit 'refs/top-bases/t/tls-threadvar' into t/tls-threadvar
Diffstat (limited to 'hurd/hurd')
-rw-r--r--hurd/hurd/fd.h2
-rw-r--r--hurd/hurd/id.h2
-rw-r--r--hurd/hurd/ioctl.h7
-rw-r--r--hurd/hurd/lookup.h2
-rw-r--r--hurd/hurd/port.h2
-rw-r--r--hurd/hurd/resource.h6
-rw-r--r--hurd/hurd/signal.h5
-rw-r--r--hurd/hurd/sigpreempt.h2
-rw-r--r--hurd/hurd/threadvar.h2
-rw-r--r--hurd/hurd/userlink.h2
-rw-r--r--hurd/hurd/xattr.h2
11 files changed, 19 insertions, 15 deletions
diff --git a/hurd/hurd/fd.h b/hurd/hurd/fd.h
index 6d4b637582..34bd8a95b8 100644
--- a/hurd/hurd/fd.h
+++ b/hurd/hurd/fd.h
@@ -1,5 +1,5 @@
/* File descriptors.
- Copyright (C) 1993-2014 Free Software Foundation, Inc.
+ Copyright (C) 1993-2015 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/hurd/hurd/id.h b/hurd/hurd/id.h
index 37431e3087..9458f3c382 100644
--- a/hurd/hurd/id.h
+++ b/hurd/hurd/id.h
@@ -1,5 +1,5 @@
/* User and group IDs.
- Copyright (C) 1993-2014 Free Software Foundation, Inc.
+ Copyright (C) 1993-2015 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/hurd/hurd/ioctl.h b/hurd/hurd/ioctl.h
index 3af3f9f52f..4771426320 100644
--- a/hurd/hurd/ioctl.h
+++ b/hurd/hurd/ioctl.h
@@ -1,5 +1,5 @@
/* User-registered handlers for specific `ioctl' requests.
- Copyright (C) 1993-2014 Free Software Foundation, Inc.
+ Copyright (C) 1993-2015 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
@@ -68,6 +68,11 @@ extern int hurd_register_ioctl_handler (int first_request, int last_request,
_HURD_HANDLE_IOCTLS_1 (handler, ioctl, ioctl, ioctl##_only)
+/* Install a new CTTYID port, atomically updating the dtable appropriately.
+ This consumes the send right passed in. */
+
+void _hurd_locked_install_cttyid (mach_port_t cttyid);
+
/* Lookup the handler for the given ioctl request. */
ioctl_handler_t _hurd_lookup_ioctl_handler (int request);
diff --git a/hurd/hurd/lookup.h b/hurd/hurd/lookup.h
index 0abe5811d2..a02265ada2 100644
--- a/hurd/hurd/lookup.h
+++ b/hurd/hurd/lookup.h
@@ -1,5 +1,5 @@
/* Declarations of file name translation functions for the GNU Hurd.
- Copyright (C) 1995-2014 Free Software Foundation, Inc.
+ Copyright (C) 1995-2015 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/hurd/hurd/port.h b/hurd/hurd/port.h
index ee7caa0c10..0825f2b1ac 100644
--- a/hurd/hurd/port.h
+++ b/hurd/hurd/port.h
@@ -1,5 +1,5 @@
/* Lightweight user references for ports.
- Copyright (C) 1993-2014 Free Software Foundation, Inc.
+ Copyright (C) 1993-2015 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/hurd/hurd/resource.h b/hurd/hurd/resource.h
index bd5bd4bba1..e9931e528a 100644
--- a/hurd/hurd/resource.h
+++ b/hurd/hurd/resource.h
@@ -1,5 +1,5 @@
/* Resource limits for the Hurd.
- Copyright (C) 1994-2014 Free Software Foundation, Inc.
+ Copyright (C) 1994-2015 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
@@ -42,8 +42,8 @@ extern error_t _hurd_priority_which_map (enum __priority_which which, int who,
/* Convert between Mach priority values and the priority
values used by getpriority, setpriority, and nice. */
-#define MACH_PRIORITY_TO_NICE(prio) (2 * ((prio) - 12))
-#define NICE_TO_MACH_PRIORITY(nice) (12 + ((nice) / 2))
+#define MACH_PRIORITY_TO_NICE(prio) ((prio) - 25)
+#define NICE_TO_MACH_PRIORITY(nice) ((nice) + 25)
diff --git a/hurd/hurd/signal.h b/hurd/hurd/signal.h
index 4a82e026f3..b5db67fe50 100644
--- a/hurd/hurd/signal.h
+++ b/hurd/hurd/signal.h
@@ -1,5 +1,5 @@
/* Implementing POSIX.1 signals under the Hurd.
- Copyright (C) 1993-2014 Free Software Foundation, Inc.
+ Copyright (C) 1993-2015 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
@@ -186,9 +186,8 @@ _hurd_critical_section_lock (void)
/* The thread variable is unset; this must be the first time we've
asked for it. In this case, the critical section flag cannot
possible already be set. Look up our sigstate structure the slow
- way; this locks the sigstate lock. */
+ way. */
ss = *location = _hurd_thread_sigstate (__mach_thread_self ());
- __spin_unlock (&ss->lock);
}
if (! __spin_try_lock (&ss->critical_section_lock))
diff --git a/hurd/hurd/sigpreempt.h b/hurd/hurd/sigpreempt.h
index 3b2e99a307..76b7ca6753 100644
--- a/hurd/hurd/sigpreempt.h
+++ b/hurd/hurd/sigpreempt.h
@@ -1,5 +1,5 @@
/* Preemption of Hurd signals before POSIX.1 semantics take over.
- Copyright (C) 1996-2014 Free Software Foundation, Inc.
+ Copyright (C) 1996-2015 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/hurd/hurd/threadvar.h b/hurd/hurd/threadvar.h
index 41cf2d529e..086d709390 100644
--- a/hurd/hurd/threadvar.h
+++ b/hurd/hurd/threadvar.h
@@ -1,5 +1,5 @@
/* Internal per-thread variables for the Hurd.
- Copyright (C) 1994-2014 Free Software Foundation, Inc.
+ Copyright (C) 1994-2015 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/hurd/hurd/userlink.h b/hurd/hurd/userlink.h
index 03a9d60970..9d43d3c057 100644
--- a/hurd/hurd/userlink.h
+++ b/hurd/hurd/userlink.h
@@ -1,5 +1,5 @@
/* Support for chains recording users of a resource; `struct hurd_userlink'.
- Copyright (C) 1994-2014 Free Software Foundation, Inc.
+ Copyright (C) 1994-2015 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/hurd/hurd/xattr.h b/hurd/hurd/xattr.h
index 259360fd45..43fc4d4f57 100644
--- a/hurd/hurd/xattr.h
+++ b/hurd/hurd/xattr.h
@@ -1,5 +1,5 @@
/* Access to extended attributes on files for GNU/Hurd.
- Copyright (C) 2005-2014 Free Software Foundation, Inc.
+ Copyright (C) 2005-2015 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