Compare commits
2 Commits
5bf18bb3cf
...
2ce624ab70
Author | SHA1 | Date |
---|---|---|
Edi De Candido | 2ce624ab70 | |
Edi De Candido | 67e555cb28 |
|
@ -1,6 +1,8 @@
|
|||
#ifndef SHM_H
|
||||
#define SHM_H
|
||||
|
||||
#include <structures.h>
|
||||
|
||||
int getShmid(int row, int col);
|
||||
tile_t * shmServerAt(int shmid);
|
||||
tile_t * shmClientAt(int shmid);
|
||||
|
|
|
@ -1,6 +1,7 @@
|
|||
#include <sys/sem.h>
|
||||
|
||||
#include <sys/stat.h>
|
||||
#include <custom_sem.h>
|
||||
#include <structures.h>
|
||||
#include <errExit.h>
|
||||
|
||||
void semOp(int semid, short sem_num, short sem_op) {
|
||||
|
@ -17,7 +18,7 @@ int getSemid(){
|
|||
errExit("semget", "getSemid");
|
||||
}
|
||||
|
||||
int val[] = {0, 0};
|
||||
unsigned short val[] = {0, 0};
|
||||
union semun arg;
|
||||
arg.array = val;
|
||||
|
||||
|
|
Loading…
Reference in New Issue