Xenix mods to arc 5.21
Jonathan Bayer
jbayer at ispi.UUCP
Wed Aug 16 04:50:57 AEST 1989
The following is a set of patches to the recently posted Arc 5.21 for
SCO Xenix. They require that the following sources and patches have
been applied:
1. The standard 6-part distribution
2. Official Patch # 1
3. Official Patch # 1a
4. Official Patch # 1b
5. Official Patch # 2
6. Official Patch # 2a
After applying all the patches, unshar the shar "Sysvarcstuf". Then
apply these patches.
These patches work for SCO Xenix 2.3.* using the 2.3 development system.
Successful binaries have been made using the 386 small model, and the
286 large model. I have not tested any of the other models.
JB
#! /bin/sh
# This is a shell archive. Remove anything before this line, then unpack
# it by saving it into a file and typing "sh file". To overwrite existing
# files, type "sh file -c". You can also feed this as standard input via
# unshar, or by typing "sh <file", e.g.. If this archive is complete, you
# will see the following message at the end:
# "End of shell archive."
# Contents: README.XENIX XENIX.patches
# Wrapped by root at ispi on Tue Aug 15 14:48:13 1989
PATH=/bin:/usr/bin:/usr/ucb ; export PATH
if test -f 'README.XENIX' -a "${1}" != "-c" ; then
echo shar: Will not clobber existing file \"'README.XENIX'\"
else
echo shar: Extracting \"'README.XENIX'\" \(610 characters\)
sed "s/^X//" >'README.XENIX' <<'END_OF_FILE'
XThe following is a set of patches to the recently posted Arc 5.21 for
XSCO Xenix. They require that the following sources and patches have
Xbeen applied:
X
X 1. The standard 6-part distribution
X 2. Official Patch # 1
X 3. Official Patch # 1a
X 4. Official Patch # 1b
X 5. Official Patch # 2
X 6. Official Patch # 2a
X
XAfter applying all the patches, unshar the shar "Sysvarcstuf". Then
Xapply these patches.
X
XThese patches work for SCO Xenix 2.3.* using the 2.3 development system.
XSuccessful binaries have been made using the 386 small model, and the
X286 large model. I have not tested any of the other models.
X
X
XJB
END_OF_FILE
if test 610 -ne `wc -c <'README.XENIX'`; then
echo shar: \"'README.XENIX'\" unpacked with wrong size!
fi
# end of 'README.XENIX'
fi
if test -f 'XENIX.patches' -a "${1}" != "-c" ; then
echo shar: Will not clobber existing file \"'XENIX.patches'\"
else
echo shar: Extracting \"'XENIX.patches'\" \(4072 characters\)
sed "s/^X//" >'XENIX.patches' <<'END_OF_FILE'
X*** stdsrc/Makefile Tue Aug 15 13:58:47 1989
X--- Makefile Tue Aug 15 14:15:21 1989
X***************
X*** 28,39 ****
X # SYSV for AT&T System V Unix
X # (MTS for Michigan Terminal System, which requires a different makefile)
X # (MTS also requires one of USEGFINFO or USECATSCAN for directory search)
X! SYSTEM = -DBSD=1
X
X # For MWC 3.0 on the Atari ST, use:
X #CFLAGS = -VCOMPAC -VPEEP
X CFLAGS = -O $(SYSTEM)
X!
X # GNU's gcc is very nice, if you've got it. Otherwise just cc.
X CC = cc
X
X--- 28,40 ----
X # SYSV for AT&T System V Unix
X # (MTS for Michigan Terminal System, which requires a different makefile)
X # (MTS also requires one of USEGFINFO or USECATSCAN for directory search)
X! # XENIX for SCO Xenix, also define SYSV
X! SYSTEM = -DXENIX=1 -DSYSV=1
X
X # For MWC 3.0 on the Atari ST, use:
X #CFLAGS = -VCOMPAC -VPEEP
X CFLAGS = -O $(SYSTEM)
X! LFLAGS = -lx
X # GNU's gcc is very nice, if you've got it. Otherwise just cc.
X CC = cc
X
X***************
X*** 42,56 ****
X
X OBJS = arc.o arcadd.o arccode.o arccvt.o arcdata.o arcdel.o arcdos.o \
X arcext.o arcio.o arclst.o arclzw.o arcmatch.o arcpack.o arcrun.o \
X! arcsq.o arcsqs.o arcsvc.o arctst.o arcunp.o arcusq.o arcmisc.o
X
X MOBJ = marc.o arcdata.o arcdos.o arcio.o arcmatch.o arcmisc.o
X
X arc$(PROG): $(OBJS) $(TMCLOCK)
X! $(CC) -o arc$(PROG) $(OBJS) $(TMCLOCK)
X
X marc$(PROG): $(MOBJ) $(TMCLOCK)
X! $(CC) -o marc$(PROG) $(MOBJ) $(TMCLOCK)
X
X clean:
X -rm *.o arc$(PROG) marc$(PROG)
X--- 43,58 ----
X
X OBJS = arc.o arcadd.o arccode.o arccvt.o arcdata.o arcdel.o arcdos.o \
X arcext.o arcio.o arclst.o arclzw.o arcmatch.o arcpack.o arcrun.o \
X! arcsq.o arcsqs.o arcsvc.o arctst.o arcunp.o arcusq.o arcmisc.o \
X! rename.o scandir.o getwd.o utimes.o
X
X MOBJ = marc.o arcdata.o arcdos.o arcio.o arcmatch.o arcmisc.o
X
X arc$(PROG): $(OBJS) $(TMCLOCK)
X! $(CC) -o arc$(PROG) $(OBJS) $(TMCLOCK) $(LFLAGS)
X
X marc$(PROG): $(MOBJ) $(TMCLOCK)
X! $(CC) -o marc$(PROG) $(MOBJ) $(TMCLOCK) $(LFLAGS)
X
X clean:
X -rm *.o arc$(PROG) marc$(PROG)
X*** stdsrc/arc.h Tue Aug 15 13:58:49 1989
X--- arc.h Tue Aug 15 14:09:31 1989
X***************
X*** 25,31 ****
X #define setmem(a, b, c) memset(a, c, b)
X #endif
X
X! #if BSD || SYSV
X #define UNIX 1
X #define CUTOFF '/'
X #define OPEN_R "r"
X--- 25,31 ----
X #define setmem(a, b, c) memset(a, c, b)
X #endif
X
X! #if BSD || SYSV || XENIX
X #define UNIX 1
X #define CUTOFF '/'
X #define OPEN_R "r"
X*** stdsrc/arcmisc.c Tue Aug 15 13:58:55 1989
X--- arcmisc.c Tue Aug 15 14:12:36 1989
X***************
X*** 53,64 ****
X
X #if UNIX
X #include <sys/types.h>
X! #include <sys/dir.h>
X #include <sys/stat.h>
X int rename(), unlink();
X #endif
X
X! #if SYSV
X #include <dirent.h>
X #define DIRECT dirent
X #else
X--- 53,68 ----
X
X #if UNIX
X #include <sys/types.h>
X! #if !XENIX
X! # include <sys/dir.h>
X! #else
X! # include <sys/ndir.h>
X! #endif
X #include <sys/stat.h>
X int rename(), unlink();
X #endif
X
X! #if SYSV && ! XENIX
X #include <dirent.h>
X #define DIRECT dirent
X #else
X*** stdsrc/scandir.c Tue Aug 15 14:13:30 1989
X--- scandir.c Tue Aug 15 14:16:31 1989
X***************
X*** 4,10 ****
X */
X #include <stdio.h>
X #include <sys/types.h>
X! #include <dirent.h>
X
X #ifdef RCSID
X static char RCS[] = "$Header: scandir.c,v 1.1 87/12/29 21:35:56 rsalz Exp $";
X--- 4,14 ----
X */
X #include <stdio.h>
X #include <sys/types.h>
X! #if !XENIX
X! # include <dirent.h>
X! #else
X! # include <sys/ndir.h>
X! #endif
X
X #ifdef RCSID
X static char RCS[] = "$Header: scandir.c,v 1.1 87/12/29 21:35:56 rsalz Exp $";
X***************
X*** 14,22 ****
X #define INITIAL_SIZE 20
X
X /* A convenient shorthand. */
X typedef struct dirent ENTRY;
X
X! #define DIRSIZ(d) (sizeof(struct dirent) + strlen(d->d_name) + 1)
X
X /* Linked in later. */
X extern char *malloc();
X--- 18,31 ----
X #define INITIAL_SIZE 20
X
X /* A convenient shorthand. */
X+
X+ #if !XENIX
X typedef struct dirent ENTRY;
X
X! #define DIRSIZ(d) (sizeof(struct dirent) + strlen(d->d_name) + 1)
X! #else
X! typedef struct direct ENTRY;
X! #endif
X
X /* Linked in later. */
X extern char *malloc();
END_OF_FILE
if test 4072 -ne `wc -c <'XENIX.patches'`; then
echo shar: \"'XENIX.patches'\" unpacked with wrong size!
fi
# end of 'XENIX.patches'
fi
echo shar: End of shell archive.
exit 0
--
Jonathan Bayer Beware: The light at the end of the
Intelligent Software Products, Inc. tunnel may be an oncoming dragon
500 Oakwood Ave. ...uunet!ispi!root
Roselle Park, NJ 07204 (201) 245-5922 jbayer at ispi.UUCP
More information about the Comp.sources.bugs
mailing list