create core package
This commit is contained in:
@@ -0,0 +1,11 @@
|
||||
--- ncompress-4.2.4/compress42.c.2GB 2004-07-14 12:16:19.000000000 -0400
|
||||
+++ ncompress-4.2.4/compress42.c 2004-07-14 12:16:59.000000000 -0400
|
||||
@@ -1329,7 +1329,7 @@
|
||||
REG11 int boff;
|
||||
REG12 int n_bits;
|
||||
REG13 int ratio;
|
||||
- REG14 long checkpoint;
|
||||
+ REG14 unsigned long long checkpoint;
|
||||
REG15 code_int extcode;
|
||||
union
|
||||
{
|
||||
@@ -0,0 +1,11 @@
|
||||
--- ncompress-4.2.4/compress42.c.endians 2006-09-19 13:53:58.000000000 +0200
|
||||
+++ ncompress-4.2.4/compress42.c 2006-09-19 13:57:54.000000000 +0200
|
||||
@@ -432,7 +432,7 @@
|
||||
|
||||
union bytes
|
||||
{
|
||||
- long word;
|
||||
+ int word;
|
||||
struct
|
||||
{
|
||||
#if BYTEORDER == 4321
|
||||
@@ -0,0 +1,52 @@
|
||||
--- ncompress-4.2.4/compress42.c.lfs 2002-06-19 19:19:33.000000000 -0400
|
||||
+++ ncompress-4.2.4/compress42.c 2002-06-19 19:20:48.000000000 -0400
|
||||
@@ -130,6 +130,7 @@
|
||||
* Add variable bit length output.
|
||||
*
|
||||
*/
|
||||
+#include <unistd.h>
|
||||
#include <stdio.h>
|
||||
#include <fcntl.h>
|
||||
#include <ctype.h>
|
||||
@@ -168,30 +169,6 @@
|
||||
# define SIG_TYPE void (*)()
|
||||
#endif
|
||||
|
||||
-#ifndef NOFUNCDEF
|
||||
- extern void *malloc LARGS((int));
|
||||
- extern void free LARGS((void *));
|
||||
-#ifndef _IBMR2
|
||||
- extern int open LARGS((char const *,int,...));
|
||||
-#endif
|
||||
- extern int close LARGS((int));
|
||||
- extern int read LARGS((int,void *,int));
|
||||
- extern int write LARGS((int,void const *,int));
|
||||
- extern int chmod LARGS((char const *,int));
|
||||
- extern int unlink LARGS((char const *));
|
||||
- extern int chown LARGS((char const *,int,int));
|
||||
- extern int utime LARGS((char const *,struct utimbuf const *));
|
||||
- extern char *strcpy LARGS((char *,char const *));
|
||||
- extern char *strcat LARGS((char *,char const *));
|
||||
- extern int strcmp LARGS((char const *,char const *));
|
||||
- extern unsigned strlen LARGS((char const *));
|
||||
- extern void *memset LARGS((void *,char,unsigned int));
|
||||
- extern void *memcpy LARGS((void *,void const *,unsigned int));
|
||||
- extern int atoi LARGS((char const *));
|
||||
- extern void exit LARGS((int));
|
||||
- extern int isatty LARGS((int));
|
||||
-#endif
|
||||
-
|
||||
#define MARK(a) { asm(" .globl M.a"); asm("M.a:"); }
|
||||
|
||||
#ifdef DEF_ERRNO
|
||||
@@ -535,8 +512,8 @@
|
||||
char ofname[MAXPATHLEN]; /* Output filename */
|
||||
int fgnd_flag = 0; /* Running in background (SIGINT=SIGIGN) */
|
||||
|
||||
-long bytes_in; /* Total number of byte from input */
|
||||
-long bytes_out; /* Total number of byte to output */
|
||||
+long long bytes_in; /* Total number of byte from input */
|
||||
+long long bytes_out; /* Total number of byte to output */
|
||||
|
||||
/*
|
||||
* 8086 & 80286 Has a problem with array bigger than 64K so fake the array
|
||||
@@ -0,0 +1,41 @@
|
||||
Index: ncompress-4.2.4.4/Makefile.def
|
||||
===================================================================
|
||||
--- ncompress-4.2.4.4.orig/Makefile.def
|
||||
+++ ncompress-4.2.4.4/Makefile.def
|
||||
@@ -1,16 +1,16 @@
|
||||
# Makefile generated by build.
|
||||
|
||||
# C complier
|
||||
-#CC=cc
|
||||
+#CC=
|
||||
|
||||
# Install prefix
|
||||
DESTDIR=
|
||||
|
||||
# Install directory for binarys
|
||||
-BINDIR=/usr/local/bin
|
||||
+BINDIR=/usr/bin
|
||||
|
||||
# Install directory for manual
|
||||
-MANDIR=/usr/local/man/man1
|
||||
+MANDIR=/usr/share/man/man1
|
||||
|
||||
# compiler options:
|
||||
# options is a collection of:
|
||||
@@ -31,14 +31,14 @@ MANDIR=/usr/local/man/man1
|
||||
# -DDEF_ERRNO=1 Define error (not defined in errno.h).
|
||||
# -DMAXSEG_64K=1 -BITS=16 Support segment processsor like 80286.
|
||||
#
|
||||
-options= $(CFLAGS) $(CPPFLAGS) -DDIRENT=1 -DUSERMEM=800000 -DREGISTERS=3
|
||||
+options= $(CFLAGS) $(CPPFLAGS) -DDIRENT=1 -DSYSDIR=1 -DUTIME_H=1 -DUSERMEM=800000 -DREGISTERS=20 -DIBUFSIZE=1024 -DOBUFSIZE=1024
|
||||
|
||||
# libary options
|
||||
LBOPT= $(LDFLAGS)
|
||||
|
||||
|
||||
compress: Makefile compress42.c patchlevel.h
|
||||
- $(CC) -o compress $(options) "-DCOMPILE_DATE=\"`date`\"" compress42.c $(LBOPT)
|
||||
+ $(CC) $(LDFLAGS) $(options) "-DCOMPILE_DATE=\"`date`\"" compress42.c -o compress
|
||||
|
||||
install: compress
|
||||
[ -f $(DESTDIR)$(BINDIR)/compress ] && \
|
||||
Reference in New Issue
Block a user