This is the mail archive of the glibc-cvs@sourceware.org mailing list for the glibc project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

GNU C Library master sources branch sthibaul/hurd-builds updated. glibc-2.26.9000-1154-gb79fc8c


This is an automated email from the git hooks/post-receive script. It was
generated because a ref change was pushed to the repository containing
the project "GNU C Library master sources".

The branch, sthibaul/hurd-builds has been updated
       via  b79fc8cb4aa04d45507c1e7118c4d66d9d03c43c (commit)
      from  d0dfa617585427adc60d7d4a20680eb37aa494bd (commit)

Those revisions listed above that are new to this repository have
not appeared on any other notification email; so we list those
revisions in full, below.

- Log -----------------------------------------------------------------
http://sourceware.org/git/gitweb.cgi?p=glibc.git;a=commitdiff;h=b79fc8cb4aa04d45507c1e7118c4d66d9d03c43c

commit b79fc8cb4aa04d45507c1e7118c4d66d9d03c43c
Author: Samuel Thibault <samuel.thibault@ens-lyon.org>
Date:   Fri Jan 19 01:20:55 2018 +0100

    t2.26/sched_param
    
    Bring back __sched_param to bits/sched.h
    
    Upstream removed it because it doesn't use it, but we do: our pthread.h
    includes thread-attr.h to bring the pthread_attr_t type to applications,
    and thus needs the sched_param structure.
    
    Note: that uses __sched_param and not sched_param because thread-attr.h
    is also also brought in from sys/types.h, which should not expose
    sched_param if not requested to by applicationg defining _POSIX_SOURCE
    and alike.
    
    Signed-off-by: Samuel Thibault <samuel.thibault@ens-lyon.org>

diff --git a/bits/sched.h b/bits/sched.h
index 8d9f077..486473e 100644
--- a/bits/sched.h
+++ b/bits/sched.h
@@ -17,6 +17,8 @@
    License along with the GNU C Library; if not, see
    <http://www.gnu.org/licenses/>.  */
 
+#ifndef __need_schedparam
+
 #ifndef _BITS_SCHED_H
 #define _BITS_SCHED_H 1
 
@@ -32,7 +34,20 @@
 /* Data structure to describe a process' schedulability.  */
 struct sched_param
 {
-  int sched_priority;
+  int __sched_priority;
 };
 
 #endif /* bits/sched.h */
+
+#endif	/* need schedparam */
+
+#if !defined __defined_schedparam \
+    && (defined __need_schedparam || defined _SCHED_H)
+# define __defined_schedparam	1
+/* Data structure to describe a process' schedulability.  */
+struct __sched_param
+  {
+    int __sched_priority;
+  };
+# undef __need_schedparam
+#endif
diff --git a/posix/sched.h b/posix/sched.h
index 619b3b3..67691a1 100644
--- a/posix/sched.h
+++ b/posix/sched.h
@@ -43,9 +43,8 @@ typedef __pid_t pid_t;
 #include <bits/sched.h>
 #include <bits/cpu-set.h>
 
-/* Backward compatibility.  */
-#define sched_priority    sched_priority
-#define __sched_priority  sched_priority
+/* Define the real names for the elements of `struct sched_param'.  */
+#define sched_priority    __sched_priority
 
 
 __BEGIN_DECLS

-----------------------------------------------------------------------

Summary of changes:
 bits/sched.h  |   17 ++++++++++++++++-
 posix/sched.h |    5 ++---
 2 files changed, 18 insertions(+), 4 deletions(-)


hooks/post-receive
-- 
GNU C Library master sources


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]