1
0
mirror of https://github.com/Interlisp/maiko.git synced 2026-01-15 15:57:13 +00:00

372 Commits

Author SHA1 Message Date
Bruce Mitchener
be88851eaf
Remove USE_UTIME. (#87)
This wasn't enabled and the corresponding code wouldn't have
compiled. The `utime()` function is also deprecated in POSIX.

This used to be enabled for HPUX and RISCOS.
2020-12-16 11:06:14 -08:00
Bruce Mitchener
7a1abc9cc6
Remove commented out directives for SunOS4 dispatch loop hacks. (#84)
On SunOS4, we build `xc.c` by jumping through a lot of hoops to
perform a particular set of operations. We don't do that on other
platforms and this will help clean up the Linux and FreeBSD makefiles.

These directives were already not present in the macOS makefiles.
2020-12-16 11:03:40 -08:00
Bruce Mitchener
6539dc287d
medleyfp.h includes (#82)
* Add missing <math.h> for FPTEST on Linux.

* Consolidate medleyfp.h DOS includes.
2020-12-16 10:57:10 -08:00
Bruce Mitchener
0a57ca5142
Remove asmbitblt.c, duplicate of asmbbt.c. (#85)
When things were renamed for DOS, `asmbitblt.c` became `asmbbt.c`,
but the old file got left around. It was never converted fully
from K&R prototypes, but apart from that, is the same as `asmbbt.c`.
2020-12-16 10:54:23 -08:00
Bruce Mitchener
c728571c5f
Remove commented out CLXFLAGS from non-SunOS makefiles. (#83)
CLX was an alternate client library for X11, isn't really supported
by Maiko, and is unlikely to be in the future on these platforms.
2020-12-16 10:53:38 -08:00
Bruce Mitchener
5dd1b1bdac
SunOS5/SPARC and init.sparc now define FSERROR. (#86)
All other targets that we build were defining `FSERROR` except
these two.
2020-12-16 10:47:28 -08:00
Bruce Mitchener
2050ae69a6
Cleanup mkvdate.c includes. (#81)
All platforms need `<time.h>` for `time` / `ctime`.
All non-DOS platforms need `<sys/time.h>` for `gettimeofday()`.
2020-12-16 07:04:28 +00:00
Bruce Mitchener
6b590edafc
Update old makefiles for renaming of byteswapfns.c (#80)
This was renamed long ago for the DOS port, but not all of
the makefiles were updated.
2020-12-16 07:02:16 +00:00
Bruce Mitchener
847af10c0a
main.c has no dependency upon unixfork.h. (#79)
This avoids a bit of confusion, since unixfork.c isn't built into
the same executable as main.c. (It is part of `lde` instead.)
2020-12-16 05:52:42 +00:00
Bruce Mitchener
ab7329d602
unixfork: read() returns ssize_t. (#77)
We should do this more widely, but this will let us see if we
have any problems across platforms from making this change.
2020-12-15 18:46:20 -08:00
Nick Briggs
a97b2a3501
Fixup xdefs.h (#76)
Update guard name to match file name and protect entire file
Only declare extern lock variables when doing locking
Include system headers that locking macros depend on
Convert code block  macros to do { } while (0) statement style
2020-12-15 18:33:44 -08:00
Bruce Mitchener
7a1569a5ba
Remove unused sccsid files. (#75) 2020-12-15 18:33:10 -08:00
Bruce Mitchener
d5965b64de
Remove final instances of index/rindex defines. (#74) 2020-12-15 18:31:46 -08:00
Nick Briggs
6a336a186e
macOS installation of XQuartz when SIP is enabled does not link /usr/X11 to /opt/X11 (#73) 2020-12-15 13:07:18 -08:00
Nick Briggs
525bda44c8
index/rindex are deprecated in favor of strchr/strrchr so use them directly (#71) 2020-12-15 12:55:30 -08:00
Nick Briggs
8e66ec841f Add missing -DNEW_STORAGE to makefile-sunos5.sparc-x configuration. 2020-12-15 13:22:52 -05:00
Bruce Mitchener
c196393879
Remove unused BSD_COMP define from SunOS5 config. (#70) 2020-12-15 10:17:11 -08:00
Bruce Mitchener
022b3b2721
Clean up unixfork.c includes. (#69)
This also removes some platform ifdef-ery.
2020-12-15 10:14:12 -08:00
Bruce Mitchener
8c617452f7
Remove __USE_BSD define that was copied from Linux. (#68)
This isn't / wasn't needed on FreeBSD.
2020-12-15 10:09:39 -08:00
Bruce Mitchener
4862e8bbb6
Remove -D__USE_BSD from Linux builds. (#67)
This is an internal macro to GNU libc and wasn't meant to be
defined like this. Well, it was. It was deprecated and removed
some years ago, so it isn't doing anything at all here now.
2020-12-15 10:06:15 -08:00
Nick Briggs
d3a94b2d86 gcc says error: C++ style comments are not allowed in ISO C90 2020-12-15 09:51:36 -08:00
Bruce Mitchener
3de2787166
Use settimeofday() instead of stime(). (#65)
Also, fully initialize timeval usec to 0. (Noticed by @nbriggs.)
2020-12-15 09:45:51 -08:00
Bruce Mitchener
e6a5d898c5
Remove more AIX (but not really AIX) ifdefs. (#66)
Trying to remove / replace / update all remaining AIX ifdefs.
2020-12-15 09:02:26 -08:00
Bruce Mitchener
30f51a0601
Switch from ioctl/FIONBIO to fcntl/O_NONBLOCK. (#64) 2020-12-15 08:38:14 -08:00
Bruce Mitchener
69adf2ffd3
Use LINUX, not AIX, in medleyfp.h. (#63)
AIX was defined by a number of targets, but the only one that
doesn't currently have anything here is LINUX, so we can just
check that instead.
2020-12-15 08:32:44 -08:00
Bruce Mitchener
680e8485fe
Remove unused timeoday.c and timeofday.c files. (#62) 2020-12-15 08:09:04 -08:00
Bruce Mitchener
433a659063
Require termios on Unix. (#61)
Remove the USETERMIOS preprocessor definition as well.
2020-12-15 08:05:59 -08:00
Nick Briggs
50c4aa24d6 Interface page storagefullstate is only defined if NEW_STORAGE. 2020-12-14 22:35:55 -08:00
Bruce Mitchener
f6ab28d273
Convert nearly-dead code to using statvfs, not statfs. Remove unused stat buf. (#60)
This code is for non-DOS, non-XWindows, and still used the legacy
statfs API.
2020-12-14 22:24:32 -08:00
Bruce Mitchener
cbcb544e02
xrdopt always needs unistd.h, so don't conditionally include it. (#59) 2020-12-14 22:21:54 -08:00
Bruce Mitchener
bdb7e584b6
Improve I_SETSIG check for X I/O. (#58)
I_SETSIG is part of the STREAMS interface, which is only present
on Solaris (among our supported platforms), so simplify this check.

Other usages of I_SETSIG could be improved, but they need more
investigation and perhaps removal.
2020-12-14 22:17:54 -08:00
Bruce Mitchener
7e2e1399e3
inc/version.h: Remove some old/unused workarounds. (#57) 2020-12-14 22:10:30 -08:00
Bruce Mitchener
57d2fee754
Fix endif comment to indicate correct define. (#55) 2020-12-14 20:39:10 -08:00
Bruce Mitchener
ebf806fc79
Remove remnants of valloc workarounds. (#54) 2020-12-14 20:38:53 -08:00
Bruce Mitchener
fb7e88aba4
Remove makewrong, remnant from Sun3 days. (#53) 2020-12-14 20:38:09 -08:00
Bruce Mitchener
54b4f22d9b
Modernize / simplify statfs / statvfs handling. (#52)
`statfs` was replaced by `statvfs` some years ago in SuSv4 and
is significantly more portable.
2020-12-15 03:30:25 +00:00
Bruce Mitchener
dba22abf93
Remove the signal handler prototype that returns int. (#51)
These should return void and we no longer build for any OS where
an int is returned.
2020-12-14 18:32:50 -08:00
Bruce Mitchener
857100a29a
Remove AIX on PS/2 platform support. (#50) 2020-12-14 18:14:59 -08:00
Bruce Mitchener
df4f8c25eb
Update an inclusion of inlnPS2.h (#49)
Most includes of this file are protected by #ifdef GCC386, but this
one was AIXPS2, which is going away.
2020-12-14 17:16:27 -08:00
Bruce Mitchener
a2c527378e
Remove src/xc.c.orig (#48)
This was a backup copy of xc.c made in 2001 (judging by the Id
line).
2020-12-14 16:59:55 -08:00
Nick Briggs
e267ebcd05 Convert debug print macros to do {} while (0) style.
Convert conditional debug statements to require external semi-colon.

	modified:   ../inc/dbprint.h
	modified:   ../src/ldsout.c
2020-12-14 13:50:55 -08:00
Nick Briggs
cd9e0aa877 Add braces around DBPRINTF macro which could expand to nothing 2020-12-14 13:02:51 -08:00
Bruce Mitchener
7d2de5e4de
Remove define direct dirent workarounds. (#47)
This also removes a workaround for L_SET, as well as some of the
dirent member fields.
2020-12-14 12:16:59 -08:00
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