#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 <lib.h>
#include <minix/syslib.h>
#include <minix/sysutil.h>

#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
