source: tags/minix3.1.2a-orig/minix/servers/ss/semaforo.h@ 13

Last change on this file since 13 was 13, checked in by Mattia Monga, 13 years ago

Server semaforo

File size: 463 bytes
Line 
1#ifndef SEMA_H
2#define SEMA_H
3
4#define _SYSTEM 1 /* get OK and negative error codes */
5#define _MINIX 1 /* tell headers to include MINIX stuff */
6
7#include <lib.h>
8#include <minix/syslib.h>
9#include <minix/sysutil.h>
10
11#define MAX_CODA 100
12
13typedef struct{
14 int s;
15 int coda[MAX_CODA];
16 int quanti;
17} semaforo;
18
19
20_PROTOTYPE(int accoda, (semaforo *ss, int who) );
21_PROTOTYPE(int scoda, (semaforo *ss) );
22
23
24#endif
Note: See TracBrowser for help on using the repository browser.