1
0
mirror of https://github.com/Interlisp/maiko.git synced 2026-01-16 00:04:59 +00:00

329 Commits

Author SHA1 Message Date
Bruce Mitchener
fd0e12e855
Remove AIX RS/6000 platform support. (#46)
AIX on PS/2 will be removed separately.
2020-12-14 12:13:38 -08:00
Bruce Mitchener
605499bfc2
Remove getdtablesize calls in favor of sysconf(_SC_OPEN_MAX). (#45)
`getdtablesize()` has long been deprecated in favor of
`sysconf(_SC_OPEN_MAX)`.
2020-12-14 11:55:08 -08:00
Bruce Mitchener
9c01d39812
Use waitpid, not wait3, etc. (#44)
This removes code that uses `union wait` status in favor of code
that uses `int` status. This has been the correct way since
SvR4, BSD 4.3, POSIX.
2020-12-14 09:58:28 -08:00
Bruce Mitchener
20040a73b0
Use tcgetattr/tcsetattr in termios code, not ioctl. (#43)
Previously, we were using ioctl directly on some platforms rather
than always going through termios. This complicates portability.
2020-12-14 17:49:28 +00:00
Bruce Mitchener
52d3590401
Remove 1988-era copies of some SunOS headers. (#42) 2020-12-14 17:38:14 +00:00
Bruce Mitchener
a68cce2203
Begin to clean up includes and ifdefs in includes. (#41) 2020-12-14 09:26:06 -08:00
Bruce Mitchener
2dba7492af
Begin to remove ISC platform support. (#40)
We don't want to modify emulation code yet as ISC support included
a number of other things, including some i386 code that isn't used
on other platforms, but is still useful as a reference.
2020-12-13 22:31:58 -08:00
Bruce Mitchener
7119613aee
Remove RISCOS platform support. (#39) 2020-12-14 01:38:57 +00:00
Bruce Mitchener
7313de4274
Remove FUJI compile flag. (#38)
This was only used for a keyboard warning that doesn't seem
relevant any longer.
2020-12-14 01:21:54 +00:00
Bruce Mitchener
074dce0e90
Remove bin/optck and bin/optck-. (#24)
These were binaries built for SPARC to test some assembler
optimizations.

They aren't needed as part of the version control as they're just
artifacts of the past.
2020-12-13 15:40:24 -08:00
Bruce Mitchener
46e9882f30
We only build as ANSI C, so we don't check for __STDC__. (#37) 2020-12-13 10:24:04 -08:00
Bruce Mitchener
33a42736d4
Remove OSF1 / DEC3100 platform support. (#36)
This also removes support for the DEC3100 keyboard, but leaves a
constant behind for it as I'm not sure about re-numbering.
[NBriggs: keyboard type numbers are stored within all sysouts.  Do not renumber supported keyboards, do not reuse previously used keyboard numbers]
2020-12-13 10:22:43 -08:00
Nick Briggs
cfec521c33 Remove unused VOID 2020-12-12 23:44:12 -08:00
Bruce Mitchener
8e67d0e3c9
Remove unused externs.h (#35)
The things that are declared here either are declared elsewhere
or don't exist any longer.
2020-12-12 21:46:34 -08:00
Bruce Mitchener
362c658c73
Remove usermakefile for Apollo Domain. (#32)
Follow up on #30.
2020-12-12 21:46:07 -08:00
Bruce Mitchener
1c912ff57e
Remove HP platform support. (#34)
This removes code related to HP9000, HPTIMERBUG, and HPUX defines.

It leaves KB_HP9000 for now as I'm not sure about renumbering
those constants.

This should not impact any of the core emulation code.
2020-12-13 05:35:53 +00:00
Bruce Mitchener
750d84c78c
Remove SGI Irix platform support. (#33)
This platform had no emulation-related changes.

Remove code for IRIX40, INDIGO definitions.

In disk code, simplify a chain of #ifdef's around fsync handling.
2020-12-13 02:57:07 +00:00
Bruce Mitchener
1c28005420
Remove support for Ultrix. (#28)
Ultrix hasn't seen an update since 1995 and the DEC3100 hardware
that this was originally written for was released in 1989.

It isn't likely that anyone has Ultrix running on hardware where
they would also want to run this.
2020-12-12 18:15:22 -08:00
Bruce Mitchener
348a3a2b30
uutils: Clean up string.h inclusion. (#31)
This is similar to the change in #27. We can just include <string.h>
rather than doing performative dances and complicating everything.
2020-12-12 18:12:06 -08:00
Bruce Mitchener
d91bdc0994
initkbd: Fix warning about missing decl for strcmp. (#27)
Instead of adding more stuff to the `#ifdef` around the inclusion
of `<string.h>`, we remove that `#ifdef` entirely.

There are many instances of `<string.h>` being included in the
code without any `#ifdef` protection, and `strcmp` is defined to
be declared in `<string.h>`, so all platforms from the last 20
years and into the future will need this.
2020-12-12 18:09:10 -08:00
Bruce Mitchener
292809694e
Remove platform support for Apollo/Domain. (#30) 2020-12-13 02:07:08 +00:00
Bruce Mitchener
69e66470a0
Remove unused _I386 -D flag. (#29)
This flag isn't actually used in any code, so let's remove it to
avoid confusion over whether it does do something or not.
2020-12-12 18:59:26 +00:00
Nick Briggs
a059b67e88 Make dremove() static in src/storage.c, there are no other references. 2020-12-11 22:06:23 -08:00
Nick Briggs
8ee75ede4e Don't define old_cursorin() if it's not going to be used (REALCURSOR || SUNDISPLAY).
modified:   src/bbtsub.c
2020-12-11 16:40:08 -08:00
Nick Briggs
0786d75e67 Correct C dremove() implementation (not used for implementation of the Lisp DREMOVE function)
The C translation didn't observe that the value of (COND (C X)) is NIL if not C.

	modified:   src/storage.c
2020-12-11 16:20:33 -08:00
Bruce Mitchener
259a2006a1
Remove inc/lnk-*.h (#23)
These headers aren't used and are all old copies of the same
headers without `lnk-` in the name.
2020-12-10 21:52:12 -08:00
Bruce Mitchener
fd9ca83dac
Remove inc/stream.h2 (#26)
This is identical to inc/stream.h apart from a SCCS ID line and
is unused.
2020-12-10 21:41:52 -08:00
Bruce Mitchener
79c3fdd691
Add initial CI via GitHub Actions. (#22)
This does a basic build for macOS Catalina and Ubuntu Bionic.
2020-12-11 05:38:33 +00:00
Bruce Mitchener
d8aef575b4
Remove old editor save file for inc/sysatms.h. (#25) 2020-12-10 21:00:01 -08:00
Nick Briggs
a02ea64c52 Use correct format (%ld) for (long) times in seconds. 2020-12-10 16:53:40 -08:00
Bruce Mitchener
dbd5bd6679
Remove fp.h (#21)
This was replaced by medleyfp.h. Perhaps this happened because
some systems have an fp.h in their system includes and the naming
collision was an issue. But nothing uses fp.h and medleyfp.h is
an updated version of the contents.

This also updates a bunch of manually managed dependency lists
to reflect the usage of medleyfp.h rather than fp.h.

Nick Briggs: Note that on OSF1 medleyfp.h includes the system fp.h (probably the origin of the renaming)
2020-12-10 17:52:08 +00:00
Bruce Mitchener
d6d2a3371a
Use getcwd() instead of getwd(). (#20)
getwd() has been deprecated for a long time and getcwd() should
be used instead.
2020-12-10 17:24:21 +00:00
Bruce Mitchener
11c083d792
Remove editor save files. (#19)
Reviewed differences between save files and current versions to ensure no relevant history was lost.
2020-12-10 08:39:07 -08:00
Bruce Mitchener
e025617c13
Fix some typos. (#18)
Changes to commentary only.
2020-12-10 08:07:35 -08:00
Nick Briggs
5c8fb47005 Change local variable name to avoid warnings for shadowing.
modified:   inc/arith.h
2020-12-09 18:23:16 -08:00
Nick Briggs
9b12db45be Really switch to UNSIGNED instead of uintptr_t -- modified src/findkey.c 2020-12-09 18:14:50 -08:00
Nick Briggs
af50a35911 version.h defines "UNSIGNED" as the type for pointer-sized integer. Using "unsigned" may produce the wrong answer on a 64-bit system.
modified:   ../src/findkey.c
2020-12-09 18:09:19 -08:00
Nick Briggs
a6db884947 Add a tiny bit of documentation for newpage(). No functional change.
modified:   src/storage.c
2020-12-09 13:50:15 -08:00
Nick Briggs
b234064d91 Rework handling of I/O via select() to use correct fd_set type instead of int for fd sets.
Some code that was maintaining an fd_set with only a single fd was replaced
       with just the fd as int, which can be added to the global fd_set as needed.
       More testing is required for less usual configurations such as host TCP/UDP/IP
       and direct ethernet (packet filter or NIT) I/O.

	modified:   src/common.c
	modified:   src/ether.c
	modified:   src/inet.c
	modified:   src/initkbd.c
	modified:   src/kbdsubrs.c
	modified:   src/keyevent.c
	modified:   src/main.c
	modified:   src/osmsg.c
	modified:   src/rawrs232c.c
	modified:   src/rpc.c
	modified:   src/rs232c.c
	modified:   src/tty.c
	modified:   src/uraid.c
	modified:   src/xinit.c
2020-12-08 19:26:56 -08:00
Nick Briggs
ba0a42f663 Remove replicated (debug) storage for stack block checks causing shadowed variable warnings.
Initialize free stack block debug storage using sizeof() appropriately.

	modified:   src/llstk.c
2020-12-08 12:34:59 -08:00
Nick Briggs
af30a6d5a9 Change names of block local variables causing shadowing warnings.
Remove duplicate function prototype declaration (duplicate in inc/returndefs.h)

	modified:   inc/return.h
2020-12-08 10:20:07 -08:00
Nick Briggs
be3ffd746c Remove unnecessary declaration causing shadowing warnings.
modified:   ../src/ldeboot.c
	modified:   ../src/unixfork.c
2020-12-08 10:03:40 -08:00
Nick Briggs
49aa01a70b Remove unnecessary declaration causing shadowing warnings.
Improve debugging output for fp-to-vp page runs.

	modified:   src/vmemsave.c
2020-12-08 09:55:41 -08:00
Nick Briggs
f89cc4449c Fix local variables declared in macros to avoid them shadowing other variables.
Fix some spelling errors.
Remove deprecated register attribute

	modified:   inc/lispver2.h
	modified:   inc/locfile.h
2020-12-07 15:36:53 -08:00
Nick Briggs
f94570d01c Fix warning for missing function prototype in keymaker.c 2020-12-07 15:22:47 -08:00
Nick Briggs
a067ab2a67 Correct spelling errors in rs232c.h 2020-12-07 11:03:05 -08:00
Nick Briggs
064027e841 Use MAXPATHLEN for length of arrays containing path.
Use strncpy() to replace unsafe use of strcpy().
Use getcwd() to replace unsafe use of getwd().

	modified:   main.c
2020-12-05 17:44:07 -08:00
Nick Briggs
be5e981941 Using memset() requires including <string.h>
modified:   src/ldsout.c
2020-12-04 13:07:55 -08:00
Nick Briggs
90cca21044 Don't use "id" for a variable shadowing the global "id" identification string.
modified:   src/chatter.c
	modified:   src/dir.c
	modified:   src/ejlisp.c
	modified:   src/osmsg.c
	modified:   src/picture.c
2020-11-28 18:21:59 -08:00
Nick Briggs
fea01d8b69 Don't use "id" for a variable shadowing the global "id" identification string.
Addresses passed as data to an ioctl() should be void* not int.

	modified:   src/chardev.c
2020-11-28 18:13:53 -08:00