Qt4 移植C++;从Solaris到Linux的代码应用程序和实时标题问题

Qt4 移植C++;从Solaris到Linux的代码应用程序和实时标题问题,qt4,solaris,porting,Qt4,Solaris,Porting,请帮忙,我使用的工具是kdevelop和qt4。例如,在my main.cpp上有错误 我的问题是什么是Linux或与Linux等效的实时头和函数。我的应用程序代码是C++和QT4之间的混合。在qt4方面,他们是否需要使用实时功能?在Solaris的C++中,我需要实时函数吗?如果是,我可以在哪里找到它们,或者它们叫什么,我应该把它们放在哪里 这实际上不是一个与QT相关的问题,而是一个移植Solaris->Linux的问题 Error: sys/procset.h: No such file

请帮忙,我使用的工具是kdevelop和qt4。例如,在my main.cpp上有错误


我的问题是什么是Linux或与Linux等效的实时头和函数。我的应用程序代码是C++和QT4之间的混合。在qt4方面,他们是否需要使用实时功能?在Solaris的C++中,我需要实时函数吗?如果是,我可以在哪里找到它们,或者它们叫什么,我应该把它们放在哪里

这实际上不是一个与QT相关的问题,而是一个移植Solaris->Linux的问题


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' was not declared in this scope
Error: expected ';' before 'pcparms'
Error: 'rtparms_t' was not declared in this scope
Error: 'rtparmsp' was not declared in this scope
Error: 'pcinfo_t' was not declared in this scope
Error: expected ';' before 'pcinfo'
Error: 'rtinfo_t' was not declared in this scope
Error: 'rtinfop' was not declared in this scope
warning: unused variable 'lret'
warning: unused variable 'priority'
...
...
...
*Exited with Status:2 *
这些文件都是特定于Solaris的系统调用。它们是priocntlset通用进程调度程序控制的一部分

从主页


//pcparms_t pcparms;
//rtparms_t *rtparmsp;
//pcinfo_t pcinfo;
//rtinfo_t *rtinfop;
priocntlset(2)系统调用priocntlset(2)
名称
priocntlset-通用进程调度程序控制
提要
#包括
#包括
#包括
#包括
#包括
#包括
#包括
#包括
长priocntlset(procset_t*psp,int cmd,/*arg*/…);
描述
函数的作用是:更改运行
过程。priocntlset()与priocntl()函数具有相同的函数-
这是一种更通用的方法,用于指定
计划属性将被更改。
笔记
由于Linux和FreeBSD上缺少priocntl()系统调用。。。
Solaris和Linux之间处理进程的方式不同。这两个系统都是Unix的变体,但是您正在寻找的特定系统调用没有Linux等效的系统调用。基本上,priocntlset用于(重新)安排流程。我不了解最新的Linux内核,也不知道还有什么调度器可用,但是任何关于2.6(或2.4)内核的好书都会有一节介绍调度的例子


在Linux机器上启动的一个好地方是
mansyscalls

这实际上不是一个与QT相关的问题,而是一个移植Solaris->Linux的问题


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' was not declared in this scope
Error: expected ';' before 'pcparms'
Error: 'rtparms_t' was not declared in this scope
Error: 'rtparmsp' was not declared in this scope
Error: 'pcinfo_t' was not declared in this scope
Error: expected ';' before 'pcinfo'
Error: 'rtinfo_t' was not declared in this scope
Error: 'rtinfop' was not declared in this scope
warning: unused variable 'lret'
warning: unused variable 'priority'
...
...
...
*Exited with Status:2 *
这些文件都是特定于Solaris的系统调用。它们是priocntlset通用进程调度程序控制的一部分

从主页


//pcparms_t pcparms;
//rtparms_t *rtparmsp;
//pcinfo_t pcinfo;
//rtinfo_t *rtinfop;
priocntlset(2)系统调用priocntlset(2)
名称
priocntlset-通用进程调度程序控制
提要
#包括
#包括
#包括
#包括
#包括
#包括
#包括
#包括
长priocntlset(procset_t*psp,int cmd,/*arg*/…);
描述
函数的作用是:更改运行
过程。priocntlset()与priocntl()函数具有相同的函数-
这是一种更通用的方法,用于指定
计划属性将被更改。
笔记
由于Linux和FreeBSD上缺少priocntl()系统调用。。。
Solaris和Linux之间处理进程的方式不同。这两个系统都是Unix的变体,但是您正在寻找的特定系统调用没有Linux等效的系统调用。基本上,priocntlset用于(重新)安排流程。我不了解最新的Linux内核,也不知道还有什么调度器可用,但是任何关于2.6(或2.4)内核的好书都会有一节介绍调度的例子


在Linux机器上启动的一个好地方是
mansyscalls

您是否执行了
locate procset.h
find/|grep“procset.h”
以查找该文件的位置?是否执行了
locate procset.h
find/|grep“procset.h”
以查找该文件的位置?