home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #16 / NN_1992_16.iso / spool / comp / unix / programm / 4017 < prev    next >
Encoding:
Internet Message Format  |  1992-07-30  |  1.7 KB

  1. Xref: sparky comp.unix.programmer:4017 comp.unix.wizards:3358 comp.unix.internals:1632
  2. Path: sparky!uunet!mcsun!sun4nl!orcenl!jhelberg
  3. From: jhelberg@nl.oracle.com (Joost Helberg)
  4. Newsgroups: comp.unix.programmer,comp.unix.wizards,comp.unix.internals
  5. Subject: Re: STREAMS help desperately needed
  6. Message-ID: <2559@nlsun1.oracle.nl>
  7. Date: 30 Jul 92 14:09:43 GMT
  8. References: <gram.712407467@aim1>
  9. Followup-To: comp.unix.programmer
  10. Organization: Oracle Europe
  11. Lines: 29
  12. X-Newsreader: Tin 1.1 PL3
  13.  
  14. X-Disclaimer: This message was written by an unauthenticated user
  15.               at Oracle Corporation.  The opinions expressed are those
  16.               of the user and not necessarily those of Oracle.
  17.  
  18. gram@aim1.aztec.co.za (Graham Wheeler) writes:
  19. : No-one has responded to my previous posts about the ldterm STREAMS module, so
  20.  
  21. :                 mp->b_cont = allocb(sizeof(struct termio),BPRI_HI);
  22. :                 iocp->ioc_count += sizeof(struct termio);
  23. :                 mp->b_cont->b_wptr = mp->b_cont->b_rptr+sizeof(struct termio);
  24. :             }
  25. :             tp = (struct termio *)mp->b_cont->b_datap;
  26. BANG, b_datap points to the datab structure, not the data which
  27. may contain the termio data!
  28. :             tp->c_iflag = PAD->terminfo.c_iflag;
  29. :             tp->c_oflag = PAD->terminfo.c_oflag;
  30. :             tp->c_lflag = PAD->terminfo.c_lflag;
  31. destroying the structure in b_datap
  32.  
  33. after some time the streams layers free up this message and they get
  34. confused finding flags in the datab --> crash.
  35.  
  36. --
  37.    Joost Helberg                                Rijnzathe 6
  38.    jhelberg@oracle.nl                           NL-3454 PV De Meern
  39.    jhelberg@nl.oracle.com                       The Netherlands
  40.  
  41.    Oracle Europe BV                             Product Line Development    
  42.    Phone: +31 3406 94211                        Fax:   +31 3406 65609
  43.