qt4 - Porting an C++ code application from Solaris to Linux and real time headers issues -


please help, tools using kdevelop , qt4. on main.cpp have errors, example;

 error: sys/procset.h: no such files or directory error: sys/priocntl.h: no such files or directory error: sys/tspriocntl.h: no such files or directory error: sys/rtpriocntl.h: no such files or directory in function 'int main(int. char**)': error: 'pcparms_t' not declared in scope error: expected ';' before 'pcparms' error: 'rtparms_t' not declared in scope error: 'rtparmsp' not declared in scope error: 'pcinfo_t' not declared in scope error: expected ';' before 'pcinfo' error: 'rtinfo_t' not declared in scope error: 'rtinfop' not declared in scope warning: unused variable 'lret' warning: unused variable 'priority' ... ... ... *exited status:2 * 

can't find real time headers on centos 5 linux. plus, don't know equivalence of above headers linux. know have add if statement solaris , linux include headers, , don't know headers included on if/else statement.

when remove headers comment them out real time headers , function realtime function solaris, run.

 //pcparms_t pcparms; //rtparms_t *rtparmsp; //pcinfo_t pcinfo; //rtinfo_t *rtinfop; 

problem real time headers , functions linux or equivalent linux. application code mix between c++ , qt4. on side of qt4 need use real time functions? on c++ solaris need real time functions? if yes, can find them or call , place them?

this not qt related question more of porting solaris->linux question.

sys/procset.h sys/priocntl.h sys/tspriocntl.h sys/rtpriocntl.h 

those files solaris specific system calls. part of priocntlset - generalized process scheduler control.

from manpage

priocntlset(2)           system calls           priocntlset(2)  name        priocntlset - generalized process scheduler control  synopsis        #include <sys/types.h>        #include <sys/procset.h>        #include <sys/priocntl.h>        #include <sys/rtpriocntl.h>        #include <sys/tspriocntl.h>        #include <sys/iapriocntl.h>        #include <sys/fsspriocntl.h>        #include <sys/fxpriocntl.h>         long priocntlset(procset_t *psp, int cmd, /* arg */ ...);  description        priocntlset() function changes scheduling properties of running        processes. priocntlset() has same functions priocntl() func-        tion,   more general way of specifying set of processes        scheduling properties changed.  notes     due lack of priocntl() system call on linux , freebsd... 

the way in processes handled between solaris , linux different. both systems variants of unix, specific system calls looking not have linux equivalent. priocntlset used (re)schedule processes. not date on latest linux kernel, or schedulers available anymore, book on 2.6 (or 2.4) kernel have section on scheduling examples.

a place start on linux machine man syscalls.


Comments

Popular posts from this blog

c# - how to write client side events functions for the combobox items -

exception - Python, pyPdf OCR error: pyPdf.utils.PdfReadError: EOF marker not found -