Alex Chamberlain wrote:
> What is the stream head size (i.e. maximum size of a message buffer) with
> LiS?
>
> My own informal tests suggest that it is 16K, but I want to make sure.
A quick glance at the code does not reveal any restrictions on the size of a
message allocated via allocb(). I don't see putpmsg() restricting the size.
How did you arrive at 16K? The following little program suggests that there is
no such restriction.
-- Dave
#include <sys/stropts.h>
#include <stdio.h>
#include <fcntl.h>
char buf[70000] ;
strbuf_t wrbuf = {100000, sizeof(buf), buf} ;
int main(void)
{
int fd ;
int rslt ;
fd = open("/dev/loop_clone", O_RDWR) ;
if (fd < 0)
{
perror("/dev/loop_clone") ;
exit(1) ;
}
rslt = putmsg(fd, NULL, &wrbuf, 0) ;
if (rslt < 0)
perror("putmsg") ;
return(0) ;
}
----------------------- *THE_LIST_HAS_MOVED* -------------------------------
It is now hosted at gsyc.escet.urjc.es.
To (un)subscribe send a mail to <[EMAIL PROTECTED]>
To send a contribution send a mail to <[EMAIL PROTECTED]>
Web archives for lists can be found at http://gsyc.escet.urjc.es/lists