From 1117dd607873f9f39342776124671d206a76be7a Mon Sep 17 00:00:00 2001 From: glenux Date: Mon, 23 Feb 2004 20:31:00 +0000 Subject: [PATCH] * ecriture de la fonction --- src/queueClose.c | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) diff --git a/src/queueClose.c b/src/queueClose.c index e69de29..afe521e 100644 --- a/src/queueClose.c +++ b/src/queueClose.c @@ -0,0 +1,16 @@ +#include "libnazgul.h" +#include "ids.h" + +int queueClose(msgQueue * queue){ + msgQueueId qId; + strcpy(qId,queue->id); + + if (munmap(queue,sizeof(msgQueue)) < 0){ + NZG_ERROR("unmap",qId); + goto ERROR; + } + + return 0; +ERROR: + return -1; +}