*** empty log message ***

This commit is contained in:
glenux 2004-02-23 21:16:05 +00:00
parent c1bff73555
commit 240e5f1410

View file

@ -2,4 +2,26 @@
#include "ids.h"
int msgQueueElemCreate(msgQueueId queueId,int counter){
msgQueueElemId queueElemId;
msgQueueElemIdIntern(queueElemId,queueId,counter);
int queueElemFd;
queueElemFd=shm_open(queueElemId,
O_RDWR|O_CREAT|O_EXCL|O_TRUNC,
SHM_DEFAULT_MODE);
if (queueElemFd == -1 ) {
NZG_ERROR("shm_open : msgQueueElem creation",queueElemId);
goto ERROR;
}
if (ftruncate(queueElemFd, sizeof(msgQueueElem)) < 0){
NZG_ERROR("ftruncate", queueElemId);
goto ERROR;
}
close(queueElem_Fd);
return 0;
ERROR:
return -1;
}