From 965bf81879b22a25fd9b0d17ce6defd3d51c6173 Mon Sep 17 00:00:00 2001 From: Aargh Rai Date: Tue, 7 Jul 2026 14:30:21 +0530 Subject: engine can now send updates to uci --- src/ipc.c | 14 +------------- 1 file changed, 1 insertion(+), 13 deletions(-) (limited to 'src/ipc.c') diff --git a/src/ipc.c b/src/ipc.c index 9c4dfcc..99332ae 100644 --- a/src/ipc.c +++ b/src/ipc.c @@ -3,21 +3,9 @@ #include "ipc.h" -// https://stackoverflow.com/a/5656561 -void* create_shared_memory(size_t size) { - int protection = PROT_READ | PROT_WRITE; - int visibility = MAP_SHARED | MAP_ANONYMOUS; - return mmap( - NULL, - size, - protection, visibility, - -1, 0 - ); -} - comm_moves comm_moves_init() { return (comm_moves) { - create_shared_memory(sizeof(struct uci_move) * 50), + malloc(sizeof(struct uci_move) * 50), 0, 50 }; -- cgit v1.2.3