VxWorks POSIX implementation

user3285522

Very much a beginner at programming/software. I am trying to port some code written for linux onto my vxworks project.

When including pthread.h, it appears to be including the header from C:\WindRiver\vxworks-6.8\target\h however I noticed there is another header located in C:\WindRiver\vxworks-6.8\target\usr\h that is a bit different.

One example of the differences is the function pthread_mutexattr_settype does not exist in one of them. According to v6.8 documentation, pthread_mutexattr_settype is a function i should have access to.

Perhaps I set up my paths wrong? Do I need to do something special for my project to know where to look? When I update my build path to the usr folders... When i right click and open declaration, it gives me 2 options to chose from (both locations). And yes I only have 1 location in my build path.

Benoit

Reading the documentation is always a good 1st step.

VxWorks is POSIX PSE5.2 conformant only when using Real-Time Process (RTP) projects. That is what the /usr/... header points to.

If you are building a kernel module (DKM), then some of the POSIX interface are available, but apparently not the one you want for your port.

So, use RTPs is you want to port your code.

See the VxWorks Application Programmer's Guide. Section 3.4.2 (VxWorks 6.9) clearly states that target/usr/h is where the system header files are for RTPs. And cautions you not to reference header files in target/h.

See section 9 about POSIX Support.

本文收集自互联网,转载请注明来源。

如有侵权,请联系[email protected] 删除。

编辑于
0

我来说两句

0条评论
登录后参与评论

相关文章

来自分类Dev

VxWorks POSIX实施

来自分类Dev

VxWorks是否支持OpenMP?

来自分类Dev

vxworks上的Sqlite Select

来自分类Dev

为VxWorks编译

来自分类Dev

出现memPartFree错误vxWorks

来自分类Dev

从VxWorks中的tftpLib获取错误

来自分类Dev

vxworks串行端口读取超时

来自分类Dev

VxWorks:访问主内存区域

来自分类Dev

VXWORKS模拟器限制?

来自分类Dev

vxWorks c++ Demangling 错误

来自分类Dev

如何在VxWorks Shell中定义数组?

来自分类Dev

使用cmake为vxworks构建OPCUA

来自分类Dev

VXWORKS RTOS RTP应用程序

来自分类Dev

VXWorks向头文件添加功能

来自分类Dev

在vxworks RTP中设置初始任务的名称

来自分类Dev

如何构建NortelCpl AMP vxworks AMP代码?

来自分类Dev

VxWorks中使用哪个引导程序?

来自分类Dev

在VxWorks中使用recvfrom()时发生Pagefault

来自分类Dev

在vortex 86d上安装vxworks

来自分类Dev

如何在VxWorks中的条件变量中避免竞争条件

来自分类Dev

即使有足够的内存,Vxworks内存分配也会失败

来自分类Dev

vxWorks警告:变量<task>在设置其值之前已使用

来自分类Dev

使用诸如QNX或VxWorks之类的RTOS代替Linux的优势?

来自分类Dev

如何在vxworks Shell中传递64位值

来自分类Dev

如何确保VxWorks结构操作中的原子性?

来自分类Dev

vxWorks 6.9下的Shell会话和调试printf

来自分类Dev

Android POSIX兼容吗?

来自分类Dev

什么是“ posix隔离”?

来自分类Dev

试图了解POSIX线程