From: H.J. Lu (hlu@eecs.wsu.edu)
Date: 02/21/93


From: hlu@eecs.wsu.edu (H.J. Lu)
Subject: Re: Porting MH-6.8 to Linux....
Date: 21 Feb 1993 20:31:27 GMT

In article <VISHAL.93Feb21191356@kedar.ee.iitb.ernet.in>, vishal@kedar.ee.iitb.ernet.in (Vishal Misra) writes:
|>
|> Hello,
|> I have been trying to get MH-6.8 to compile for Linux. The
|> compilation goes pretty cleanly until it reaches some functions which
|> want to access the internals of struct FILE. Knowledgable people tell
|> me that there is no POSIX standard for FILE, only for stdio. MH claims
|> to "know" that FILE has structures like _ptr and _cnt while the linux
|> stdio.h throws up _gptr , _egptr etc. So my questions are :
|>
|> 1) Has anyone done the said port, or alternatively, were
|> similar problems faced for other OS's and how they were ironed out.

MH-6.8 is unportable. You have to rewrite that part using stdio only.
Not all systems have the same FILE. Take a look at HP-UX 8.0.x.

|> 2) What is the correct mapping between the "standard"
|> FILE to the GNU implementation.
|>

No. MH-6.8 tries to skip stdio and talk to FILE directly. No way you can
do that on all systems. That part of MH-6.8 is badly coded.

|> Answer via email/posting - I try to keep up with the groups
|> regularly,
|> Thanks,
|> Vishal
|>
|>

H.J.