Guest User

Untitled

a guest
Nov 13th, 2016
112
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C 0.33 KB | None | 0 0
  1. #define PERM 0666
  2. #define MAXBUFF 80
  3.  
  4. typedef struct mem_msg {
  5.     int segment;
  6.     char buff[MAXBUFF];
  7. } Message;
  8.  
  9. static struct sembuf mem_lock[2] = { 0, 0, 0, 0, 1, 0 };
  10. static struct sembuf mem_unlock[1] = { 0, -1, 0 };
  11. static struct sembuf proc_wait[1] = { 1, -1, 0 };
  12. static struct sembuf proc_start[1] = { 1, 1, 0 };
Add Comment
Please, Sign In to add comment