*** empty log message ***
This commit is contained in:
parent
06f708aee1
commit
35202f9911
4 changed files with 15 additions and 4 deletions
|
@ -0,0 +1,7 @@
|
|||
#include "libnazgul.h"
|
||||
|
||||
// on ajoute en fin de queue...
|
||||
|
||||
int msgQueueElemAdd(msgQueue * queue, msgQueueElemId){
|
||||
|
||||
}
|
|
@ -1,10 +1,14 @@
|
|||
#include "libnazgul.h"
|
||||
#include "ids.h"
|
||||
|
||||
int msgQueueElemCreate(msgQueueId queueId,int counter){
|
||||
int msgQueueElemCreate(msgQueueElemId,
|
||||
finalQueueElemId,
|
||||
msgQueueId queueId,
|
||||
int counter){
|
||||
msgQueueElemId queueElemId;
|
||||
|
||||
msgQueueElemIdIntern(queueElemId,queueId,counter);
|
||||
strcpy(finalQueueElemId,queueElemId);
|
||||
|
||||
int queueElemFd;
|
||||
queueElemFd=shm_open(queueElemId,
|
||||
|
@ -12,11 +16,11 @@ int msgQueueElemCreate(msgQueueId queueId,int counter){
|
|||
SHM_DEFAULT_MODE);
|
||||
if (queueElemFd == -1 ) {
|
||||
NZG_ERROR("shm_open : msgQueueElem creation",queueElemId);
|
||||
goto ERROR;
|
||||
goto ERROR;
|
||||
}
|
||||
|
||||
if (ftruncate(queueElemFd, sizeof(msgQueueElem)) < 0){
|
||||
NZG_ERROR("ftruncate", queueElemId);
|
||||
NZG_ERROR("ftruncate", queueElemId);
|
||||
goto ERROR;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue