/* Copyright (c) 2001-2009 by SoftIntegration, Inc. All Rights Reserved */
#include<semaphore.h>

int sem_post(sem_t *sem) {
    void *fptr;
    int retval;

    fptr = dlsym(_ChSemaphore_handle, "sem_post_chdl");
    if(fptr == NULL)  {
       printf("Error: %s(): dlsym(): %s\n", __func__, dlerror());
       return -1;
    }
    dlrunfun(fptr, &retval, sem_post, sem);
    return retval;
}
