* correction de la dependance aux .h

This commit is contained in:
glenux 2004-02-23 18:50:52 +00:00 committed by Glenn Y. Rolland
parent 1d4c5badc3
commit 9718406b73
13 changed files with 32 additions and 13 deletions

View file

@ -1,5 +1,5 @@
#include "libnazgul.h" #include "libnazgul.h"
#include "nzg_ids.h" #include "ids.h"
/* TODO: remplacer le bool de msgPoolData par un identifiant /* TODO: remplacer le bool de msgPoolData par un identifiant
de semaphore. Le semaphore contient poolNb valeurs (et indique de semaphore. Le semaphore contient poolNb valeurs (et indique

View file

@ -1,5 +1,5 @@
#include "libnazgul.h" #include "libnazgul.h"
#include "nzg_ids.h" #include "ids.h"
int msgBufferInfoTabCreate( int msgBufferInfoTabCreate(
msgSpaceId externId, msgSpaceId externId,

View file

@ -2,7 +2,7 @@
#define _NZG_IDS 1 #define _NZG_IDS 1
#include "libnazgul.h" #include "libnazgul.h"
#include "nzg_ids.h" #include "ids.h"
int msgSpaceIdIntern(msgSpaceId dest,const msgSpaceId src ){ int msgSpaceIdIntern(msgSpaceId dest,const msgSpaceId src ){
if (strlen(src)>MSGSPACE_ID_LEN){ if (strlen(src)>MSGSPACE_ID_LEN){

View file

@ -2,7 +2,6 @@
#define _NZG_IDS 1 #define _NZG_IDS 1
#include "libnazgul.h" #include "libnazgul.h"
#include "nzg_ids.h"
/* nzg_ids.c */ /* nzg_ids.c */
int msgSpaceIdIntern(msgSpaceId dest, const msgSpaceId src); int msgSpaceIdIntern(msgSpaceId dest, const msgSpaceId src);

View file

@ -1,7 +1,7 @@
#ifndef _NZG_IFACE #ifndef _NZG_IFACE
#define _NZG_IFACE 1 #define _NZG_IFACE 1
#include "nzg_global.h" #include "global.h"
typedef enum { true=1, false=0} bool; typedef enum { true=1, false=0} bool;
@ -21,6 +21,7 @@ typedef char msgPoolSemId[4*MSGSPACE_ID_LEN];
typedef char msgQueueDataId[4*MSGSPACE_ID_LEN]; typedef char msgQueueDataId[4*MSGSPACE_ID_LEN];
typedef char msgQueueId[4*MSGSPACE_ID_LEN]; typedef char msgQueueId[4*MSGSPACE_ID_LEN];
typedef char msgQueueSemId[4*MSGSPACE_ID_LEN];
/* pid[] */ /* pid[] */
/* liste des processus demandeurs */ /* liste des processus demandeurs */

View file

@ -1,8 +1,8 @@
#ifndef _LIBNAZGUL #ifndef _LIBNAZGUL
#define _LIBNAZGUL 1 #define _LIBNAZGUL 1
#include "nzg_global.h" #include "global.h"
#include "nzg_iface.h" #include "iface.h"
#include "nzg_proto.h" #include "proto.h"
#endif #endif

View file

@ -1,5 +1,5 @@
#include "libnazgul.h" #include "libnazgul.h"
#include "nzg_ids.h" #include "ids.h"
int msgPoolCreate( int msgPoolCreate(
msgSpaceId externId, msgSpaceId externId,

View file

@ -1,5 +1,5 @@
#include "libnazgul.h" #include "libnazgul.h"
#include "nzg_ids.h" #include "ids.h"
int msgPoolDelete( int msgPoolDelete(
msgSpaceId spaceId, msgSpaceId spaceId,

View file

@ -0,0 +1,14 @@
#include "libnazgul.h"
int queueLock(msgSpaceId spaceid,int queueIdx){
sem_t * queueSemFd;
msgQueueSemId queueSemId;
queueSemFd=sem_open(queueSemId,O_CREAT|O_EXCL,0666,1);
if(queueSemFd==SEM_FAILED){
NZG_ERROR("sem_open",queueSemId);
return -1;
}
return -1;
}

View file

@ -0,0 +1,5 @@
#include "libnazgul.h"
int queueUnlock(msgSpaceId spaceid,int queueIdx){
return -1;
}

View file

@ -1,5 +1,5 @@
#include "libnazgul.h" #include "libnazgul.h"
#include "nzg_ids.h" #include "ids.h"
/* prototypes des fonctions annexes à ne pas exporter */ /* prototypes des fonctions annexes à ne pas exporter */
int msgSpaceIdIntern(msgSpaceId dest,const msgSpaceId src ); int msgSpaceIdIntern(msgSpaceId dest,const msgSpaceId src );

View file

@ -1,5 +1,5 @@
#include "libnazgul.h" #include "libnazgul.h"
#include "nzg_ids.h" #include "ids.h"
/* prototypes des fonctions annexes à ne pas exporter */ /* prototypes des fonctions annexes à ne pas exporter */
int msgSpaceIdIntern(msgSpaceId dest,const msgSpaceId src ); int msgSpaceIdIntern(msgSpaceId dest,const msgSpaceId src );

View file

@ -1,5 +1,5 @@
#include "libnazgul.h" #include "libnazgul.h"
#include "nzg_ids.h" #include "ids.h"
/* prototypes des fonctions annexes à ne pas exporter */ /* prototypes des fonctions annexes à ne pas exporter */
int msgSpaceIdIntern(msgSpaceId dest,const msgSpaceId src ); int msgSpaceIdIntern(msgSpaceId dest,const msgSpaceId src );