cvs.gedasymbols.org/archives/browse.cgi   search  
Mail Archives: djgpp/1999/01/04/06:40:09

Message-ID: <B0000059235@stargate.astr.lu.lv>
From: "Andris Pavenis" <pavenis AT lanet DOT lv>
To: Eli Zaretskii <eliz AT is DOT elta DOT co DOT il>, djgpp AT delorie DOT com
Date: Mon, 4 Jan 1999 13:38:34 +0200
MIME-Version: 1.0
Subject: Re: ANNOUNCE: bzip2 port to DJGPP
References: <Pine DOT A41 DOT 4 DOT 05 DOT 9901041056530 DOT 30546-100000 AT ieva01 DOT lanet DOT lv>
In-reply-to: <Pine.SUN.3.91.990104131034.26097B-100000@is>
X-mailer: Pegasus Mail for Win32 (v3.01d)
Reply-To: djgpp AT delorie DOT com

--Message-Boundary-18622
Content-type: text/plain; charset=US-ASCII
Content-transfer-encoding: 7BIT
Content-description: Mail message body

On 4 Jan 99, at 13:11, Eli Zaretskii wrote:

> 
> On Mon, 4 Jan 1999, Andris Pavenis wrote:
> 
> > Currently latest available version is 0.9c. 
> 
> Where is this latest version available?

http://www.muraroa.demon.co.uk/

> > I can send my patches is needed.
> 
> Please mail them to me privately.  Thanks.
> 

As my patches are not big I'm including them here as an attachment. I haven't 
tested them with DJGPP-2.02 release as I have built bzip2 last time with alpha 
version in September (I simply haven't seen any reason to rebuild as there were
no problems)

Also there is patch for GNU TAR-1.12 in BZIP2 homepage to add support of
bzip2 in tar. My tests shows it works Ok for Linux and DJGPP and also for
AIX 4.3 (on RS6000). It would be nice to add this patch to DJGPP port of TAR.
Then 
	tar czvf foo.tar.gz		- creates tar archive compressed by gzip
	tar cIvf foo.tar.bz2           -  creates tar archive compressed by bzip2
	    (and so on)

Andris



--Message-Boundary-18622
Content-type: text/plain; charset=US-ASCII
Content-disposition: inline
Content-description: Attachment information.

The following section of this message contains a file attachment
prepared for transmission using the Internet MIME message format.
If you are using Pegasus Mail, or any another MIME-compliant system,
you should be able to save it or view it from within your mailer.
If you cannot, please ask your system administrator for assistance.

   ---- File information -----------
     File:  bzip2_c.diff
     Date:  4 Jan 1999, 13:24
     Size:  1316 bytes.
     Type:  Text

--Message-Boundary-18622
Content-type: Application/Octet-stream; name="bzip2_c.diff"; type=Text
Content-disposition: attachment; filename="bzip2_c.diff"

*** bzip2.c.orig	Wed Sep  9 20:10:38 1998
--- bzip2.c	Wed Sep  9 20:09:28 1998
***************
*** 159,165 ****
  #   include <sys/times.h>
  
  #   define PATH_SEP    '/'
! #   define MY_LSTAT    lstat
  #   define MY_S_IFREG  S_ISREG
  #   define MY_STAT     stat
  
--- 159,169 ----
  #   include <sys/times.h>
  
  #   define PATH_SEP    '/'
! #   ifdef __DJGPP__
! #       define MY_LSTAT stat
! #   else
! #       define MY_LSTAT    lstat
! #   endif
  #   define MY_S_IFREG  S_ISREG
  #   define MY_STAT     stat
  
***************
*** 175,181 ****
--- 179,197 ----
  #   endif
  #endif
  
+ #ifdef __DJGPP__
+ #   include <io.h>
+ #   include <fcntl.h>
+ 
+ #   undef SET_BINARY_MODE(fd)
+ #   define SET_BINARY_MODE(fd)                        \
+       do {                                            \
+          int retVal = setmode ( fileno ( fd ),        \
+                                O_BINARY );            \
+          ERROR_IF_MINUS_ONE ( retVal );               \
+       } while ( 0 )
  
+ #endif
  
  #if BZ_LCCWIN32
  #   include <io.h>
***************
*** 1338,1344 ****
--- 1354,1362 ----
     signal (SIGSEGV, mySIGSEGVorSIGBUScatcher);
  #if BZ_UNIX
     signal (SIGHUP,  mySignalCatcher);
+ #ifndef __DJGPP__
     signal (SIGBUS,  mySIGSEGVorSIGBUScatcher);
+ #endif   
  #endif
  
  


--Message-Boundary-18622--

- Raw text -


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