*** 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 "libnazgul.h"
|
||||||
#include "ids.h"
|
#include "ids.h"
|
||||||
|
|
||||||
int msgQueueElemCreate(msgQueueId queueId,int counter){
|
int msgQueueElemCreate(msgQueueElemId,
|
||||||
|
finalQueueElemId,
|
||||||
|
msgQueueId queueId,
|
||||||
|
int counter){
|
||||||
msgQueueElemId queueElemId;
|
msgQueueElemId queueElemId;
|
||||||
|
|
||||||
msgQueueElemIdIntern(queueElemId,queueId,counter);
|
msgQueueElemIdIntern(queueElemId,queueId,counter);
|
||||||
|
strcpy(finalQueueElemId,queueElemId);
|
||||||
|
|
||||||
int queueElemFd;
|
int queueElemFd;
|
||||||
queueElemFd=shm_open(queueElemId,
|
queueElemFd=shm_open(queueElemId,
|
||||||
|
@ -12,14 +16,14 @@ int msgQueueElemCreate(msgQueueId queueId,int counter){
|
||||||
SHM_DEFAULT_MODE);
|
SHM_DEFAULT_MODE);
|
||||||
if (queueElemFd == -1 ) {
|
if (queueElemFd == -1 ) {
|
||||||
NZG_ERROR("shm_open : msgQueueElem creation",queueElemId);
|
NZG_ERROR("shm_open : msgQueueElem creation",queueElemId);
|
||||||
goto ERROR;
|
goto ERROR;
|
||||||
}
|
}
|
||||||
|
|
||||||
if (ftruncate(queueElemFd, sizeof(msgQueueElem)) < 0){
|
if (ftruncate(queueElemFd, sizeof(msgQueueElem)) < 0){
|
||||||
NZG_ERROR("ftruncate", queueElemId);
|
NZG_ERROR("ftruncate", queueElemId);
|
||||||
goto ERROR;
|
goto ERROR;
|
||||||
}
|
}
|
||||||
|
|
||||||
close(queueElem_Fd);
|
close(queueElem_Fd);
|
||||||
return 0;
|
return 0;
|
||||||
ERROR:
|
ERROR:
|
||||||
|
|
Loading…
Reference in a new issue