*** empty log message ***

This commit is contained in:
glenux 2004-02-24 08:48:48 +00:00
parent b392f0831a
commit fa08b31c57
3 changed files with 5 additions and 3 deletions

View file

@ -32,6 +32,7 @@ void * msgAllocate(msgSpace *space,
int bufferFreeIndex; int bufferFreeIndex;
int mSPoolFd; int mSPoolFd;
msgPoolData * mSPoolDataTabAddr; msgPoolData * mSPoolDataTabAddr;
int bufferNb;
selectedPoolIndex=-1; selectedPoolIndex=-1;
@ -199,7 +200,7 @@ void * msgAllocate(msgSpace *space,
PROT_NONE, //prot PROT_READ | PROT_WRITE PROT_NONE, //prot PROT_READ | PROT_WRITE
MAP_SHARED, mSPoolFd, MAP_SHARED, mSPoolFd,
(off_t)0); (off_t)0);
int bufferNb=mSPoolDataTabAddr[selectedPoolIndex].bufferNb; bufferNb=mSPoolDataTabAddr[selectedPoolIndex].bufferNb;
// mprotect(resultAddr,bufferFreeSize*bufferNb,PROT_NONE); // mprotect(resultAddr,bufferFreeSize*bufferNb,PROT_NONE);
mprotect(resultAddr,bufferFreeSize*(bufferFreeIndex+1),PROT_READ|PROT_WRITE); mprotect(resultAddr,bufferFreeSize*(bufferFreeIndex+1),PROT_READ|PROT_WRITE);

View file

@ -28,8 +28,8 @@ msgQueue * queueInit(msgSpaceId externId, int queueIdx) {
/* on remplit la structure msgQueue */ /* on remplit la structure msgQueue */
queue->elemCounter = 0; queue->elemCounter = 0;
queue->head = queue->id; strcpy(queue->headId,queue->id);
queue->tail = queue->id; strcpy(queue->tailId,queue->id);

View file

@ -84,6 +84,7 @@ msgSpace * msgSpaceCreate(
/* creation du poolData */ /* creation du poolData */
msgPoolDataIdIntern(poolDataTabId,externId); msgPoolDataIdIntern(poolDataTabId,externId);
strcpy(mSAddr->poolDataTabId,poolDataTabId); strcpy(mSAddr->poolDataTabId,poolDataTabId);
strcpy(mSAddr->externId,externId);
mSDataTabSemFd=sem_open(mSAddr->poolDataTabSemId, mSDataTabSemFd=sem_open(mSAddr->poolDataTabSemId,
O_CREAT|O_EXCL,SEM_DEFAULT_MODE,1); O_CREAT|O_EXCL,SEM_DEFAULT_MODE,1);