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

int mq_setattr(mqd_t mqdes, const struct mq_attr *mqstat,
                struct mq_attr *omqstat) {
    void *fptr;
    int retval;

    fptr = dlsym(_ChMqueue_handle, "mq_setattr_chdl");
    if(fptr == NULL)  {
       printf("Error: %s(): dlsym(): %s\n", __func__, dlerror());
       return -1;
    }
    dlrunfun(fptr, &retval, mq_setattr, mqdes, mqstat, omqstat);
    return retval;
}
