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

struct passwd *getpwnam(const char *name) {
    void *fptr;
    struct passwd * retval;

    fptr = dlsym(_ChPwd_handle, "getpwnam_chdl");
    if(fptr == NULL)  {
       printf("Error: %s(): dlsym(): %s\n", __func__, dlerror());
       return NULL;
    }
    dlrunfun(fptr, &retval, getpwnam, name);
    return retval;
}
