Streams support in the kernel for linux?  There is a project called

'LiS' for "Linux Streams' which we use in one of our products, but no,

it is not a feature of the stock kernel. See:

ftp://ftp.gcom.com/pub/linux/src/

Some of the niceties of SVR4 are in the stock kernel/glibc, like the

'poll()' system call,  which is the main thing provided by the

stropts.h header file.

-Eric.

function

Chris Fowler writes:

 > Is there streams support in Linux 2.2.13.

 > 

 > I have found streams support in the include files os stropts.h  but when the

 > shor program I write tests 2 devices I get the following messages:

 > 

 > /dev/ptya0:  Is not a streams device

 > /dev/ttyp0:  Input/Output Error

 > 

 > I undestand the error messages and this leads me the believe their are now

 > streams based pseudo ttys.

 > 

 > ---------- Cut Here ------

 > /* streams.c - Open a file and test if it has streams capability */

 > /* Only one argument allowed: Name of file to test               */

 > 

 > #include 

 > #include 

 > #include 

 > #include 

 > #include 

 > #include 

 > #include 

 > 

 > int

 > main(int argc, char *argv[])

 > {

 >         /* File descriptior to test */

 >         int fd;                                

 > 

 >         /* Message for perror */

 > 

 >         /* counter for walking thrugh arguments */

 >         int counter = 0;

 > 

 >         /* Make sure we have at least one argument */

 >         if (argc < 2)

 >         {

 >                 printf("usage: streams [device names to test] \n");

 >                 exit(1);

 >         }

 > 

 >         for (counter = 1; counter < argc; counter++)

 >         {

 >                 /* Try to open file specified */

 >                 if ((fd = open(argv[counter],O_RDONLY)) == -1)

 >                 {

 >                         /* There must have been and error opening the file

 > */

 >                         fprintf(stderr,"streams: %s:

 > %s\n",argv[counter],strerror(errno));

 >                         continue;

 >                 }

 > 

 >                 /* Test to see if it supports streams */

 >                 if ((isastream(fd)) == 0)

 >                         printf("%s is not a streams

 > device\n",argv[counter]);

 >                 else

 >                         printf("%s is a streams device\n",argv[counter]);

 > 

 >         }

 >         /* Complete.  Return 0 and terminate */

 >         return 0;

 > }

 > 

 > -------------- Cut Here ----------------

 > --

 > To unsubscribe: mail ">majordomo@ale.org with "unsubscribe ale" in message body.


--
To unsubscribe: mail ">majordomo@ale.org with "unsubscribe ale" in message body.