sched_setaffinity

Markus Wenke M.Wenke@web.de
Thu Nov 18 16:25:00 GMT 2004


Hi,

which version of the sched_setaffinity()-Function ist the latest/newest?

I found 2-param-version  in 2.3.2, and a 3 param-version in 2.3.3 and in 
2.3.2.

the sources say, that the 2-param-version is the newest, but this 
manpage ( http://www.zevils.com/cgi-bin/man/man2html?sched_setaffinity+2 
) say, the 3-param is the newest.

which version ist the newest, and will it be changed?

I ask, because I hat the following problem: (I asked this to a newsgroup)


################################################################################################################
Hi,

I want to use the "int sched_setaffinity(pid_t pid, unsigned int len, 
unsigned long *mask)"-function of libc with my program.
This function doesn't exist on every libc. So I use dlopen to load libc 
and import the function if it exists. All worked fine, but in the newest 
libc has different params:

int sched_setaffinity(pid_t pid, __cpu_mask *mask);

So I want that my prog finds out which libc is running, so I can use the 
correct function. How can I find out this(in my C-Prog)?

################################################################################################################


thanks in advance

Markus



More information about the Libc-alpha mailing list