-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathipc_lib.h
31 lines (22 loc) · 767 Bytes
/
ipc_lib.h
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
#pragma once
#include <stdio.h>
#include <stdlib.h>
#include <unistd.h>
#include <fcntl.h>
#include <sys/ioctl.h>
#include <errno.h>
#include <pthread.h>
#include "ipc_module_costants.h"
#include "ipc_user_macros.h"
void print_code(int err);
int install_group(group_t groupno, char* group_path, int lrn );
int uninstall_group(group_t groupno);
int open_group(group_t groupno);
int close_group(group_t groupno);
int send_msg(group_t groupno, char* payload, ssize_t payload_len);
int recv_msg(group_t groupno, char* payload, ssize_t payload_len);
int set_send_delay(group_t groupno, int delay);
int flush_delayed_messages(group_t groupno);
int revoke_delayed_messages(group_t groupno);
int sleep_on_barrier(group_t groupno);
int awake_barrier(group_t groupno);