/* Copyright (c) 2001-2009 by SoftIntegration, Inc. All Rights Reserved */
#include<signal.h>
int (*ssignal (int sig, int (*disp)(int)))(int) {
  void *fptr;
  int (*retval)(int);

  fptr = dlsym(_ChSignal_handle, "ssignal_chdl");
  if(fptr == NULL)  {
     printf("Error: %s(): dlsym(): %s\n", __func__, dlerror());
     return (int (*)(int))SIG_DFL;
  }
  dlrunfun(fptr, &retval, ssignal, sig, disp);
  return retval;
}
