[comp.unix.questions] Help with SXT

ray@spca6.UUCP (Ray Price) (11/05/87)

Help..........
  I am very interested in using the System V.2 pseudo-device driver
known as SXT(7).  Unfortunately, the only documentation I have is
the single manual page for SXT(7).  

  I would be grateful to anyone in netland, who could give me some further
clues as to how these things work.  I have found several articles in books
that talked about streams.  But since we are stuck in V.2 we don't have 
streams yet.  Are there any books out there that have a chapter or even
just several pages on SXT(7)????

  We are not a source license holder so I can not simply look up the
source for shl(1) and see how it uses the devices.  Are there any
public domain programs, that illustrate the use of SXT(7)?????
Has some one got a small program that they used when they first started
working with SXT(7)???????

  I have guessed that a program to use SXT(7) must go something like this.....

  find an unused /dev/sxt/??0 and set permissions on /dev/sxt/??[0-7]
  open /dev/sxt/??0 and perform an ioctl call with command SXTIOCLINK
  open up at least one of the remaining channels
  fork - in child set stdin,stdout,stderr to /dev/sxt/??[1-7] that was opened
  -----at this point I am lost-----but it may be something like-----
  in child execute the ioctl call with SXTIOCWF
  in parent - read until command to switch is given then ioctl with SXTIOCSWTCH
  *magic*[generated by pressing control-z] will cause /dev/sxt/??0 to become
    the controlling channel again

  Can someone out there, suggest where the above design fails?????
  Can someone please give me more details on the arguments to give
     ioctl when using the commands SXTIOCWF or SXTIOCSWTCH?????
  
  Can someone tell me what purpose the SXTIOCTRACE command serves???
      Do I need to use it if I'm not using ptrace(2)????


  Any pointers, clues, code, or advice that you could give me on this
would be greatly appreciated!!!!


Ray Price   mit-eddie!uccba!spca6!ray
Voice -> 513 684-2987 or  FTS 684-2987

-------