/* Copyright (c) 2001-2009 by SoftIntegration, Inc. All Rights Reserved */
int fgetpwent_r(FILE *stream, struct passwd *resultbuf, char *buffer, size_t buflen, struct passwd ** result) {
    void *fptr;
    int retval;

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