I don't think you can do it directly with either CMUCL Alien or UFFI. However, you might to be able to translate into versions of these functions that are defined with specific numbers of arguments.
The slick way to do it would be to have a macro that, when it sees a call with a number of arguments it hasn't seen before, automatically defines the appropriate function (i.e., call-pvm-packf-six-args). I don't know if this possible or not; I forget the details of whether you have to declare all the functions you're accessing before loading the library or not. The less slick way would be to just predeclare some number of functions, and impose a maximum argument limit --- no one's going to want to call this thing with *that* many arguments, and if they do, they go into the code and change one constant. Would either of these actually work, or is there some deeper problem I'm missing? I haven't actually tried to do this, although I've been meaning to. rif
