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 |
|
---|
13 | typedef 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.