This is the mail archive of the libc-help@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]

RE: struct sched_param -- nearly, but not quite POSIX ?


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.
> 



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