SHA256
1
0
forked from pool/bin86
OBS User unknown 2007-01-21 22:45:49 +00:00 committed by Git OBS Bridge
parent 940fca629e
commit 461c9a7d30
6 changed files with 350 additions and 332 deletions

View File

@ -1,3 +0,0 @@
version https://git-lfs.github.com/spec/v1
oid sha256:db675f0d08604c2213a73fcb4932bb29775b9d2a525b1a73e461a2da73d8b11e
size 575723

3
Dev86src-0.16.17.tar.bz2 Normal file
View File

@ -0,0 +1,3 @@
version https://git-lfs.github.com/spec/v1
oid sha256:16adc77745f4c3d1b3241d14dbe6f6002c4448e37297e6664b42533f8f08de89
size 573492

View File

@ -1,3 +1,100 @@
-------------------------------------------------------------------
Sun Jan 21 19:32:12 CET 2007 - ro@suse.de
- update to 0.16.17 (thanks to rschiele)
- Sorry forgot to flip this back: perror and strerror are back to using
the /lib/liberror.txt file for all 8086 Elks modes. Only i386 has the
file linked. Elksemu now traps accesses to this file and substitutes
a fake.
- Added vararg macros to new preprocessor.
- Builtin CPP removed for __BCC__ compile, bcc-cc1 fit in 16bit but
crashes. Thirty two bit works fine, gcc or bcc. (almost any 32bit.)
- Added __BCC_VERSION__ macro, defined by bcc.c contains hex version no.
- Bugfix for offsets generated by #asm when using -O option to bcc-cc1.
Extra compile option ASM_USES_CALLEE_REGS.
- Extra checking and bugfix for mixing char values with long shifts.
- WARNING to distributions: I've altered the install scripts and paths
you will want to check them. Altered paths for bcc.c and normal
installs, defaults should now be good for distributions where bcc is a
cross compiler. If you set the PREFIX to / it'll install to suggested
Native paths. As86_encap moved to LIBDIR.
- I've altered 'perror' and 'strerror' to be normal when compiled for
everything except libc_f.a. Only with that library will it look for the
liberror.txt file and it now looks in "/lib/liberror.txt" only.
This means there's no need to install it anywhere except ELKS itself.
- Change -Mg option to use uclibc as glibc2 seems to have stopped working.
- ar.c switch to using strerror.
- Move elksemu, it's used like a shared library but is best treated like
an emulator so it's now installed in DISTBIN. Also on Linux-386 it's
compiled using the system compiler.
- Use the POSIX -R argument to cp rather than the normal standard -r because
some new systems have decided to stop supporting their '-r' option.
- Oops, the constant error strings in the assembler were char pointers not
char arrays, small waste of space.
- Allow for Linux-2.6 32bit dev_t.
- More changes so it compiles better on 'other' machines.
Removed some GNU-Make'isms in the top header file.
- It seems that CYGWin's problem with _P is inherited from BSD. It also
seems most of my problems come from BSD recently, haven't they realised
that they down own the 'Unix Standard' anymore and haven't since SYSV
got popular.
- Some changes for cygwin, it isn't quite as nasty as compiling for minix
but it doesn't miss by much!
- Compiling for the 'tcc' complier, nice and easy.
- Hitting bcc.c again, bcc-cpp now the default.
- Some bugfixes for DEC Alpha -- 64 bit longs!
Constant folding still done with 64bit longs though.
- The fopen function (and friends) is now a real function not a macro.
- Ctype.h updated to ansi.
- Libraries appear to compile properly with -O and -ansi now.
- Copt's hash string table adjusted; should now have fewer pathological cases.
- Order of copt's rule processing reversed; it now works from the top of a
rule file to the bottom. Also comment lines may be include in the match
lines. !BCC_EOS added to bcc-cc1 for 'end of statment'.
- bcc-cc1's asm("") now works in declare mode too.
- New independed cpp added, has both K&R and Ansi modes.
Changes made to the embedded cpp too to try and fix some bad bits.
- Conditional assembler added around push and pop of 'si' and 'di' if the
optimiser (and as86's optimiser) are to be run.
- Signed keyword added to bcc-cc1 for 'signed char' also works with other
int types but is usually just a noiseword.
- As86 macro syntax altered, you now don't have to include any brackets.
- Gcc warnings in ar86 cleaned up.
- Mk_dist now makes incremental patch files too.
- Update magic file.
- Various updates to the bios libc, the vt52 and ansi emulations are
now seperated (and can be both included if needed) and don't have
to be linked. Conio functions work properly in bios and msdos.
- Added -v (version)
- as86 and ld86 now delete their binary outputs if there were errors.
- Added more 'set' commands generated by '#asm' lines. The new ones begin
with '.' rather than '_' an are based off the 'bp' register rather than
the 'sp' register.
- Various unused, test and old document files removed.
- as86 modified to use normal malloc routines - no longer has limited
input file size.
- as6809 repaired, appears to work.
- as86 error display adjusted, some errors demoted to warnings.
- Complete re-write of bcc.c driver program. Should now be easier to
modify, does have more versatility so that things that were formerly
compile time options are all run time.
- #asm and #endasm now interact with statment processing inside functions.
If statments and case labels no longer need special layout however #asm
must be placed between statments now.
- The __heap_top virtual constant added, allows the -H option to be used
with the -d option in the linker.
- Conio routines added, merged with bios_getc/bios_putc routines which
now no longer exist under those names.
- monitor.out now copes with very old zimages, like the memtest86 program,
and has 'Retry' prompt for disk errors.
- msdos.s and tarboot.s loading of non-a.out executables adjusted for
dos BIN like files.
- Standalone library startup adjusted to allow execution of a '-d'
executable from DOS, if __argr.x.cflag is set this is running under
DOS.
- Compile for DOS again, disable cpm86 headers under DOS.
- Minor bugfix for as86 binary output re sizeof(int)/K&R problem.
-------------------------------------------------------------------
Wed Jan 25 21:44:11 CET 2006 - mls@suse.de

View File

@ -1,26 +1,26 @@
#
# spec file for package bin86 (Version 0.16.0)
# spec file for package bin86 (Version 0.16.17)
#
# Copyright (c) 2005 SUSE LINUX Products GmbH, Nuernberg, Germany.
# Copyright (c) 2007 SUSE LINUX Products GmbH, Nuernberg, Germany.
# This file and all modifications and additions to the pristine
# package are under the same license as the package itself.
#
# Please submit bugfixes or comments via http://www.suse.de/feedback/
# Please submit bugfixes or comments via http://bugs.opensuse.org/
#
# norootforbuild
Name: bin86
License: Other License(s), see package
Group: Development/Languages/Other
Autoreqprov: on
Version: 0.16.0
Release: 190
Summary: An 8086 Assembler and Linker
URL: http://www.cix.co.uk/~mayday/
Source: Dev86src-%{version}.tar.bz2
Patch: dev86-%{version}.dif
BuildRoot: %{_tmppath}/%{name}-%{version}-build
Name: bin86
License: Other License(s), see package
Group: Development/Languages/Other
Autoreqprov: on
Version: 0.16.17
Release: 1
Summary: An 8086 Assembler and Linker
URL: http://www.cix.co.uk/~mayday/
Source: Dev86src-%{version}.tar.bz2
Patch: dev86-%{version}.dif
BuildRoot: %{_tmppath}/%{name}-%{version}-build
%description
An 8086 assembler and linker.
@ -35,9 +35,9 @@ Authors:
H.J. Lu <hjl@nynexst.com>
%package -n dev86
Summary: 8086 Development Suite
Requires: bin86
Group: Development/Languages/Other
Summary: 8086 Development Suite
Requires: bin86
Group: Development/Languages/Other
%description -n dev86
This package contains tools for generating Elks/8086 programs and the
@ -64,7 +64,6 @@ rm -rf $RPM_BUILD_ROOT
make install DIST=$RPM_BUILD_ROOT PREFIX=/usr MANDIR=/usr/share/man
make other
make install-other DIST=$RPM_BUILD_ROOT MANDIR=/usr/share/man
ln -sf as86.1 $RPM_BUILD_ROOT/usr/share/man/man1/as86_encap.1
mv bootblocks/README bootblocks/README.bootblocks
mv copt/README copt/README.copt
mv dis88/README dis88/README.dis88
@ -82,13 +81,11 @@ rm -rf $RPM_BUILD_ROOT
%defattr(-,root,root)
%doc README
/usr/bin/as86
/usr/bin/as86_encap
/usr/bin/ld86
/usr/bin/nm86
/usr/bin/objdump86
/usr/bin/size86
%doc /usr/share/man/man1/as86.1.gz
%doc /usr/share/man/man1/as86_encap.1.gz
%doc /usr/share/man/man1/ld86.1.gz
%files -n dev86
@ -97,18 +94,112 @@ rm -rf $RPM_BUILD_ROOT
%doc dis88/README.dis88
%doc elksemu/README.elksemu unproto/README.unproto bin86/README-0.4
%doc bin86/README.bin86 bin86/ChangeLog
/lib/elksemu
/usr/bin/elksemu
/usr/bin/ar86
/usr/bin/bcc
/usr/bin/dis86
/usr/bin/makeboot
/usr/lib/bcc
/usr/lib/liberror.txt
%doc /usr/share/man/man1/bcc.1.gz
%doc /usr/share/man/man1/dis86.1.gz
%doc /usr/share/man/man1/elks.1.gz
%doc /usr/share/man/man1/elksemu.1.gz
%changelog -n bin86
* Sun Jan 21 2007 - ro@suse.de
- update to 0.16.17 (thanks to rschiele)
- Sorry forgot to flip this back: perror and strerror are back to using
the /lib/liberror.txt file for all 8086 Elks modes. Only i386 has the
file linked. Elksemu now traps accesses to this file and substitutes
a fake.
- Added vararg macros to new preprocessor.
- Builtin CPP removed for __BCC__ compile, bcc-cc1 fit in 16bit but
crashes. Thirty two bit works fine, gcc or bcc. (almost any 32bit.)
- Added __BCC_VERSION__ macro, defined by bcc.c contains hex version no.
- Bugfix for offsets generated by #asm when using -O option to bcc-cc1.
Extra compile option ASM_USES_CALLEE_REGS.
- Extra checking and bugfix for mixing char values with long shifts.
- WARNING to distributions: I've altered the install scripts and paths
you will want to check them. Altered paths for bcc.c and normal
installs, defaults should now be good for distributions where bcc is a
cross compiler. If you set the PREFIX to / it'll install to suggested
Native paths. As86_encap moved to LIBDIR.
- I've altered 'perror' and 'strerror' to be normal when compiled for
everything except libc_f.a. Only with that library will it look for the
liberror.txt file and it now looks in "/lib/liberror.txt" only.
This means there's no need to install it anywhere except ELKS itself.
- Change -Mg option to use uclibc as glibc2 seems to have stopped working.
- ar.c switch to using strerror.
- Move elksemu, it's used like a shared library but is best treated like
an emulator so it's now installed in DISTBIN. Also on Linux-386 it's
compiled using the system compiler.
- Use the POSIX -R argument to cp rather than the normal standard -r because
some new systems have decided to stop supporting their '-r' option.
- Oops, the constant error strings in the assembler were char pointers not
char arrays, small waste of space.
- Allow for Linux-2.6 32bit dev_t.
- More changes so it compiles better on 'other' machines.
Removed some GNU-Make'isms in the top header file.
- It seems that CYGWin's problem with _P is inherited from BSD. It also
seems most of my problems come from BSD recently, haven't they realised
that they down own the 'Unix Standard' anymore and haven't since SYSV
got popular.
- Some changes for cygwin, it isn't quite as nasty as compiling for minix
but it doesn't miss by much!
- Compiling for the 'tcc' complier, nice and easy.
- Hitting bcc.c again, bcc-cpp now the default.
- Some bugfixes for DEC Alpha -- 64 bit longs!
Constant folding still done with 64bit longs though.
- The fopen function (and friends) is now a real function not a macro.
- Ctype.h updated to ansi.
- Libraries appear to compile properly with -O and -ansi now.
- Copt's hash string table adjusted; should now have fewer pathological cases.
- Order of copt's rule processing reversed; it now works from the top of a
rule file to the bottom. Also comment lines may be include in the match
lines. !BCC_EOS added to bcc-cc1 for 'end of statment'.
- bcc-cc1's asm("") now works in declare mode too.
- New independed cpp added, has both K&R and Ansi modes.
Changes made to the embedded cpp too to try and fix some bad bits.
- Conditional assembler added around push and pop of 'si' and 'di' if the
optimiser (and as86's optimiser) are to be run.
- Signed keyword added to bcc-cc1 for 'signed char' also works with other
int types but is usually just a noiseword.
- As86 macro syntax altered, you now don't have to include any brackets.
- Gcc warnings in ar86 cleaned up.
- Mk_dist now makes incremental patch files too.
- Update magic file.
- Various updates to the bios libc, the vt52 and ansi emulations are
now seperated (and can be both included if needed) and don't have
to be linked. Conio functions work properly in bios and msdos.
- Added -v (version)
- as86 and ld86 now delete their binary outputs if there were errors.
- Added more 'set' commands generated by '#asm' lines. The new ones begin
with '.' rather than '_' an are based off the 'bp' register rather than
the 'sp' register.
- Various unused, test and old document files removed.
- as86 modified to use normal malloc routines - no longer has limited
input file size.
- as6809 repaired, appears to work.
- as86 error display adjusted, some errors demoted to warnings.
- Complete re-write of bcc.c driver program. Should now be easier to
modify, does have more versatility so that things that were formerly
compile time options are all run time.
- #asm and #endasm now interact with statment processing inside functions.
If statments and case labels no longer need special layout however #asm
must be placed between statments now.
- The __heap_top virtual constant added, allows the -H option to be used
with the -d option in the linker.
- Conio routines added, merged with bios_getc/bios_putc routines which
now no longer exist under those names.
- monitor.out now copes with very old zimages, like the memtest86 program,
and has 'Retry' prompt for disk errors.
- msdos.s and tarboot.s loading of non-a.out executables adjusted for
dos BIN like files.
- Standalone library startup adjusted to allow execution of a '-d'
executable from DOS, if __argr.x.cflag is set this is running under
DOS.
- Compile for DOS again, disable cpm86 headers under DOS.
- Minor bugfix for as86 binary output re sizeof(int)/K&R problem.
* Wed Jan 25 2006 - mls@suse.de
- converted neededforbuild to BuildRequires
* Thu Sep 22 2005 - ro@suse.de

View File

@ -1,307 +0,0 @@
--- Makefile
+++ Makefile
@@ -11,10 +11,11 @@
ELKSSRC= /usr/src/elks
PREFIX= /usr
-LIBPRE= $(PREFIX)/bcc
+LIBPRE= $(PREFIX)/lib/bcc
BINDIR= $(PREFIX)/bin
-LIBDIR= $(LIBPRE)/lib/bcc
-CFLAGS= -O
+MANDIR= $(PREFIX)/man
+LIBDIR= $(LIBPRE)
+CFLAGS= -O2 -m486 -fno-strength-reduce
# Some makes take the last of a list as the default ...
all: make.fil
@@ -38,6 +39,7 @@
-e "s:%PREFIX%:$(PREFIX):" \
-e "s:%LIBPRE%:$(LIBPRE):" \
-e "s:%BINDIR%:$(BINDIR):" \
+ -e "s:%MANDIR%:$(MANDIR):" \
-e "s:%LIBDIR%:$(LIBDIR):" \
-e "s:%ELKSSRC%:$(ELKSSRC):" \
-e "s:%CC%:$(CC):" \
@@ -64,9 +66,9 @@
rm -f $(BINDIR)/objdump86 $(BINDIR)/nm86 $(BINDIR)/size86
rm -f /lib/elksemu
rm -f /usr/lib/liberror.txt
- rm -f /usr/man/man1/elks.1* /usr/man/man1/elksemu.1*
- rm -f /usr/man/man1/dis86.1* /usr/man/man1/bcc.1*
- rm -f /usr/man/man1/as86.1* /usr/man/man1/ld86.1*
+ rm -f $(MANDIR)/man1/elks.1* $(MANDIR)/man1/elksemu.1*
+ rm -f $(MANDIR)/man1/dis86.1* $(MANDIR)/man1/bcc.1*
+ rm -f $(MANDIR)/man1/as86.1* $(MANDIR)/man1/ld86.1*
@# TO HERE
distribution:
--- ar/ar.c
+++ ar/ar.c
@@ -28,6 +28,7 @@
#include <time.h>
#include <sys/types.h>
#include <sys/stat.h>
+#include <errno.h>
#include "ar.h"
#include "rel_aout.h"
@@ -35,16 +36,12 @@
#define HAVE_RENAME
#undef HAVE_FSYNC
#define SHORT_FILENAME
-extern char **sys_errlist;
-extern int sys_nerr;
#else
#define HAVE_FCHMOD
#define HAVE_RENAME
#undef HAVE_FSYNC
#endif
-extern int errno;
-
#ifdef __GNUC__
# ifndef alloca
# define alloca __builtin_alloca
@@ -500,7 +497,7 @@
break;
default:
- usage ("invalid operation %d", operation);
+ usage ("invalid operation %d", (char *) operation);
}
exit (0);
@@ -669,7 +666,7 @@
chmod (member.name, member.mode);
#endif
if (ferror (ostream) || fclose (ostream) != 0)
- error ("%s: I/O error", member.name);
+ error ("%s: I/O error", member.name, NULL, NULL, NULL);
if (preserve_dates)
{
@@ -816,7 +813,7 @@
{
register struct mapelt *found = find_mapelt_noerror (map, name);
if (found == 0)
- error ("no member named `%s'", name);
+ error ("no member named `%s'", name, NULL, NULL, NULL);
return found;
}
@@ -1076,7 +1073,7 @@
}
header->ar_name[sizeof (header->ar_name) - 1] = '\0';
error ("member name `%s' truncated to `%s'",
- mapelt->info.name, header->ar_name);
+ mapelt->info.name, header->ar_name, NULL, NULL);
}
#if defined(USG) || defined(HAVE_TRAILING_SLASH_IN_NAME)
{
@@ -1275,7 +1272,7 @@
{
struct mapelt *map = make_map (0);
char **p;
- struct mapelt *after_mapelt;
+ struct mapelt *after_mapelt = NULL;
struct mapelt mapstart;
struct mapelt *change_map;
@@ -1337,7 +1334,7 @@
{
struct mapelt *map = make_map (1);
struct mapelt mapstart;
- struct mapelt *after_mapelt;
+ struct mapelt *after_mapelt = NULL;
struct mapelt *change_map;
char **p;
int changed;
@@ -1980,7 +1977,7 @@
usage (s1, s2)
char *s1, *s2;
{
- error (s1, s2);
+ error (s1, s2, NULL, NULL, NULL);
fprintf (stderr, "\
Usage: %s [d|m|p|q|r|t|x [[abi [position-name] [cilouv]] archive file...\n",
program_name);
@@ -1990,10 +1987,9 @@
/* Print error message and exit. */
void
-fatal (s1, s2)
- char *s1, *s2;
+fatal (char *s1, char *s2)
{
- error (s1, s2);
+ error (s1, s2, NULL, NULL, NULL);
exit (1);
}
@@ -2027,12 +2023,11 @@
char *name;
{
char *s;
-
- if (errno < sys_nerr)
- s = concat ("", sys_errlist[errno], " for %s");
- else
+ int m_errno = errno;
+ s = concat ("", strerror(errno), " for %s");
+ if (m_errno != errno)
s = "unknown error for %s";
- error (s, name);
+ error (s, name, NULL, NULL, NULL);
}
void
@@ -2040,10 +2035,9 @@
char *name;
{
char *s;
-
- if (errno < sys_nerr)
- s = concat ("", sys_errlist[errno], " for %s");
- else
+ int m_errno = errno;
+ s = concat ("", strerror(errno), " for %s");
+ if (m_errno != errno)
s = "cannot open %s";
fatal (s, name);
}
@@ -2089,7 +2083,7 @@
{
char *result = realloc (ptr, size);
if (result == 0)
- fatal ("virtual memory exhausted");
+ fatal ("virtual memory exhausted", 0);
return result;
}
--- bcc/Makefile
+++ bcc/Makefile
@@ -4,13 +4,13 @@
#
PREFIX=/usr
-LIBPRE=$(PREFIX)
+LIBPRE=$(PREFIX)/lib/bcc
CFLAGS =-O
LDFLAGS =-s
BINDIR =$(PREFIX)/bin
-LIBDIR =$(LIBPRE)/lib/bcc
-BCCDEFS =-DLOCALPREFIX=$(LIBPRE) -DBINDIR=$(BINDIR) -DDEFARCH=0
+LIBDIR =$(LIBPRE)
+BCCDEFS =-DLOCALPREFIX=$(PREFIX) -DBINDIR=$(BINDIR) -DDEFARCH=0
OBJS = bcc-cc1.o codefrag.o debug.o declare.o express.o exptree.o floatop.o \
function.o gencode.o genloads.o glogcode.o hardop.o input.o label.o \
--- bcc/bcc.c
+++ bcc/bcc.c
@@ -3,6 +3,7 @@
/* Copyright (C) 1992 Bruce Evans */
#define _POSIX_SOURCE 1
+#define _BSD_SOURCE 1
#include <sys/types.h>
#include <sys/stat.h>
@@ -961,10 +962,14 @@
for(d=s=ptr; d && *s; s=d)
{
+#ifdef PATH_MAX
+ char buf[PATH_MAX];
+#else
#ifdef MAXPATHLEN
char buf[MAXPATHLEN];
#else
- char buf[1024];
+ char buf[4096];
+#endif
#endif
free(temp);
--- dis88/Makefile
+++ dis88/Makefile
@@ -28,6 +28,7 @@
CFLAGS=-O
LDFLAGS=
PREFIX=/usr
+MANDIR=$(PREFIX)/man
OBJ = disrel.o dismain.o distabs.o dishand.o disfp.o
@@ -37,8 +38,8 @@
$(CC) $(LDFLAGS) -o dis88 $(OBJ)
install: dis88
- install -m 755 -s dis88 $(DIST)$(PREFIX)/bin/dis86
- install -m 644 dis88.1 $(DIST)$(PREFIX)/man/man1/dis86.1
+ install -m 755 dis88 $(DIST)$(PREFIX)/bin/dis86
+ install -m 644 dis88.1 $(DIST)$(MANDIR)/man1/dis86.1
$(OBJ): dis.h a.out.h
--- elksemu/Makefile
+++ elksemu/Makefile
@@ -39,7 +39,7 @@
# to redirect.
install: elksemu
install -d $(DIST)/lib
- install -s -o root -g root -m 4555 elksemu $(DIST)/lib/elksemu
+ install -o root -g root -m 4555 elksemu $(DIST)/lib/elksemu
clean realclean:
rm -f $(OBJ) binfmt_elks.o elksemu call_tab.v defn_tab.v
--- ld/dumps.c
+++ ld/dumps.c
@@ -2,6 +2,7 @@
/* Copyright (C) 1994 Bruce Evans */
+#include <string.h>
#include "const.h"
#include "obj.h"
#include "type.h"
--- makefile.in
+++ makefile.in
@@ -68,13 +68,13 @@
# Alter these if for some reason you don't want this done as root.
#ifdef __BCC__
-INDAT=-o root -g root -m 644
-INEXE=-o root -g root -m 755
-INSCR=-o root -g root -m 755
+INDAT=-m 644
+INEXE=-m 755
+INSCR=-m 755
#else
-INDAT=-o root -g root -m 644
-INEXE=-o root -g root -m 755 -s
-INSCR=-o root -g root -m 755
+INDAT=-m 644
+INEXE=-m 755
+INSCR=-m 755
#endif
#ifdef GNUMAKE
@@ -102,6 +102,7 @@
LIBPRE= %LIBPRE%
BINDIR= %BINDIR%
LIBDIR= %LIBDIR%
+MANDIR= %MANDIR%
#ifdef GNUMAKE
export ELKSSRC
@@ -214,7 +215,7 @@
#endif
install-man:
- -$(MAKEC) man MANDIR=$(DIST)$(PREFIX)/man install
+ -$(MAKEC) man MANDIR=$(DIST)$(MANDIR) install
install-lib: lib/lib0-done lib/lib2-done
install -d $(DISTLIB)/i86

137
dev86-0.16.17.dif Normal file
View File

@ -0,0 +1,137 @@
--- Makefile
+++ Makefile
@@ -18,7 +18,7 @@
INCLDIR= $(PREFIX)/lib/bcc
ASLDDIR= $(BINDIR)
MANDIR= $(PREFIX)/man
-CFLAGS= -O
+CFLAGS= -O2 -m486 -fno-strength-reduce
# Some makes take the last of a list as the default ...
all: make.fil
--- ar/ar.c
+++ ar/ar.c
@@ -500,7 +500,7 @@
break;
default:
- usage ("invalid operation %d", operation);
+ usage ("invalid operation %d", (char *) operation);
}
exit (0);
@@ -2003,8 +2003,7 @@
/* Print error message and exit. */
void
-fatal (s1, s2)
- char *s1, *s2;
+fatal (char *s1, char *s2)
{
error (s1, s2);
exit (1);
--- bcc/bcc.c
+++ bcc/bcc.c
@@ -600,9 +600,13 @@
command_reset()
{
#ifndef MAXPATHLEN
-#define MAXPATHLEN 1024
+#define MAXPATHLEN 4096
#endif
+#ifdef PATH_MAX
+ char buf[PATH_MAX];
+#else
char buf[MAXPATHLEN];
+#endif
char ** prefix;
char * saved_cmd;
@@ -1308,10 +1312,10 @@
for(d=s=ptr; d && *s; s=d)
{
-#ifdef MAXPATHLEN
- char buf[MAXPATHLEN];
+#ifdef PATH_MAX
+ char buf[PATH_MAX];
#else
- char buf[1024];
+ char buf[MAXPATHLEN];
#endif
free(temp);
--- bcc/dbprintf.c
+++ bcc/dbprintf.c
@@ -1,6 +1,7 @@
#include <sys/types.h>
#include <fcntl.h>
+#include <string.h>
#if defined(__STDC__) && !defined(__FIRST_ARG_IN_AX__)
#include <stdarg.h>
--- bootblocks/Makefile
+++ bootblocks/Makefile
@@ -38,7 +38,7 @@
EXTRAS=minix.h zimage.s minix_elks.c lsys.c boot_win.c
install: makeboot
- install -m 755 -s makeboot $(DIST)$(PREFIX)/bin/makeboot
+ install -m 755 makeboot $(DIST)$(PREFIX)/bin/makeboot
monitor.com: $(MOBJ)
$(CC) $(CFLAGS) $(LDFLAGS) $(MONDEFS) -d $(MOBJ) -o monitor.com -M > monitor.sym
--- dis88/Makefile
+++ dis88/Makefile
@@ -28,6 +28,7 @@
CFLAGS=-O
LDFLAGS=
PREFIX=/usr
+MANDIR=$(PREFIX)/man
OBJ = disrel.o dismain.o distabs.o dishand.o disfp.o
@@ -37,8 +38,8 @@
$(CC) $(LDFLAGS) -o dis88 $(OBJ)
install: dis88
- install -m 755 -s dis88 $(DIST)$(PREFIX)/bin/dis86
- install -m 644 dis88.1 $(DIST)$(PREFIX)/man/man1/dis86.1
+ install -m 755 dis88 $(DIST)$(PREFIX)/bin/dis86
+ install -m 644 dis88.1 $(DIST)$(MANDIR)/man1/dis86.1
$(OBJ): dis.h a.out.h
--- elksemu/Makefile
+++ elksemu/Makefile
@@ -42,7 +42,7 @@
# to redirect.
install: elksemu
install -d $(DIST)/lib
- install -s -o root -g root -m 4555 elksemu $(DIST)/lib/elksemu
+ install -o root -g root -m 4555 elksemu $(DIST)/lib/elksemu
clean realclean:
rm -f $(OBJ) binfmt_elks.o elksemu call_tab.v defn_tab.v efile.h
--- ld/dumps.c
+++ ld/dumps.c
@@ -2,6 +2,7 @@
/* Copyright (C) 1994 Bruce Evans */
+#include <string.h>
#include "const.h"
#include "obj.h"
#include "type.h"
--- makefile.in
+++ makefile.in
@@ -78,7 +78,7 @@
# Install files with the userid of the currently running process.
INDAT=-m 644
-INEXE=-m 755 -s
+INEXE=-m 755
INSCR=-m 755
#ifdef __CYGWIN__