> + struct sem sems[0];
I can't contribute much to the code itself, but [0] is an old GCC extension, for modern code sems[] should do the same things but is standard C.
> + struct sem sems[0];
I can't contribute much to the code itself, but [0] is an old GCC extension, for modern code sems[] should do the same things but is standard C.