/* Copyright (c) 2001-2009 by SoftIntegration, Inc. All Rights Reserved */
int getgrgid_r(gid_t gid, struct group *resultbuf, char *buffer, size_t buflen, struct group ** result) {
    void *fptr;
    int retval;

    fptr = dlsym(_ChGrp_handle, "getgrgid_r_chdl");
    if(fptr == NULL) {
        fprintf(_stderr, "Error: %s(): dlsym(): %s\n", __func__,  dlerror());
        return -1;
    }
    dlrunfun(fptr, &retval,getgrgid_r, gid, resultbuf, buffer, buflen, result);
    return retval;
}
