SysV.4 Streams and Modules programming problem: 1

SysV.4 Streams and Modules programming problem: 1

Post by Nick Levert » Fri, 01 Oct 1993 09:22:59




>I need to catch the program's IOCTLs in order to know when it wants me
>to echo keyboard input and when I mustn't. I read up on Streams and
>modules and thought I could do it by creating a pipe like this:

>   myprog <--> pckt <--> ptem <--> ldterm <--> ttycompat <--> oldprog


a pseudo-tty thusly:

:          myprog<-->pckt<-->pseudo-tty master
:        |
:        |
: oldprog<-->ttcompat<-->ldterm<-->ptem<-->pseudo-tty slave

Indeed, I have done so, and all is now absolutely triffic. Thanks again, Guy!

Nick Leverton
--
"Politician! Where's your credibility ?
You promised to lay down your life to set your people free"  -  Hugh Masekela.

 
 
 

1. SysV.4 Streams and Modules programming problem: 2

To help with the problem I detailed in my previous post, I wanted to
trace inter-module messages. Now, I have typed in (sans printing errors)
and installed the 'dump' module from the STREAMS Programmer's Reference.

But I can't make it work properly. When inbetween two other modules, it
seems to work. But when adjacent to the stream head, any application
write(2) returns zero and no data is written. This means I don't get a
full trace of what's going through the pipe.

Is there something special that a Streams module has to do to accept a
message from a stream head ? All I can think of is that the dump module
has no service routine. However I had to guess somewhat for installing
it, as the manual refers to /etc/master.d as a configuration file. I
have only /etc/conf/cf.d/mdevice, /etc/conf/pack.d/Driver.o and
/etc/conf/another.dot-d-which-I-forget-at-this-time-of-night.

Again, many thanks for any help.

Nick Leverton
--
Lies, damned lies and user documentation.

2. how to know a string inside another string

3. SysV.4 Streams and Modules programming problem: 1

4. Mac LC II , netbsd and serial communications

5. stream module programming problem...

6. System Environments in Smit

7. Are WD IDE drives OK?

8. What happens if a stream module is pushed onto multiple stream driver?

9. Solaris x86 failure to push streams module into network stream

10. How to push STREAMS module into socket stream

11. SysV Streams & Linux

12. Streams and Critical Regions on SYSV 4.0