kirill-refactor
This commit is contained in:
16
mine/lab_5/common.h
Normal file
16
mine/lab_5/common.h
Normal file
@@ -0,0 +1,16 @@
|
||||
#pragma once
|
||||
#include <sys/types.h>
|
||||
|
||||
#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;
|
||||
Reference in New Issue
Block a user