zoutom
December 19, 2003, 8:46am
1
请问在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中有函数原型定义啊!是不是与内核有关呢?
盼解答。谢谢!
liug2
December 19, 2003, 6:03pm
3
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.
zoutom
December 20, 2003, 2:58am
4
Thank you I will have a try.
zoutom
December 20, 2003, 10:39am
5
谢谢你的解答liug!用POSIX标准的semaphore同样方便。