#pragma once #include #define REQ_QUEUE "/winnie_req" #define NAME_MAXLEN 64 typedef struct { pid_t pid; int want; char replyq[NAME_MAXLEN]; } req_msg_t; typedef struct { int granted; int remain; } rep_msg_t;