home *** CD-ROM | disk | FTP | other *** search
- Xref: sparky comp.unix.programmer:4017 comp.unix.wizards:3358 comp.unix.internals:1632
- Path: sparky!uunet!mcsun!sun4nl!orcenl!jhelberg
- From: jhelberg@nl.oracle.com (Joost Helberg)
- Newsgroups: comp.unix.programmer,comp.unix.wizards,comp.unix.internals
- Subject: Re: STREAMS help desperately needed
- Message-ID: <2559@nlsun1.oracle.nl>
- Date: 30 Jul 92 14:09:43 GMT
- References: <gram.712407467@aim1>
- Followup-To: comp.unix.programmer
- Organization: Oracle Europe
- Lines: 29
- X-Newsreader: Tin 1.1 PL3
-
- X-Disclaimer: This message was written by an unauthenticated user
- at Oracle Corporation. The opinions expressed are those
- of the user and not necessarily those of Oracle.
-
- gram@aim1.aztec.co.za (Graham Wheeler) writes:
- : No-one has responded to my previous posts about the ldterm STREAMS module, so
-
- : mp->b_cont = allocb(sizeof(struct termio),BPRI_HI);
- : iocp->ioc_count += sizeof(struct termio);
- : mp->b_cont->b_wptr = mp->b_cont->b_rptr+sizeof(struct termio);
- : }
- : tp = (struct termio *)mp->b_cont->b_datap;
- BANG, b_datap points to the datab structure, not the data which
- may contain the termio data!
- : tp->c_iflag = PAD->terminfo.c_iflag;
- : tp->c_oflag = PAD->terminfo.c_oflag;
- : tp->c_lflag = PAD->terminfo.c_lflag;
- destroying the structure in b_datap
-
- after some time the streams layers free up this message and they get
- confused finding flags in the datab --> crash.
-
- --
- Joost Helberg Rijnzathe 6
- jhelberg@oracle.nl NL-3454 PV De Meern
- jhelberg@nl.oracle.com The Netherlands
-
- Oracle Europe BV Product Line Development
- Phone: +31 3406 94211 Fax: +31 3406 65609
-