From 908623f2b1aa40fd126d7db25d7937e661251131 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; +}