typedef struct {
} Gsem_t;
Gsem_t *gsem_create(int initval)
{
Gsem_t *g;
if (initval < 0) return NULL;
g = (Gsem_t *) malloc(sizeof(Gsem_t));
return g;
}
void gsem_P(Gsem_t *g)
{
}
void gsem_V(Gsem_t *g)
{
}