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

key_t ftok(char *path, int id) {
    void *fptr;
    key_t retval;

    fptr = dlsym(_ChSysIpc_handle, "ftok_chdl");
    if(fptr == NULL)  {
       printf("Error: %s(): dlsym(): %s\n", __func__, dlerror());
       return -1;
    }
    dlrunfun(fptr, &retval, ftok, path, id);
    return retval;
}
