Programmation of semaphores in Minix for embedded system.
Implementation in Minix 3.1.2 of semaphore's algorithm.
This module should be implemented in the kernel and called with:
int sem_init(int sem_id, int value);
int sem_down(int sem_id);
int sem_up(int sem_id);
int sem_status(int sem_id, int* value, int* num_block);
The maximum number of semaphores must be 10, the sem_id repersent a number from 0 to 9
There are some ERRNO's Minix configurations in the case of error.
The three first functions are normal functions in the semaphore algorithm, the last should done the value of semaphores and the process blocked on it.
The language used is ANSI C. The code should be easy to maintain and simple.