From 35202f99118b24f1fb84ecb69e496bc49c7473c0 Mon Sep 17 00:00:00 2001 From: glenux Date: Mon, 23 Feb 2004 21:19:20 +0000 Subject: [PATCH] *** empty log message *** --- src/queueAdd.c | 7 +++++++ src/queueAddElem.c | 0 src/queueElemCreate.c | 12 ++++++++---- src/queueRemElem.c | 0 4 files changed, 15 insertions(+), 4 deletions(-) delete mode 100644 src/queueAddElem.c delete mode 100644 src/queueRemElem.c diff --git a/src/queueAdd.c b/src/queueAdd.c index e69de29..563b2a5 100644 --- a/src/queueAdd.c +++ b/src/queueAdd.c @@ -0,0 +1,7 @@ +#include "libnazgul.h" + +// on ajoute en fin de queue... + +int msgQueueElemAdd(msgQueue * queue, msgQueueElemId){ + +} diff --git a/src/queueAddElem.c b/src/queueAddElem.c deleted file mode 100644 index e69de29..0000000 diff --git a/src/queueElemCreate.c b/src/queueElemCreate.c index 5c379e6..f3ae7d0 100644 --- a/src/queueElemCreate.c +++ b/src/queueElemCreate.c @@ -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,14 +16,14 @@ 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; } - + close(queueElem_Fd); return 0; ERROR: diff --git a/src/queueRemElem.c b/src/queueRemElem.c deleted file mode 100644 index e69de29..0000000