QNX可以使用系统V信号灯么?

请问在qnx6下可不可以使用unix的系统V信号灯?如果可以为什么我在编译的时候出错,提示没有定义

int semop(int semid, struct sembuf *sops, unsigned nsops)
int semget(key_t key, int nsems, int semflg)
int semctl(int semid,int semnum,int cmd,union semun arg)


的参数?好像在头文件sys/sem.h中有函数原型定义啊!是不是与内核有关呢?
盼解答。谢谢! :frowning:

自己顶一下 :unamused:

These functions are not yet implemented. You should look at the functions in <semaphore.h> instead as they are currently implemented.

You may have to switch over to the use of POSIX semaphores.

Thank you I will have a try.

谢谢你的解答liug!用POSIX标准的semaphore同样方便。