delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/1997/11/14/11:30:29

From: epa AT datcon DOT co DOT uk (Ed Avis)
Newsgroups: comp.os.msdos.djgpp
Subject: bzip2 port
Date: Fri, 14 Nov 1997 15:14:32 GMT
Organization: UUNet UK server (post doesn't reflect views of UUNet UK)
Lines: 21
Message-ID: <346c69af.164640150@news-direct>
NNTP-Posting-Host: web-proxy.datcon.co.uk
To: djgpp AT delorie DOT com
DJ-Gateway: from newsgroup comp.os.msdos.djgpp

Excuse me barging in here, but I noticed a thread which started with
"bzip2 port", although it has now wandered somewhere else entirely.

It's easy to compile bzip2 with DJGPP. The only problem is the call to
lstat() which AFAIK DJGPP doesn't provide.

You can simply cut out this call (in function notABogStandardFile() or
something). Since DOS doesn't have pipes, sockets etc. this doesn't
cause any problems. There is no danger of overwriting directories 
either.

Of course, this isn't a "proper" port. Chopping out bits of code until
something works is hardly good coding practice :-)

However, it works fine to compress and decompress files.

I no longer have the source for the version I compiled, but you can
simply do what I did. Or if anyone wants a binary, mail me.

--
Ed Avis

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019