This is the mail archive of the
libc-help@sourceware.org
mailing list for the glibc project.
RE: struct sched_param -- nearly, but not quite POSIX ?
- From: "'Chris Hall'" <chris dot hall dot list at highwayman dot com>
- To: <libc-help at sourceware dot org>
- Date: Wed, 2 May 2012 16:02:49 +0100
- Subject: RE: struct sched_param -- nearly, but not quite POSIX ?
- References: <013801cd2871$4b8930b0$e29b9210$@highwayman.com>
Oooops :-( I missed the '#define sched_priority' which makes this all
work as per POSIX.
It's fine.
Sorry.
I'll go away, now.
Chris
Chris Hall wrote (on Wed 02-May-2012 at 15:39 +0100):
>
> Am I in the right place ?
>
> 'struct sched_param' is defined by POSIX to have at least one
> element:
> 'int sched_priority'.
>
> Imagine my surprise when I find in <bits/sched.h>:
>
> /* The official definition. */
> struct sched_param
> {
> int __sched_priority;
> };
>
> ...is there a better definition of 'struct sched_param' I should
> seek
> out and use ? Or am a stuck with this ?
>
> Is there some reason for this non-standard "official" definition ?
>
> Thanks,
>
> Chris
> --
> Chris Hall, Highwayman.
>