Many hyperlinks are disabled.
Use anonymous login
to enable hyperlinks.
Changes In Branch new-driver Excluding Merge-Ins
This is equivalent to a diff from b95899fb13 to 3c2ffdbe79
|
2020-04-22
| ||
| 18:27 | WIP Leaf check-in: a666f280bd user: rkeene tags: new-driver-wip | |
|
2013-03-12
| ||
| 13:36 | Updated to include comment in version script indicating that it is automatically generated Leaf check-in: 3c2ffdbe79 user: rkeene tags: new-driver | |
|
2013-03-11
| ||
| 21:17 | Updated to correctly generate aclocal.m4 check-in: ee81d71865 user: rkeene tags: new-driver | |
|
2013-03-04
| ||
| 23:32 | Create new branch named "new-driver" check-in: 962bbd984e user: rkeene tags: new-driver | |
| 23:29 | Updated module loading to print out loading failure reason Leaf check-in: b95899fb13 user: rkeene tags: trunk | |
| 23:28 | Added new macro for printing errors with formatting check-in: 8efd79fae0 user: rkeene tags: trunk | |
Added Docs/TODO.
> > > > > > > > > > > > > > > > > > > > > > > > > | 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 | Finish writing dact.conf options handlers a. Archive b. Pre/Post Install script # x. Darwin: Does not set file permissions (fixed) y. Does not handle large files z. Does not store original file permissions. i. auto-upgrade for modules ii. fix modules everywhere iii. sign modules iv. default to modules v. module version stuff vi. commercial modules 1. Get more compression algorithms 2. factor 3. --> lha (not GPL) 4. --> arj (not GPL) 5. --> rar (not GPL, shareware) 6. lzw 7. Document code. ... n. Write better documentation. |
Added Docs/TODO.ideas.
> > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > | 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 | From bugoptushome.com.au Thu May 10 21:40:21 2001 Date: Sun, 06 May 2001 17:46:35 +1000 From: Glenn McGrath <bugoptushome.com.au> To: Roy Keene <dactrkeene.org> Subject: dact: replacing tar Hello again, some more thoughts for you to consider. .tar.gz really sucks, im writting some code that works on files inside a .tar.gz in busybox and its a real hassle, i have to fork and uncompress in a child process and feed the uncompressed data back the main function that can untar it. The problem stems from the fact that the tar file is compressed rather than the individual files, if people did .gz.tar that it would be easy to work on individual files within the archive, but it wouldnt get as good compression due to the probably reduced block size (if the files are small). The loss in compression from appending files compressed with dact probably wouldnt be as bad as .tar.gz as dact can take advantage of different compresion methods for small files. The real reason i would like to see this could also tie in well with your url idea that you have been working on. If dact something like an index file that had a list of filenames, their offset and compressed size, then it would be possible to download and unpack only one file within an archive. e.g. linux-2.4.4.tar.gz is about 20MB, say i want to look at the ./README file, to do so i have to download the entire 20MB, uncompress it, untar it, then access README. In would be good to start the download of linux-2.4.4.dct and read untill the end of the index section of the file and close the connection (or have the index file seperate), then with the index file i would know where abouts in the linux-2.4.4.dct the ./README file starts, so we could open a connection and start resuming the download from the offset of the ./README, rather than from the start of the file. You have mentioned you had ideas for combining multiple compressed files, so hopefully something like this could be worked into your plans. Glenn |
Changes to Docs/file_format.txt.
1 2 3 4 5 |
{MAGIC(4bytes)}
{VERSION(3bytes)[maj,min,rev]}
{ORIG_FILE_SIZE(8bytes)} -- Was 4bytes before 0.8.38
{NUM_BLOCKS(4bytes)}
{BLOCK_SIZE_UNCOMPR(4bytes)},
| | | > | | > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > | 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 |
{MAGIC(4bytes)}
{VERSION(3bytes)[maj,min,rev]}
{ORIG_FILE_SIZE(8bytes)} -- Was 4bytes before 0.8.38
{NUM_BLOCKS(4bytes)}
{BLOCK_SIZE_UNCOMPR(4bytes)},
{GLOBAL_OPTIONS(1byte)}
{EXTD_SIZE(4bytes)} -- 8bytes if GLOBAL_OPTIONS includes LARGE_EXTD_AREA
(EXTD):{
{OPTION(1byte)}
{OPTION_IS_CRITICAL(1byte)} -- Only present if the EXTD_AREA_INCLUDES_CRITICAL bit is set in GLOBAL_OPTIONS
{OPTION_SIZE(4bytes)} -- 8bytes if GLOBAL_OPTIONS includes LARGE_EXTD_AREA
{OPTION_VAL(OPTION_SIZE bytes)}
}
(BLOCK):{
{ALGO(1byte)}
{BLOCK_SIZE([BYTESIZE(BLOCK_SIZE)] bytes)}
{BLOCK(BLOCK_SIZE bytes)}
}
*OPTIONAL: {MAGIC_PEOF(4 bytes), if found:}
{ORIG_FILE_SIZE(8bytes)} -- Was 4bytes before 0.8.38
------
MAGIC = {0x44, 0x43, 0x54, 0xC3}
MAGIC_PEOF = {0xFF, 0x3F, 0xDE, 0x08}
------
GLOBAL_OPTIONS (bitmask):
0x1 LARGE_EXTD_AREA (added in 0.9.0)
0x2 EXTD_AREA_INCLUDES_CRITICAL (added in 0.9.0)
0x4 RESERVED
0x8 RESERVED
0x10 RESERVED
0x20 RESERVED
0x40 RESERVED
0x80 RESERVED
------
EXTD Area OPTIONS:
0 CRC (adler32) of compressed file in network byte order (Integer)
1 CRC (adler32) of uncompressed file in network byte order (Integer)
2 Time stamp of original file (ASCII of ISO8601)
3 Basic UNIX permissions of original file (Integer)
4 Original filename (ASCII)
5 MD5 of original file (binary, 16 bytes)
6 Description (ASCII)
7 URL (ASCII) to download data from instead of local copy (may
occur multiple times, will be tried in order -- first
working URL is used)
8 URL file (ASCII) path to file containing new-line separated
URLs (may occur multiple times, will be tried in order --
first working URL is used)
9 Cipher (Integer)
10 No-op
11 IDXDATA (Not used) ?
12 SFX length (Not used) ?
13 SHA256 of original file (binary)
------
ALGO values:
0 Uncompressed
1 RLE Compression
2 Delta Compression
3 Text Compression
4 Zlib Compression
5 Modified Zlib Compression
6 Seminibble Encoding
7 Range Encoding
8 Second Modified Zlib Compression
9 Bzip2 Compression
10 Factor Compression
11 Bitsums Compression
12 Text RLE Compression
13 LZO-1x Compression
14 LZO-1y Compression
15 LZO-2a Compression
255 Reserved / Invalid
|
Changes to Makefile.in.
|
| < < < | < < < < | | < | | < < | < < < < < | < > | < | < > < > | < < < < > > > > | > > | > > > > < < > | | < < < | | | | | > | | | | | > > | | | | > > | < < > | > > > | < < > < > > | > > | < | < < < < < < < < < < < < < < < < | < < < | < < < < < < < < < < < < < < < < < < < < < | 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 |
# Tools
CC = @CC@
AR = @AR@
RANLIB = @RANLIB@
CFLAGS = @CFLAGS@
LDFLAGS = @LDFLAGS@
CPPFLAGS = @CPPFLAGS@
SHOBJFLAGS = @SHOBJFLAGS@
SHOBJLDFLAGS = @SHOBJLDFLAGS@
# Paths
prefix = @prefix@
exec_prefix = @exec_prefix@
bindir = @bindir@
libdir = @libdir@
# Target objects
LIBOBJS = libdact.o
SHLIBOBJS = libdact_shr.o
SRCOBJS = $(LIBOBJS:.o=.c)
# Default build target
all: libdact.@SHOBJEXT@ libdact.@AREXT@
# Specific build rules
## Build shared object
libdact.@SHOBJEXT@: $(SHLIBOBJS) libdact.vers
$(CC) $(CFLAGS) $(SHOBJLDFLAGS) -o libdact.@SHOBJEXT@ $(LDFLAGS) $(SHLIBOBJS)
@WEAKENSYMS@ libdact.@SHOBJEXT@
@REMOVESYMS@ libdact.@SHOBJEXT@
## Build static object
libdact.@AREXT@: libdact_combined_shr.o
@WEAKENSYMS@ libdact_combined_shr.o
@REMOVESYMS@ libdact_combined_shr.o
$(AR) cr libdact.@AREXT@ libdact_combined_shr.o
$(RANLIB) libdact.@AREXT@
## Build amalgamation of source to build a single object file
libdact_combined.c: $(SRCOBJS)
cat $(SRCOBJS) > libdact_combined.c
## Build GNU LD version script to strip symbols
libdact.vers: libdact.syms.in
echo '/* This file is automatically generated. */' > libdact.vers
echo '{' >> libdact.vers
echo ' global:' >> libdact.vers
for symbol in `cat libdact.syms.in | sed 's/^@''SYMPREFIX@//'`; do \
echo " $${symbol};"; \
done >> libdact.vers
echo ' local:' >> libdact.vers
echo ' *;' >> libdact.vers
echo '};' >> libdact.vers
## Build structures of registered components
### Compression algorithms
algorithms.h algorithms.c: algorithms.h.in algorithms.c.in registration/compression
false
### Encryption algorithms
ciphers.h ciphers.c: ciphers.h.in ciphers.c.in registration/compression
false
# Generic build rules
%.o: %.c
$(CC) $(CPPFLAGS) $(CFLAGS) -o "$@" -c "$^"
%_shr.o: %.c
$(CC) $(CPPFLAGS) $(CFLAGS) $(SHOBJFLAGS) -o "$@" -c "$^"
# Dependencies
libdact_combined.o: libdact_combined.c
libdact_combined_shr.o: libdact_combined.c
libdact.o: libdact.c
libdact_shr.o: libdact.c
# Cleanup targets
clean:
rm -f $(LIBOBJS) $(SHLIBOBJS)
rm -f libdact.@SHOBJEXT@ libdact.@AREXT@ dact@EXE@
rm -f libdact_combined_shr.o libdact_combined.c
distclean: clean
rm -f config.h Makefile libdact.syms
rm -f config.status config.log
mrproper: distclean
./build/autogen.sh distclean
# Make directive targets
.PHONY: all clean distclean mrproper
|
Deleted TODO.
|
| < < < < < < < < < < < < < < < < < < < < < < < < < |
Deleted TODO.ideas.
|
| < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < |
Deleted aclocal.m4.
|
| < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < |
Added build/autogen.sh.
> > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > | 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 |
#! /bin/bash
# Define list of tools copied in and files generated
tools=(config.sub config.guess install-sh)
files=(configure aclocal.m4 config.h.in libdact.vers)
# Start in the source directory
cd "$(dirname "$(which "$0")")/.." || exit 1
# Verify that we are operating in the correct directory
if [ ! -e 'configure.ac' ]; then
echo "ERROR: Unable to find appropriate directory to build autoconf in"
exit 1
fi
# Clean-up before starting
rm -f "${tools[@]}" "${files[@]}"
rm -rf build/aclocal
# If all we were asked to do was clean, we are done
if [ "$1" = 'clean' -o "$1" = 'distclean' ]; then
exit 0
fi
# Create configure script
## Create aclocal.m4
mkdir build/aclocal
### Download third-party autoconf macros
wget -o /dev/null -O build/aclocal/shobj.m4 http://rkeene.org/devel/autoconf/shobj.m4
wget -o /dev/null -O build/aclocal/versionscript.m4 http://rkeene.org/devel/autoconf/versionscript.m4
### Create aclocal.m4 with all appropriate contents
aclocal --warnings=none -I "$(pwd)/build/aclocal" --install
## Create configure script itself
autoconf
## Create config.h
autoheader
## Remove cache directory created by "autoconf"
rm -rf autom4te.cache
# Copy in all tools required by configure script
for dir in /usr/share/automake-*; do
all_found='1'
for tool in "${tools[@]}"; do
if [ ! -e "${dir}/${tool}" ]; then
all_found='0'
fi
done
if [ "${all_found}" = '1' ]; then
for tool in "${tools[@]}"; do
cp "${dir}/${tool}" .
done
break
fi
done
# Create "libdact.vers" (GNU ld version script) from "libdact.syms.in" which
# is a list of public symbols
rm -f libdact.vers
make -f Makefile.in libdact.vers
# Terminate
exit 0
|
Changes to build/cleanup.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 |
#!/bin/bash
if [ -z "${UTIL}" ]; then
echo "Run outside of makearch?"
exit 1
fi
if [ ! "${SNAPSHOT}" = "1" ]; then
VER_MAJ=`echo $VERS | cut -f 1 -d .`
VER_MIN=`echo $VERS | cut -f 2 -d .`
VER_REV=`echo $VERS | cut -f 3 -d .`
printf "%03i%03i%03i\n" $VER_MAJ $VER_MIN $VER_REV > VERSION
DEBUG="--disable-debug"
else
echo "SNAPSHOT." > VERSION
DEBUG="--enable-debug"
fi
rm -f makearch.sh .* *.dct *.bak *.swp *.exe makesnapshot.sh *.o joe* bob* f 2>/dev/null >/dev/null
| > > < < < < < < < < < < < < < < < < < < < < < | | 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 |
#!/bin/bash
if [ -z "${UTIL}" ]; then
echo "Run outside of makearch?"
exit 1
fi
./build/autogen.sh
if [ ! "${SNAPSHOT}" = "1" ]; then
VER_MAJ=`echo $VERS | cut -f 1 -d .`
VER_MIN=`echo $VERS | cut -f 2 -d .`
VER_REV=`echo $VERS | cut -f 3 -d .`
printf "%03i%03i%03i\n" $VER_MAJ $VER_MIN $VER_REV > VERSION
DEBUG="--disable-debug"
else
echo "SNAPSHOT." > VERSION
DEBUG="--enable-debug"
fi
rm -f makearch.sh .* *.dct *.bak *.swp *.exe makesnapshot.sh *.o joe* bob* f 2>/dev/null >/dev/null
exit 0
|
Changes to build/makearch.info.
1 2 3 4 5 | # This is the name of the utility, it will be prefixed to the tarball name UTIL="dact" # This is the name of output files that should exist after configure # procedures. | | | | 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 |
# This is the name of the utility, it will be prefixed to the tarball name
UTIL="dact"
# This is the name of output files that should exist after configure
# procedures.
BINS=""
# This lists the name of files that are required to exist
REQS=""
# Version of utility, if empty it will be guessed.
# VERS=""
# Space sperated list of documents, if they exist, they will be
# prefixed with the contents of the DOC_HDR file and substitution
# will occur:
# @@UTIL@@ becomes the utility name ${UTIL}
# @@VERS@@ becomes the utility version
# @@DATE@@ becomes the current date
DOCS="AUTHORS README Docs/TODO INSTALL ChangeLog Docs/TODO.ideas Docs/config_help.txt Docs/dact.txt Docs/INSTALL"
DOC_HDR="HEADER"
# This script is executed immediately prior to creation of the
# tarball
AFTER=""
BEFORE="build/cleanup"
|
| ︙ | ︙ |
Changes to cipher_chaos.c.
| ︙ | ︙ | |||
38 39 40 41 42 43 44 | #include <fcntl.h> #include "ui.h" #include "cipher_chaos.h" #if defined(USE_MODULES) && defined(AS_MODULE) #include "module.h" | | | | | | 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 |
#include <fcntl.h>
#include "ui.h"
#include "cipher_chaos.h"
#if defined(USE_MODULES) && defined(AS_MODULE)
#include "module.h"
uint32_t DACT_MOD_NUM=0;
uint32_t DACT_MOD_TYPE=DACT_MOD_TYPE_ENC;
void *DACT_MOD_ALGO=cipher_chaos;
char *DACT_MOD_NAME="chaos (MOD)";
#endif
int cipher_chaos(const char *inblock, char *outblock, const int blksize, char *key, const int mode) {
switch (mode) {
case (DACT_MODE_CINIT+DACT_MODE_CDEC):
case (DACT_MODE_CINIT+DACT_MODE_CENC):
|
| ︙ | ︙ |
Deleted cipher_chaos.lnk.
Changes to cipher_psub.c.
| ︙ | ︙ | |||
41 42 43 44 45 46 47 | #include <math.h> #include "cipher_psub.h" #include "parse.h" #include "ui.h" #if defined(USE_MODULES) && defined(AS_MODULE) #include "module.h" | | | | | | 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 |
#include <math.h>
#include "cipher_psub.h"
#include "parse.h"
#include "ui.h"
#if defined(USE_MODULES) && defined(AS_MODULE)
#include "module.h"
uint32_t DACT_MOD_NUM=3;
uint32_t DACT_MOD_TYPE=DACT_MOD_TYPE_ENC;
void *DACT_MOD_ALGO=cipher_psub;
char *DACT_MOD_NAME="psubst (MOD)";
#endif
int cipher_psub(const unsigned char *inblock, unsigned char *outblock, const int blksize, unsigned char *key, const int mode) {
switch (mode) {
case (DACT_MODE_CINIT+DACT_MODE_CDEC):
case (DACT_MODE_CINIT+DACT_MODE_CENC):
|
| ︙ | ︙ |
Deleted cipher_psub.lnk.
Changes to cipher_serpent.c.
| ︙ | ︙ | |||
32 33 34 35 36 37 38 | #endif #endif #include "parse.h" #include "ui.h" #if defined(USE_MODULES) && defined(AS_MODULE) #include "module.h" | | | | | | 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 |
#endif
#endif
#include "parse.h"
#include "ui.h"
#if defined(USE_MODULES) && defined(AS_MODULE)
#include "module.h"
uint32_t DACT_MOD_NUM=2;
uint32_t DACT_MOD_TYPE=DACT_MOD_TYPE_ENC;
void *DACT_MOD_ALGO=cipher_serpent;
char *DACT_MOD_NAME="serpent (MOD)";
#endif
MCRYPT mcrypt_tdid;
int cipher_serpent(const char *inblock, char *outblock, const int blksize, char *key, const int mode) {
static unsigned char *IV;
|
| ︙ | ︙ |
Deleted cipher_serpent.lnk.
Changes to cipher_sub.c.
| ︙ | ︙ | |||
52 53 54 55 56 57 58 | #include <time.h> #endif #endif #endif #if defined(USE_MODULES) && defined(AS_MODULE) #include "module.h" | | | | | | 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 |
#include <time.h>
#endif
#endif
#endif
#if defined(USE_MODULES) && defined(AS_MODULE)
#include "module.h"
uint32_t DACT_MOD_NUM=1;
uint32_t DACT_MOD_TYPE=DACT_MOD_TYPE_ENC;
void *DACT_MOD_ALGO=cipher_sub;
char *DACT_MOD_NAME="subst (MOD)";
#endif
int cipher_sub(const unsigned char *inblock, unsigned char *outblock, const int blksize, unsigned char *key, const int mode) {
switch (mode) {
case (DACT_MODE_CINIT+DACT_MODE_CDEC):
case (DACT_MODE_CINIT+DACT_MODE_CENC):
|
| ︙ | ︙ |
Deleted cipher_sub.lnk.
Changes to comp_bitsums.c.
| ︙ | ︙ | |||
37 38 39 40 41 42 43 | out_block - Where to put data after compression. blk_size - Size of prev_block and curr_block. */ #if defined(AS_MODULE) && defined(USE_MODULES) #include "module.h" | | | | | | 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 |
out_block - Where to put data after compression.
blk_size - Size of prev_block and curr_block.
*/
#if defined(AS_MODULE) && defined(USE_MODULES)
#include "module.h"
uint32_t DACT_MOD_NUM=11;
uint32_t DACT_MOD_TYPE=DACT_MOD_TYPE_COMP;
void *DACT_MOD_ALGO=comp_bitsums_algo;
char *DACT_MOD_NAME="Bitsums Compression (MOD)";
#endif
int comp_bitsums_algo(int mode, unsigned char *prev_block, unsigned char *curr_block, char *out_block, int blk_size, int bufsize) {
switch(mode) {
case DACT_MODE_COMPR:
return(comp_bitsums_compress(prev_block, curr_block, out_block, blk_size, bufsize));
|
| ︙ | ︙ |
Deleted comp_bitsums.lnk.
Changes to comp_bzlib.c.
| ︙ | ︙ | |||
44 45 46 47 48 49 50 | curr_block - The data to be compressed. out_block - Where to put data after compression. blk_size - Size of prev_block and curr_block. */ #if defined(USE_MODULES) && defined(AS_MODULE) #include "module.h" | | | | | | 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 |
curr_block - The data to be compressed.
out_block - Where to put data after compression.
blk_size - Size of prev_block and curr_block.
*/
#if defined(USE_MODULES) && defined(AS_MODULE)
#include "module.h"
uint32_t DACT_MOD_NUM=9;
uint32_t DACT_MOD_TYPE=DACT_MOD_TYPE_COMP;
void *DACT_MOD_ALGO=comp_bzlib_algo;
char *DACT_MOD_NAME="Bzip2 Compression (MOD)";
#endif
int comp_bzlib_algo(int mode, unsigned char *prev_block, unsigned char *curr_block, unsigned char *out_block, int blk_size, int bufsize) {
switch(mode) {
case DACT_MODE_COMPR:
return(comp_bzlib_compress(prev_block, curr_block, out_block, blk_size, bufsize));
break; /* Heh */
|
| ︙ | ︙ |
Deleted comp_bzlib.lnk.
|
| < |
Changes to comp_delta.c.
| ︙ | ︙ | |||
38 39 40 41 42 43 44 | curr_block - The data to be compressed. out_block - Where to put data after compression. blk_size - Size of prev_block and curr_block. */ #if defined(USE_MODULES) && defined(AS_MODULE) #include "module.h" | | | | | | 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 |
curr_block - The data to be compressed.
out_block - Where to put data after compression.
blk_size - Size of prev_block and curr_block.
*/
#if defined(USE_MODULES) && defined(AS_MODULE)
#include "module.h"
uint32_t DACT_MOD_NUM=2;
uint32_t DACT_MOD_TYPE=DACT_MOD_TYPE_COMP;
void *DACT_MOD_ALGO=comp_delta_algo;
char *DACT_MOD_NAME="Delta Compression (MOD)";
#endif
int comp_delta_algo(int mode, unsigned char *prev_block, unsigned char *curr_block, char *out_block, int blk_size, int bufsize) {
switch(mode) {
case DACT_MODE_COMPR:
return(comp_delta_compress(prev_block, curr_block, out_block, blk_size, bufsize));
|
| ︙ | ︙ |
Deleted comp_delta.lnk.
Changes to comp_factor.c.
| ︙ | ︙ | |||
35 36 37 38 39 40 41 | prev_block - Previous (uncompressed) block. curr_block - The data to be compressed. out_block - Where to put data after compression. blk_size - Size of prev_block and curr_block. */ #if defined(AS_MODULE) && defined(USE_MODULES) #include "module.h" | | | | | | 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 |
prev_block - Previous (uncompressed) block.
curr_block - The data to be compressed.
out_block - Where to put data after compression.
blk_size - Size of prev_block and curr_block.
*/
#if defined(AS_MODULE) && defined(USE_MODULES)
#include "module.h"
uint32_t DACT_MOD_NUM=10;
uint32_t DACT_MOD_TYPE=DACT_MOD_TYPE_COMP;
void *DACT_MOD_ALGO=comp_factor_algo;
char *DACT_MOD_NAME="Factor Compression (MOD)";
#endif
int comp_factor_algo(int mode, unsigned char *prev_block, unsigned char *curr_block, char *out_block, int blk_size, int bufsize) {
switch(mode) {
case DACT_MODE_COMPR:
return(comp_factor_compress(prev_block, curr_block, out_block, blk_size, bufsize));
break; /* Heh */
case DACT_MODE_DECMP:
|
| ︙ | ︙ |
Deleted comp_factor.lnk.
Changes to comp_lzoox.c.
| ︙ | ︙ | |||
39 40 41 42 43 44 45 | curr_block - The data to be compressed. out_block - Where to put data after compression. blk_size - Size of prev_block and curr_block. */ #if defined(AS_MODULE) && defined(USE_MODULES) #include "module.h" | | | | | | | | | | | 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 |
curr_block - The data to be compressed.
out_block - Where to put data after compression.
blk_size - Size of prev_block and curr_block.
*/
#if defined(AS_MODULE) && defined(USE_MODULES)
#include "module.h"
uint32_t DACT_MOD_NUM=13;
uint32_t DACT_MOD_TYPE=DACT_MOD_TYPE_COMP;
void *DACT_MOD_ALGO=comp_lzoox_algo;
char *DACT_MOD_NAME="LZO-1x Compression (MOD)";
/*
char *DACT_MOD_SIGN="RGlnaXRhbFNpZ25hdHVyZQ==";
char *DACT_MOD_URL_GET="http://www.rkeene.org/projects/compression/dact/@@OSNM@@-@@ARCH@@/comp_rle.dll";
char *DACT_MOD_URL_VER="http://www.rkeene.org/projects/compression/dact/@@OSNM@@-@@ARCH@@/comp_rle.ver";
uint32_t DACT_MOD_VER=0x00080d;
uint32_t DACT_MOD_REQUIRE=DACT_MOD_REQ_ATLEAST|(0x00080d);
*/
#endif
int comp_lzoox_algo(int mode, unsigned char *prev_block, unsigned char *curr_block, char *out_block, int blk_size, int bufsize) {
switch(mode) {
case DACT_MODE_COMPR:
return(comp_lzoox_compress(prev_block, curr_block, out_block, blk_size, bufsize));
|
| ︙ | ︙ |
Deleted comp_lzoox.lnk.
|
| < |
Changes to comp_lzooy.c.
| ︙ | ︙ | |||
39 40 41 42 43 44 45 | curr_block - The data to be compressed. out_block - Where to put data after compression. blk_size - Size of prev_block and curr_block. */ #if defined(AS_MODULE) && defined(USE_MODULES) #include "module.h" | | | | | | | | | | | 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 |
curr_block - The data to be compressed.
out_block - Where to put data after compression.
blk_size - Size of prev_block and curr_block.
*/
#if defined(AS_MODULE) && defined(USE_MODULES)
#include "module.h"
uint32_t DACT_MOD_NUM=14;
uint32_t DACT_MOD_TYPE=DACT_MOD_TYPE_COMP;
void *DACT_MOD_ALGO=comp_lzooy_algo;
char *DACT_MOD_NAME="LZO-1y Compression (MOD)";
/*
char *DACT_MOD_SIGN="RGlnaXRhbFNpZ25hdHVyZQ==";
char *DACT_MOD_URL_GET="http://www.rkeene.org/projects/compression/dact/@@OSNM@@-@@ARCH@@/comp_rle.dll";
char *DACT_MOD_URL_VER="http://www.rkeene.org/projects/compression/dact/@@OSNM@@-@@ARCH@@/comp_rle.ver";
uint32_t DACT_MOD_VER=0x00080d;
uint32_t DACT_MOD_REQUIRE=DACT_MOD_REQ_ATLEAST|(0x00080d);
*/
#endif
int comp_lzooy_algo(int mode, unsigned char *prev_block, unsigned char *curr_block, char *out_block, int blk_size, int bufsize) {
switch(mode) {
case DACT_MODE_COMPR:
return(comp_lzooy_compress(prev_block, curr_block, out_block, blk_size, bufsize));
|
| ︙ | ︙ |
Deleted comp_lzooy.lnk.
|
| < |
Changes to comp_lzota.c.
| ︙ | ︙ | |||
39 40 41 42 43 44 45 | curr_block - The data to be compressed. out_block - Where to put data after compression. blk_size - Size of prev_block and curr_block. */ #if defined(AS_MODULE) && defined(USE_MODULES) #include "module.h" | | | | | | | | | | | 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 |
curr_block - The data to be compressed.
out_block - Where to put data after compression.
blk_size - Size of prev_block and curr_block.
*/
#if defined(AS_MODULE) && defined(USE_MODULES)
#include "module.h"
uint32_t DACT_MOD_NUM=15;
uint32_t DACT_MOD_TYPE=DACT_MOD_TYPE_COMP;
void *DACT_MOD_ALGO=comp_lzota_algo;
char *DACT_MOD_NAME="LZO-2a Compression (MOD)";
/*
char *DACT_MOD_SIGN="RGlnaXRhbFNpZ25hdHVyZQ==";
char *DACT_MOD_URL_GET="http://www.rkeene.org/projects/compression/dact/@@OSNM@@-@@ARCH@@/comp_rle.dll";
char *DACT_MOD_URL_VER="http://www.rkeene.org/projects/compression/dact/@@OSNM@@-@@ARCH@@/comp_rle.ver";
uint32_t DACT_MOD_VER=0x00080d;
uint32_t DACT_MOD_REQUIRE=DACT_MOD_REQ_ATLEAST|(0x00080d);
*/
#endif
int comp_lzota_algo(int mode, unsigned char *prev_block, unsigned char *curr_block, char *out_block, int blk_size, int bufsize) {
switch(mode) {
case DACT_MODE_COMPR:
return(comp_lzota_compress(prev_block, curr_block, out_block, blk_size, bufsize));
|
| ︙ | ︙ |
Deleted comp_lzota.lnk.
|
| < |
Changes to comp_mzlib.c.
| ︙ | ︙ | |||
44 45 46 47 48 49 50 | curr_block - The data to be compressed. out_block - Where to put data after compression. blk_size - Size of prev_block and curr_block. */ #if defined(USE_MODULES) && defined(AS_MODULE) #include "module.h" | | | | | | 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 |
curr_block - The data to be compressed.
out_block - Where to put data after compression.
blk_size - Size of prev_block and curr_block.
*/
#if defined(USE_MODULES) && defined(AS_MODULE)
#include "module.h"
uint32_t DACT_MOD_NUM=5;
uint32_t DACT_MOD_TYPE=DACT_MOD_TYPE_COMP;
void *DACT_MOD_ALGO=comp_mzlib_algo;
char *DACT_MOD_NAME="Modifed Zlib Compression (MOD)";
#endif
int comp_mzlib_algo(int mode, unsigned char *prev_block, unsigned char *curr_block, unsigned char *out_block, int blk_size, int bufsize) {
switch(mode) {
case DACT_MODE_COMPR:
return(comp_mzlib_compress(prev_block, curr_block, out_block, blk_size, bufsize));
break; /* Heh */
|
| ︙ | ︙ |
Deleted comp_mzlib.lnk.
|
| < |
Changes to comp_mzlib2.c.
| ︙ | ︙ | |||
54 55 56 57 58 59 60 | prev_block - Previous (uncompressed) block. curr_block - The data to be compressed. out_block - Where to put data after compression. blk_size - Size of prev_block and curr_block. */ #if defined(USE_MODULES) && defined(AS_MODULE) #include "module.h" | | | | | | 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 | prev_block - Previous (uncompressed) block. curr_block - The data to be compressed. out_block - Where to put data after compression. blk_size - Size of prev_block and curr_block. */ #if defined(USE_MODULES) && defined(AS_MODULE) #include "module.h" uint32_t DACT_MOD_NUM=8; uint32_t DACT_MOD_TYPE=DACT_MOD_TYPE_COMP; void *DACT_MOD_ALGO=comp_mzlib2_algo; char *DACT_MOD_NAME="Second Modified Zlib Compression (MOD)"; #endif #ifdef DEBUG #if DEBUG>=2 #define MAKE_MZLIB2 1 #endif #endif |
| ︙ | ︙ |
Deleted comp_mzlib2.lnk.
|
| < |
Changes to comp_rle.c.
| ︙ | ︙ | |||
36 37 38 39 40 41 42 | curr_block - The data to be compressed. out_block - Where to put data after compression. blk_size - Size of prev_block and curr_block. */ #if defined(AS_MODULE) && defined(USE_MODULES) #include "module.h" | | | | | | | | | | | 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 |
curr_block - The data to be compressed.
out_block - Where to put data after compression.
blk_size - Size of prev_block and curr_block.
*/
#if defined(AS_MODULE) && defined(USE_MODULES)
#include "module.h"
uint32_t DACT_MOD_NUM=1;
uint32_t DACT_MOD_TYPE=DACT_MOD_TYPE_COMP;
void *DACT_MOD_ALGO=comp_rle_algo;
char *DACT_MOD_NAME="RLE Compression (MOD)";
char *DACT_MOD_SIGN="RGlnaXRhbFNpZ25hdHVyZQ==";
char *DACT_MOD_URL_GET="http://www.rkeene.org/projects/compression/dact/@@OSNM@@-@@ARCH@@/comp_rle.dll";
char *DACT_MOD_URL_VER="http://www.rkeene.org/projects/compression/dact/@@OSNM@@-@@ARCH@@/comp_rle.ver";
uint32_t DACT_MOD_VER=0x00080d;
uint32_t DACT_MOD_REQUIRE=DACT_MOD_REQ_ATLEAST|(0x00080d);
#endif
int comp_rle_algo(int mode, unsigned char *prev_block, unsigned char *curr_block, char *out_block, int blk_size, int bufsize) {
switch(mode) {
case DACT_MODE_COMPR:
return(comp_rle_compress(prev_block, curr_block, out_block, blk_size, bufsize));
break; /* Heh */
|
| ︙ | ︙ |
Deleted comp_rle.lnk.
Changes to comp_snibble.c.
| ︙ | ︙ | |||
50 51 52 53 54 55 56 | curr_block - The data to be compressed. out_block - Where to put data after compression. blk_size - Size of prev_block and curr_block. */ #if defined(USE_MODULES) && defined(AS_MODULE) #include "module.h" | | | | | | 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 |
curr_block - The data to be compressed.
out_block - Where to put data after compression.
blk_size - Size of prev_block and curr_block.
*/
#if defined(USE_MODULES) && defined(AS_MODULE)
#include "module.h"
uint32_t DACT_MOD_NUM=6;
uint32_t DACT_MOD_TYPE=DACT_MOD_TYPE_COMP;
void *DACT_MOD_ALGO=comp_snibble_algo;
char *DACT_MOD_NAME="Seminibble Encoding (MOD)";
#endif
int comp_snibble_algo(int mode, unsigned char *prev_block, unsigned char *curr_block, char *out_block, int blk_size, int bufsize) {
switch(mode) {
case DACT_MODE_COMPR:
return(comp_snibble_compress(prev_block, curr_block, out_block, blk_size, bufsize));
break; /* Heh */
|
| ︙ | ︙ |
Deleted comp_snibble.lnk.
Changes to comp_text.c.
| ︙ | ︙ | |||
40 41 42 43 44 45 46 | curr_block - The data to be compressed. out_block - Where to put data after compression. blk_size - Size of prev_block and curr_block. */ #if defined(USE_MODULES) && defined(AS_MODULE) #include "module.h" | | | | | | 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 |
curr_block - The data to be compressed.
out_block - Where to put data after compression.
blk_size - Size of prev_block and curr_block.
*/
#if defined(USE_MODULES) && defined(AS_MODULE)
#include "module.h"
uint32_t DACT_MOD_NUM=3;
uint32_t DACT_MOD_TYPE=DACT_MOD_TYPE_COMP;
void *DACT_MOD_ALGO=comp_text_algo;
char *DACT_MOD_NAME="Text Compression (MOD)";
#endif
int comp_text_algo(int mode, unsigned char *prev_block, unsigned char *curr_block, char *out_block, int blk_size, int bufsize) {
switch(mode) {
case DACT_MODE_COMPR:
return(comp_text_compress(prev_block, curr_block, out_block, blk_size, bufsize));
break; /* Heh */
|
| ︙ | ︙ |
Deleted comp_text.lnk.
Changes to comp_textrle.c.
| ︙ | ︙ | |||
36 37 38 39 40 41 42 | curr_block - The data to be compressed. out_block - Where to put data after compression. blk_size - Size of prev_block and curr_block. */ #if defined(AS_MODULE) && defined(USE_MODULES) #include "module.h" | | | | | | 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 |
curr_block - The data to be compressed.
out_block - Where to put data after compression.
blk_size - Size of prev_block and curr_block.
*/
#if defined(AS_MODULE) && defined(USE_MODULES)
#include "module.h"
uint32_t DACT_MOD_NUM=12;
uint32_t DACT_MOD_TYPE=DACT_MOD_TYPE_COMP;
void *DACT_MOD_ALGO=comp_textrle_algo;
char *DACT_MOD_NAME="Text RLE Compression (MOD)";
#endif
int comp_textrle_algo(int mode, unsigned char *prev_block, unsigned char *curr_block, char *out_block, int blk_size, int bufsize) {
switch(mode) {
case DACT_MODE_COMPR:
return(comp_textrle_compress(prev_block, curr_block, out_block, blk_size, bufsize));
break; /* Heh */
|
| ︙ | ︙ |
Deleted comp_textrle.lnk.
Changes to comp_zlib.c.
| ︙ | ︙ | |||
51 52 53 54 55 56 57 | curr_block - The data to be compressed. out_block - Where to put data after compression. blk_size - Size of prev_block and curr_block. */ #if defined(USE_MODULES) && defined(AS_MODULE) #include "module.h" | | | | | | 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 |
curr_block - The data to be compressed.
out_block - Where to put data after compression.
blk_size - Size of prev_block and curr_block.
*/
#if defined(USE_MODULES) && defined(AS_MODULE)
#include "module.h"
uint32_t DACT_MOD_NUM=4;
uint32_t DACT_MOD_TYPE=DACT_MOD_TYPE_COMP;
void *DACT_MOD_ALGO=comp_zlib_algo;
char *DACT_MOD_NAME="Zlib Compression (MOD)";
#endif
int comp_zlib_algo(int mode, unsigned char *prev_block, unsigned char *curr_block, unsigned char *out_block, int blk_size, int bufsize) {
switch(mode) {
case DACT_MODE_COMPR:
return(comp_zlib_compress(prev_block, curr_block, out_block, blk_size, bufsize));
break; /* Heh */
|
| ︙ | ︙ |
Deleted comp_zlib.lnk.
|
| < |
Deleted config.guess.
|
| < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < |
Deleted config.h.in.
|
| < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < |
Deleted config.sub.
|
| < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < |
Deleted configure.
more than 10,000 changes
Added configure.ac.
> > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > | 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 | AC_INIT(dact, 0.9.0) AC_CONFIG_HEADERS(config.h) dnl Locate standard tools AC_PROG_CC AC_PROG_MAKE_SET AC_PROG_INSTALL AC_AIX AC_LANG(C) dnl Determine this platform DC_CHK_OS_INFO dnl Determine how to create shared objects on this platform DC_GET_SHOBJFLAGS dnl Determine how to create static archives on this platform AC_CHECK_TOOL(AR, ar) AC_CHECK_TOOL(RANLIB, ranlib) dnl Determine how to strip executables and remove symbols DC_FIND_STRIP_AND_REMOVESYMS(libdact.syms) dnl Set version script, to limit the scope of symbols DC_SETVERSIONSCRIPT(libdact.vers, libdact.syms) dnl Upate LDFLAGS to include setting the run-time linker path to the same as our compile-time linker DC_SYNC_RPATH dnl If we updated LIBOBJS, update SHLIBOBJS -- must be last. DC_SYNC_SHLIBOBJS dnl Produce Makefile AC_OUTPUT(Makefile libdact.syms) |
Deleted configure.in.
|
| < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < |
Deleted dact.c.
|
| < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < |
Deleted dact_common.c.
|
| < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < |
Deleted dact_common.h.
|
| < < < < < < < < < < < < < |
Deleted header.c.
|
| < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < |
Deleted header.h.
|
| < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < |
Changes to install-sh.
1 | #!/bin/sh | > | > | | > > | | | > > | > > | > > > > > > > > > > | | < < < > > > > | | > | > | | > > > > | > < | | | | | > > | > | > > > > > > > > > | | > | | | | | > | > | > | | | > > > > > > > > > > > > > > > > > | > > > > > > > > > > > > > > > > | | | | | < < | < | | > > > > > > > > > > | | | < > | > > > | | | > > | | < > | | < | > | | < > > > > > > | > > > > > | > > > | < > > | > > > | | > > > | | | > | > > > > > > > > > | > | < < > | | | > > > > > > > > > > < | > > | > > | | | < | | | | | | | | < < < < | | | > > > > > > > > > > > > > > > > > > > > > > > > > > > > | < < < > > | > > > | > > > > > > > > | > > | > > | < > > > > > > > > > > | > > > > > | | > > > > < | | < | | < < | < < < < < > > > > > > < < < > | > | > > > > > > > > > > > > > | < | < < > | > > > > > > > > | > > > > | < | | < > > > < | > > | > > | > > > > | | > < < < < | < > > > < > | | > > | > > > | > > > > | > > > > > > > | | > > > > < | < > > > > | | > > > | > > > > | > > > > > > | | > > > | > > | > > > > > > > | > > > < > > > | < < < > > > > > | > | | | < > > > | > > | > | | < > | | > > > > > > | | 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 199 200 201 202 203 204 205 206 207 208 209 210 211 212 213 214 215 216 217 218 219 220 221 222 223 224 225 226 227 228 229 230 231 232 233 234 235 236 237 238 239 240 241 242 243 244 245 246 247 248 249 250 251 252 253 254 255 256 257 258 259 260 261 262 263 264 265 266 267 268 269 270 271 272 273 274 275 276 277 278 279 280 281 282 283 284 285 286 287 288 289 290 291 292 293 294 295 296 297 298 299 300 301 302 303 304 305 306 307 308 309 310 311 312 313 314 315 316 317 318 319 320 321 322 323 324 325 326 327 328 329 330 331 332 333 334 335 336 337 338 339 340 341 342 343 344 345 346 347 348 349 350 351 352 353 354 355 356 357 358 359 360 361 362 363 364 365 366 367 368 369 370 371 372 373 374 375 376 377 378 379 380 381 382 383 384 385 386 387 388 389 390 391 392 393 394 395 396 397 398 399 400 401 402 403 404 405 406 407 408 409 410 411 412 413 414 415 416 417 418 419 420 421 422 423 424 425 426 427 428 429 430 431 432 433 434 435 436 437 438 439 440 441 442 443 444 445 446 447 448 449 450 451 452 453 454 455 456 457 458 459 460 461 462 463 464 465 466 467 468 469 470 471 472 473 474 475 476 477 478 479 480 481 482 483 484 485 486 487 488 489 490 491 492 493 494 495 496 497 498 499 500 501 502 503 504 505 506 507 508 509 510 511 512 513 514 515 516 517 518 519 520 521 522 523 524 525 526 527 |
#!/bin/sh
# install - install a program, script, or datafile
scriptversion=2011-01-19.21; # UTC
# This originates from X11R5 (mit/util/scripts/install.sh), which was
# later released in X11R6 (xc/config/util/install.sh) with the
# following copyright and license.
#
# Copyright (C) 1994 X Consortium
#
# Permission is hereby granted, free of charge, to any person obtaining a copy
# of this software and associated documentation files (the "Software"), to
# deal in the Software without restriction, including without limitation the
# rights to use, copy, modify, merge, publish, distribute, sublicense, and/or
# sell copies of the Software, and to permit persons to whom the Software is
# furnished to do so, subject to the following conditions:
#
# The above copyright notice and this permission notice shall be included in
# all copies or substantial portions of the Software.
#
# THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
# IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
# X CONSORTIUM BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN
# AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNEC-
# TION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
#
# Except as contained in this notice, the name of the X Consortium shall not
# be used in advertising or otherwise to promote the sale, use or other deal-
# ings in this Software without prior written authorization from the X Consor-
# tium.
#
#
# FSF changes to this file are in the public domain.
#
# Calling this script install-sh is preferred over install.sh, to prevent
# `make' implicit rules from creating a file called install from it
# when there is no Makefile.
#
# This script is compatible with the BSD install script, but was written
# from scratch.
nl='
'
IFS=" "" $nl"
# set DOITPROG to echo to test this script
# Don't use :- since 4.3BSD and earlier shells don't like it.
doit=${DOITPROG-}
if test -z "$doit"; then
doit_exec=exec
else
doit_exec=$doit
fi
# Put in absolute file names if you don't have them in your path;
# or use environment vars.
chgrpprog=${CHGRPPROG-chgrp}
chmodprog=${CHMODPROG-chmod}
chownprog=${CHOWNPROG-chown}
cmpprog=${CMPPROG-cmp}
cpprog=${CPPROG-cp}
mkdirprog=${MKDIRPROG-mkdir}
mvprog=${MVPROG-mv}
rmprog=${RMPROG-rm}
stripprog=${STRIPPROG-strip}
posix_glob='?'
initialize_posix_glob='
test "$posix_glob" != "?" || {
if (set -f) 2>/dev/null; then
posix_glob=
else
posix_glob=:
fi
}
'
posix_mkdir=
# Desired mode of installed file.
mode=0755
chgrpcmd=
chmodcmd=$chmodprog
chowncmd=
mvcmd=$mvprog
rmcmd="$rmprog -f"
stripcmd=
src=
dst=
dir_arg=
dst_arg=
copy_on_change=false
no_target_directory=
usage="\
Usage: $0 [OPTION]... [-T] SRCFILE DSTFILE
or: $0 [OPTION]... SRCFILES... DIRECTORY
or: $0 [OPTION]... -t DIRECTORY SRCFILES...
or: $0 [OPTION]... -d DIRECTORIES...
In the 1st form, copy SRCFILE to DSTFILE.
In the 2nd and 3rd, copy all SRCFILES to DIRECTORY.
In the 4th, create DIRECTORIES.
Options:
--help display this help and exit.
--version display version info and exit.
-c (ignored)
-C install only if different (preserve the last data modification time)
-d create directories instead of installing files.
-g GROUP $chgrpprog installed files to GROUP.
-m MODE $chmodprog installed files to MODE.
-o USER $chownprog installed files to USER.
-s $stripprog installed files.
-t DIRECTORY install into DIRECTORY.
-T report an error if DSTFILE is a directory.
Environment variables override the default commands:
CHGRPPROG CHMODPROG CHOWNPROG CMPPROG CPPROG MKDIRPROG MVPROG
RMPROG STRIPPROG
"
while test $# -ne 0; do
case $1 in
-c) ;;
-C) copy_on_change=true;;
-d) dir_arg=true;;
-g) chgrpcmd="$chgrpprog $2"
shift;;
--help) echo "$usage"; exit $?;;
-m) mode=$2
case $mode in
*' '* | *' '* | *'
'* | *'*'* | *'?'* | *'['*)
echo "$0: invalid mode: $mode" >&2
exit 1;;
esac
shift;;
-o) chowncmd="$chownprog $2"
shift;;
-s) stripcmd=$stripprog;;
-t) dst_arg=$2
# Protect names problematic for `test' and other utilities.
case $dst_arg in
-* | [=\(\)!]) dst_arg=./$dst_arg;;
esac
shift;;
-T) no_target_directory=true;;
--version) echo "$0 $scriptversion"; exit $?;;
--) shift
break;;
-*) echo "$0: invalid option: $1" >&2
exit 1;;
*) break;;
esac
shift
done
if test $# -ne 0 && test -z "$dir_arg$dst_arg"; then
# When -d is used, all remaining arguments are directories to create.
# When -t is used, the destination is already specified.
# Otherwise, the last argument is the destination. Remove it from $@.
for arg
do
if test -n "$dst_arg"; then
# $@ is not empty: it contains at least $arg.
set fnord "$@" "$dst_arg"
shift # fnord
fi
shift # arg
dst_arg=$arg
# Protect names problematic for `test' and other utilities.
case $dst_arg in
-* | [=\(\)!]) dst_arg=./$dst_arg;;
esac
done
fi
if test $# -eq 0; then
if test -z "$dir_arg"; then
echo "$0: no input file specified." >&2
exit 1
fi
# It's OK to call `install-sh -d' without argument.
# This can happen when creating conditional directories.
exit 0
fi
if test -z "$dir_arg"; then
do_exit='(exit $ret); exit $ret'
trap "ret=129; $do_exit" 1
trap "ret=130; $do_exit" 2
trap "ret=141; $do_exit" 13
trap "ret=143; $do_exit" 15
# Set umask so as not to create temps with too-generous modes.
# However, 'strip' requires both read and write access to temps.
case $mode in
# Optimize common cases.
*644) cp_umask=133;;
*755) cp_umask=22;;
*[0-7])
if test -z "$stripcmd"; then
u_plus_rw=
else
u_plus_rw='% 200'
fi
cp_umask=`expr '(' 777 - $mode % 1000 ')' $u_plus_rw`;;
*)
if test -z "$stripcmd"; then
u_plus_rw=
else
u_plus_rw=,u+rw
fi
cp_umask=$mode$u_plus_rw;;
esac
fi
for src
do
# Protect names problematic for `test' and other utilities.
case $src in
-* | [=\(\)!]) src=./$src;;
esac
if test -n "$dir_arg"; then
dst=$src
dstdir=$dst
test -d "$dstdir"
dstdir_status=$?
else
# Waiting for this to be detected by the "$cpprog $src $dsttmp" command
# might cause directories to be created, which would be especially bad
# if $src (and thus $dsttmp) contains '*'.
if test ! -f "$src" && test ! -d "$src"; then
echo "$0: $src does not exist." >&2
exit 1
fi
if test -z "$dst_arg"; then
echo "$0: no destination specified." >&2
exit 1
fi
dst=$dst_arg
# If destination is a directory, append the input filename; won't work
# if double slashes aren't ignored.
if test -d "$dst"; then
if test -n "$no_target_directory"; then
echo "$0: $dst_arg: Is a directory" >&2
exit 1
fi
dstdir=$dst
dst=$dstdir/`basename "$src"`
dstdir_status=0
else
# Prefer dirname, but fall back on a substitute if dirname fails.
dstdir=`
(dirname "$dst") 2>/dev/null ||
expr X"$dst" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
X"$dst" : 'X\(//\)[^/]' \| \
X"$dst" : 'X\(//\)$' \| \
X"$dst" : 'X\(/\)' \| . 2>/dev/null ||
echo X"$dst" |
sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
s//\1/
q
}
/^X\(\/\/\)[^/].*/{
s//\1/
q
}
/^X\(\/\/\)$/{
s//\1/
q
}
/^X\(\/\).*/{
s//\1/
q
}
s/.*/./; q'
`
test -d "$dstdir"
dstdir_status=$?
fi
fi
obsolete_mkdir_used=false
if test $dstdir_status != 0; then
case $posix_mkdir in
'')
# Create intermediate dirs using mode 755 as modified by the umask.
# This is like FreeBSD 'install' as of 1997-10-28.
umask=`umask`
case $stripcmd.$umask in
# Optimize common cases.
*[2367][2367]) mkdir_umask=$umask;;
.*0[02][02] | .[02][02] | .[02]) mkdir_umask=22;;
*[0-7])
mkdir_umask=`expr $umask + 22 \
- $umask % 100 % 40 + $umask % 20 \
- $umask % 10 % 4 + $umask % 2
`;;
*) mkdir_umask=$umask,go-w;;
esac
# With -d, create the new directory with the user-specified mode.
# Otherwise, rely on $mkdir_umask.
if test -n "$dir_arg"; then
mkdir_mode=-m$mode
else
mkdir_mode=
fi
posix_mkdir=false
case $umask in
*[123567][0-7][0-7])
# POSIX mkdir -p sets u+wx bits regardless of umask, which
# is incompatible with FreeBSD 'install' when (umask & 300) != 0.
;;
*)
tmpdir=${TMPDIR-/tmp}/ins$RANDOM-$$
trap 'ret=$?; rmdir "$tmpdir/d" "$tmpdir" 2>/dev/null; exit $ret' 0
if (umask $mkdir_umask &&
exec $mkdirprog $mkdir_mode -p -- "$tmpdir/d") >/dev/null 2>&1
then
if test -z "$dir_arg" || {
# Check for POSIX incompatibilities with -m.
# HP-UX 11.23 and IRIX 6.5 mkdir -m -p sets group- or
# other-writeable bit of parent directory when it shouldn't.
# FreeBSD 6.1 mkdir -m -p sets mode of existing directory.
ls_ld_tmpdir=`ls -ld "$tmpdir"`
case $ls_ld_tmpdir in
d????-?r-*) different_mode=700;;
d????-?--*) different_mode=755;;
*) false;;
esac &&
$mkdirprog -m$different_mode -p -- "$tmpdir" && {
ls_ld_tmpdir_1=`ls -ld "$tmpdir"`
test "$ls_ld_tmpdir" = "$ls_ld_tmpdir_1"
}
}
then posix_mkdir=:
fi
rmdir "$tmpdir/d" "$tmpdir"
else
# Remove any dirs left behind by ancient mkdir implementations.
rmdir ./$mkdir_mode ./-p ./-- 2>/dev/null
fi
trap '' 0;;
esac;;
esac
if
$posix_mkdir && (
umask $mkdir_umask &&
$doit_exec $mkdirprog $mkdir_mode -p -- "$dstdir"
)
then :
else
# The umask is ridiculous, or mkdir does not conform to POSIX,
# or it failed possibly due to a race condition. Create the
# directory the slow way, step by step, checking for races as we go.
case $dstdir in
/*) prefix='/';;
[-=\(\)!]*) prefix='./';;
*) prefix='';;
esac
eval "$initialize_posix_glob"
oIFS=$IFS
IFS=/
$posix_glob set -f
set fnord $dstdir
shift
$posix_glob set +f
IFS=$oIFS
prefixes=
for d
do
test X"$d" = X && continue
prefix=$prefix$d
if test -d "$prefix"; then
prefixes=
else
if $posix_mkdir; then
(umask=$mkdir_umask &&
$doit_exec $mkdirprog $mkdir_mode -p -- "$dstdir") && break
# Don't fail if two instances are running concurrently.
test -d "$prefix" || exit 1
else
case $prefix in
*\'*) qprefix=`echo "$prefix" | sed "s/'/'\\\\\\\\''/g"`;;
*) qprefix=$prefix;;
esac
prefixes="$prefixes '$qprefix'"
fi
fi
prefix=$prefix/
done
if test -n "$prefixes"; then
# Don't fail if two instances are running concurrently.
(umask $mkdir_umask &&
eval "\$doit_exec \$mkdirprog $prefixes") ||
test -d "$dstdir" || exit 1
obsolete_mkdir_used=true
fi
fi
fi
if test -n "$dir_arg"; then
{ test -z "$chowncmd" || $doit $chowncmd "$dst"; } &&
{ test -z "$chgrpcmd" || $doit $chgrpcmd "$dst"; } &&
{ test "$obsolete_mkdir_used$chowncmd$chgrpcmd" = false ||
test -z "$chmodcmd" || $doit $chmodcmd $mode "$dst"; } || exit 1
else
# Make a couple of temp file names in the proper directory.
dsttmp=$dstdir/_inst.$$_
rmtmp=$dstdir/_rm.$$_
# Trap to clean up those temp files at exit.
trap 'ret=$?; rm -f "$dsttmp" "$rmtmp" && exit $ret' 0
# Copy the file name to the temp name.
(umask $cp_umask && $doit_exec $cpprog "$src" "$dsttmp") &&
# and set any options; do chmod last to preserve setuid bits.
#
# If any of these fail, we abort the whole thing. If we want to
# ignore errors from any of these, just make sure not to ignore
# errors from the above "$doit $cpprog $src $dsttmp" command.
#
{ test -z "$chowncmd" || $doit $chowncmd "$dsttmp"; } &&
{ test -z "$chgrpcmd" || $doit $chgrpcmd "$dsttmp"; } &&
{ test -z "$stripcmd" || $doit $stripcmd "$dsttmp"; } &&
{ test -z "$chmodcmd" || $doit $chmodcmd $mode "$dsttmp"; } &&
# If -C, don't bother to copy if it wouldn't change the file.
if $copy_on_change &&
old=`LC_ALL=C ls -dlL "$dst" 2>/dev/null` &&
new=`LC_ALL=C ls -dlL "$dsttmp" 2>/dev/null` &&
eval "$initialize_posix_glob" &&
$posix_glob set -f &&
set X $old && old=:$2:$4:$5:$6 &&
set X $new && new=:$2:$4:$5:$6 &&
$posix_glob set +f &&
test "$old" = "$new" &&
$cmpprog "$dst" "$dsttmp" >/dev/null 2>&1
then
rm -f "$dsttmp"
else
# Rename the file to the real destination.
$doit $mvcmd -f "$dsttmp" "$dst" 2>/dev/null ||
# The rename failed, perhaps because mv can't rename something else
# to itself, or perhaps because mv is so ancient that it does not
# support -f.
{
# Now remove or move aside any old file at destination location.
# We try this two ways since rm can't unlink itself on some
# systems and the destination file might be busy for other
# reasons. In this case, the final cleanup might fail but the new
# file should still install successfully.
{
test ! -f "$dst" ||
$doit $rmcmd -f "$dst" 2>/dev/null ||
{ $doit $mvcmd -f "$dst" "$rmtmp" 2>/dev/null &&
{ $doit $rmcmd -f "$rmtmp" 2>/dev/null; :; }
} ||
{ echo "$0: cannot unlink or rename $dst" >&2
(exit 1); exit 1
}
} &&
# Now rename the file to the real destination.
$doit $mvcmd "$dsttmp" "$dst"
}
fi || exit 1
trap '' 0
fi
done
# Local variables:
# eval: (add-hook 'write-file-hooks 'time-stamp)
# time-stamp-start: "scriptversion="
# time-stamp-format: "%:y-%02m-%02d.%02H"
# time-stamp-time-zone: "UTC"
# time-stamp-end: "; # UTC"
# End:
|
Changes to libdact.c.
|
| | > | | < | | | | | | | > > | | | < | | < | < < > | > | > > | > | 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 |
int dact_register_hook() {
}
int dact_load_module() {
}
int dact_load_all_modules() {
}
int dact_set_option() {
}
int dact_parse_config() {
}
int dact_parse_cmdline() {
}
int dact_CtxDecompress() {
}
int dact_CtxCompress() {
}
int dact_BuffToBuffDecompress() {
}
int dact_BuffToBuffCompress() {
}
int dact_Decompress() {
}
int dact_Compress() {
}
|
Deleted libdact.h.
|
| < < < < < < < < < |
Added libdact.syms.in.
> > > > > > > > > > > > | 1 2 3 4 5 6 7 8 9 10 11 12 | @SYMPREFIX@dact_register_hook @SYMPREFIX@dact_load_module @SYMPREFIX@dact_load_all_modules @SYMPREFIX@dact_set_option @SYMPREFIX@dact_parse_config @SYMPREFIX@dact_parse_cmdline @SYMPREFIX@dact_CtxDecompress @SYMPREFIX@dact_CtxCompress @SYMPREFIX@dact_BuffToBuffDecompress @SYMPREFIX@dact_BuffToBuffCompress @SYMPREFIX@dact_Decompress @SYMPREFIX@dact_Compress |
Changes to mkstemp.c.
| ︙ | ︙ | |||
31 32 33 34 35 36 37 |
#include <sys/stat.h>
#include <stdlib.h>
#include <unistd.h>
#include <string.h>
#include <fcntl.h>
int mkstemp(char *template) {
| > | < > | > | < | > | > | > > | | | > | | > | 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 |
#include <sys/stat.h>
#include <stdlib.h>
#include <unistd.h>
#include <string.h>
#include <fcntl.h>
int mkstemp(char *template) {
unsigned int idx, try;
int retfd = -1;
char *str;
str = strstr(template, "XXXXXX");
if (str == NULL) {
return(-1);
}
srand(getpid());
for (try = 0; try < 10; try++) {
for (idx = 0; idx < 6; idx++) {
str[idx] = 'A' + ((rand() + idx) % 26);
}
retfd = open(template, O_EXCL | O_CREAT | O_RDWR, 0600);
if (retfd >= 0) {
break;
}
}
return(retfd);
}
|
Deleted module.c.
|
| < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < |
Deleted module.h.
|
| < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < |
Added registration/compression.
> | 1 | 0 plain Plain compression |
Deleted rget.txt.
|
| < |
Deleted sfx.c.
|
| < < < < < < < < < < |
Deleted sfx.h.
|
| < < < < < < < < < |
Deleted work/Makefile.
|
| < < < < < |
Deleted work/comp_range/CVS/Entries.
|
| < < < < < < < < |
Deleted work/comp_range/CVS/Repository.
|
| < |
Deleted work/comp_range/CVS/Root.
|
| < |
Deleted work/dact-upgrade.sh.
|
| < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < |
Deleted work/test.c.
|
| < < < < < < < < < < < < < < < < < < < < < < < < < < < |
Deleted work/warnings.txt.
|
| < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < |
Deleted work/win32-errors.txt.
|
| < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < |