2023-05-14 18:03:50 +02:00
|
|
|
#include <sys/types.h>
|
|
|
|
#include <sys/ipc.h>
|
2023-05-14 21:44:03 +02:00
|
|
|
#include <sys/shm.h>
|
2023-05-14 18:03:50 +02:00
|
|
|
|
2023-05-14 18:10:44 +02:00
|
|
|
#include <server.h>
|
|
|
|
#include <structures.h>
|
2023-05-14 17:07:34 +02:00
|
|
|
|
2023-05-14 18:03:50 +02:00
|
|
|
|
2023-05-14 17:07:34 +02:00
|
|
|
int main(int argc, char *argv[]){
|
2023-05-14 18:08:10 +02:00
|
|
|
input_server_t input = check_input(argc, argv);
|
2023-05-14 18:03:50 +02:00
|
|
|
|
2023-05-14 21:44:03 +02:00
|
|
|
int shmBoardid = getShmid(sizeof(int) * input.collums * input.rows);
|
|
|
|
shm_t *shm = shmat(shmBoardid, NULL, 0);
|
|
|
|
|
|
|
|
|
2023-05-14 17:07:34 +02:00
|
|
|
|
|
|
|
return 0;
|
|
|
|
}
|