sched - system calls

sched - system calls

Post by Ulrich Schwa » Mon, 21 Apr 1997 04:00:00



When I try to link an application which makes a system call like

sched_*

I get link errors, because the system call is not in my libc
I use kernel version 2.0.20 with libc.so.5.2.18
Do I need a newer version of libc or are these sched_* calls
in another library ?
I couldn't find any hint in my howto's or faqs, nor in the man-pages
of sched_*

Any help appreciated

Uli Schwab

 
 
 

sched - system calls

Post by Volodya Dergach » Sun, 27 Apr 1997 04:00:00


Here is a manpage from SunOs system (linux is similar..try searching for
the library )

sched_setparam(3R)      Realtime Library       sched_setparam(3R)

NAME
     sched_setparam, sched_getparam - set/get scheduling  parame-
     ters

SYNOPSIS
     cc [ flag ... ] file ...  -lposix4 [ library ... ]

     #include <sched.h>

     int sched_setparam(pid_t pid,
          const struct sched_param *param);

     int sched_getparam(pid_t pid,
          struct sched_param *param);

     struct sched_param {
          int       sched_priority;    /* process execution
                                       scheduling priority */


>When I try to link an application which makes a system call like

>sched_*

>I get link errors, because the system call is not in my libc
>I use kernel version 2.0.20 with libc.so.5.2.18
>Do I need a newer version of libc or are these sched_* calls
>in another library ?
>I couldn't find any hint in my howto's or faqs, nor in the man-pages
>of sched_*

>Any help appreciated

>Uli Schwab


 
 
 

sched - system calls

Post by Volodya Dergach » Sun, 27 Apr 1997 04:00:00


Here is a manpage from SunOs system (linux is similar..try searching for
the library )

sched_setparam(3R)      Realtime Library       sched_setparam(3R)

NAME
     sched_setparam, sched_getparam - set/get scheduling  parame-
     ters

SYNOPSIS
     cc [ flag ... ] file ...  -lposix4 [ library ... ]

     #include <sched.h>

     int sched_setparam(pid_t pid,
          const struct sched_param *param);

     int sched_getparam(pid_t pid,
          struct sched_param *param);

     struct sched_param {
          int       sched_priority;    /* process execution
                                       scheduling priority */


>When I try to link an application which makes a system call like

>sched_*

>I get link errors, because the system call is not in my libc
>I use kernel version 2.0.20 with libc.so.5.2.18
>Do I need a newer version of libc or are these sched_* calls
>in another library ?
>I couldn't find any hint in my howto's or faqs, nor in the man-pages
>of sched_*

>Any help appreciated

>Uli Schwab