This is the mail archive of the libc-alpha@sources.redhat.com 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]

sched_setaffinity


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


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