[comp.unix.internals] Why is the argument to sendmsg

booloo@lll-crg.llnl.gov (Mark Boolootian) (02/02/91)

Someone recently brought to my attention the fact that the documentation ( for
at least BSD4.3) for sendmsg() showed the following prototype:

	cc = sendmsg(s,msg,flags)
	int cc,s;
	struct msghdr msg[];
	int flags;

I'd like to know if anyone has an explanation as to why the msghdr structure
is depicted as an array rather than a pointer.  Even if you did pass in an
array of msghdr's, sendmsg() only would consider the first structure in the
array.  Is there some obscure reason from the dim past as to why the documen-
tation shows the above?

Thanks in advance.  I would appreciate response via email.

cheers,
mb

--

booloo@lll-crg.llnl.gov