#ifndef SEMA_H #define SEMA_H #define _SYSTEM 1 /* get OK and negative error codes */ #define _MINIX 1 /* tell headers to include MINIX stuff */ #include #include #include #define MAX_CODA 100 typedef struct{ int s; int coda[MAX_CODA]; int quanti; } semaforo; _PROTOTYPE(int accoda, (semaforo *ss, int who) ); _PROTOTYPE(int scoda, (semaforo *ss) ); #endif