1
0
mirror of https://github.com/Interlisp/maiko.git synced 2026-01-17 08:33:48 +00:00

191 Commits

Author SHA1 Message Date
Nick Briggs
dfd73dee71 Merge branch 'master' of ssh://192.168.42.74/Users/briggs/Projects/maiko 2020-07-10 00:23:16 -07:00
Nick Briggs
ffc8f06fc3 Solaris has moved from being SYSVONLY to not so. We still need sys/fcntl.h though.
modified:   src/ldsout.c
2020-07-12 18:10:24 -07:00
Nick Briggs
82090e5c3d Go with the more BSD flavor of Solaris and don't redefine index/rindex/bcopy/etc
modified:   inc/version.h
2020-07-12 18:03:54 -07:00
Nick Briggs
2f8789f423 Don't redefine MAXNAMLEN if it previously been defined by the system
modified:   inc/locfile.h
2020-07-12 18:02:06 -07:00
Nick Briggs
123520adf8 define symbols are OS5/OS4 not SUNOS5/SUNOS4
modified:   ../inc/os.h
2020-07-12 17:01:16 -07:00
Nick Briggs
6aa938d453 Relocate MAXNAMLEN definition to proper home in locfile.h
Remove selection of SYSVONLY for macOS and FreeBSD compilation (they are BSD flavor)

	modified:   inc/locfile.h
	modified:   inc/version.h
2020-07-12 16:04:11 -07:00
Nick Briggs
46c3dc1991 Cleanup choice of valloc/malloc based on OS
Although vmalloc() is deprecated in new code, it exists on a number of OSs.

	modified:   src/ldsout.c
2020-07-12 15:59:25 -07:00
Nick Briggs
13625a34e5 Merge branch 'master' of ssh://192.168.42.74/Users/briggs/Projects/maiko 2020-07-10 00:17:19 -07:00
Nick Briggs
3011fbba0b Merge branch 'master' of ssh://192.168.42.74/Users/briggs/Projects/maiko 2020-07-09 23:14:38 -07:00
Nick Briggs
68eb8f9617 Merge branch 'master' of ssh://192.168.42.74/Users/briggs/Projects/maiko 2020-07-09 22:41:20 -07:00
Nick Briggs
ada566091b Remove conflicting definition for time()
modified:   src/unixfork.c
2020-07-09 10:27:24 -07:00
Nick Briggs
b8c041f5ff Solaris (OS5) requires <string.h>
modified:   src/dir.c
2020-07-09 10:25:15 -07:00
Nick Briggs
28f0087dfc Rewrite perrno() so as not to rely on global error message array, rather using sterror()
modified:   src/perrno.c
2020-07-09 10:19:44 -07:00
Nick Briggs
62b8f46405 Add forward declaration for get_packet()
modified:   src/ether.c
2020-07-09 10:16:41 -07:00
Nick Briggs
311a359c3f Add include files necessary for SunOS5 (Solaris 11) compilation.
Remove incorrect definition of malloc()

	modified:   src/dlpi.c
2020-07-09 03:28:50 -07:00
Nick Briggs
7eca23930b Correct FPtoVP table size error in BIGVM case
The table requires 1 cell (32-bit word) per page, for 256 MB in 512 byte pages.

	modified:   src/ldsout.c
2020-07-08 18:43:00 -07:00
Nick Briggs
ae5eea1a29 Reduce excessive sleep after waiting for a process to exit (1s -> 10us) 2020-07-08 18:40:53 -07:00
Nick Briggs
2563b05dc1 Change to default unsigned char for compilation. Possible after previous fixes to GETBYTE et al. 2018-11-15 16:14:24 -08:00
Nick Briggs
ac6bef0fab GETBYTE macro returns value with signedness of char in BYTESWAP configurations but signedness of argument in non-BYTESWAP ones.
Replace use of GETBYTE macro in Get_SBYTE_PCMAC[01] macros as we cannot rely on passing signed argument type to get signed result.

	modified:   inc/inlineC.h
	modified:   inc/lsptypes.h
2018-11-15 15:57:42 -08:00
Nick Briggs
58c81a37b9 Add missing declaration/initialization of flushing flag required by DBPRINT from dbprint.h
modified:   src/unixfork.c
2018-11-15 15:33:43 -08:00
Nick Briggs
4a01c6c74e Qualified void return declarations are prohibited (e.g., inline const void vs. inline void).
Fix various asm() syntax errors with missing line continuations.

	modified:   inc/inlnPS2.h
2018-11-15 15:22:44 -08:00
Nick Briggs
f853f0e508 Fix problem in compare_lisp_chars where it incremented fat character pointer
by the wrong size unit when comparing a fat pname to a fat string.

	modified:   src/mkatom.c
2018-11-14 16:32:23 -08:00
Nick Briggs
5111d42547 Treat GETBYTE() result as unsigned so it is comparable to the result of GETWORD
when comparing fat and thin strings.

	modified:   src/mkatom.c
2018-11-13 22:57:46 -08:00
Nick Briggs
01c9d5f3c5 Update code for UNIX-GETPARAM for "MACH" and "ARCH" to recognize that a MacOS system is i386.
Clean up nested #ifdef/#else/#endif directives that select a single case to use #elif defined(...)

	modified:   src/uutils.c
2018-05-07 10:58:43 -07:00
Nick Briggs
f85e43804a Tidy up the source to remove forward reference, remove dead code, fix formatting.
modified:   inc/XKeymap.h
	modified:   src/initkbd.c
2018-04-29 19:40:52 -07:00
Nick Briggs
f8a81c329d Correct preloading of Unix username into buffer on byte-swapped system.
Correct potential memory smash if username exceeds allocated space.

	modified:   ../src/initsout.c
2018-04-23 16:56:12 -07:00
Nick Briggs
1a8607d412 Correct calculation of the socklen_t length when bind-ing the AF_UNIX socket,
as some systems have extra bytes in the sockaddr_un that weren't accounted
  for in the original calculation.  Follow the POSIX spec instead.
	modified:   src/unixcomm.c
	modified:   src/unixfork.c
2018-04-15 18:37:19 -07:00
Nick Briggs
69796e34d7 More linux related fixups for string.h.
Fix some type warnings.

	modified:   ../src/dsk.c
	modified:   ../src/fvar.c
	modified:   ../src/ldsout.c
	modified:   ../src/main.c
	modified:   ../src/timer.c
2018-03-27 10:39:23 -07:00
Nick Briggs
8e99402729 Switch to clang as default compiler, show options needed for gcc in comment. 2018-03-27 10:38:12 -07:00
Nick Briggs
91745a1ec0 Pacify pedantic compilers that object to // comments in code claiming to be older standard
modified:   src/gcmain3.c
2018-03-23 14:58:24 -07:00
Nick Briggs
367deb7547 Correct off-by-one error copying C string to Lisp string
modified:   src/uutils.c
2018-03-23 13:24:58 -07:00
Nick Briggs
cd940e4013 Remove unused variable tot_pages
modified:   src/vmemsave.c
2018-03-23 13:21:03 -07:00
Nick Briggs
a7360fd23d ensure that object file directories used in the build exist 2018-03-23 13:19:54 -07:00
Nick Briggs
4342f86d50 cleanup should remove both tstsout.o and setsout.o 2018-03-23 13:19:11 -07:00
Nick Briggs
32651f2f10 Provide correct definition for gcreccell() in gc.h to avoid implicit function definition warnings in gcmain3.c 2018-03-23 12:17:37 -07:00
Nick Briggs
04ea2996e1 When ntend is non-zero it is already a native pointer, not a stack offset 2018-03-23 12:12:55 -07:00
Nick Briggs
89db040213 Remove unused variable temp. 2017-11-22 17:09:39 -08:00
Nick Briggs
a0500627a1 Remove extraneous copy into destination sin_addr from a hostent structure when
value may already have been set up, and hostent may be uninitialized.

	modified:   src/inet.c
2017-07-28 17:52:48 -07:00
Nick Briggs
9529248faa Fix warning for "result" may be used undefined.
modified:   src/miscn.c
2017-07-28 17:35:14 -07:00
Nick Briggs
f328efcd55 Remove unused variables and labels.
modified:   src/bbtsub.c
	modified:   src/fvar.c
	modified:   src/loopsops.c
	modified:   src/mkcell.c
	modified:   src/mvs.c
	modified:   src/return.c
2017-07-20 17:14:59 -07:00
Nick Briggs
c6ed74d94b Remove unused variable.
modified:   ../inc/bb.h
2017-07-18 19:02:25 -07:00
Nick Briggs
55ffcb9066 Remove unused variables.
modified:   bbtsub.c
2017-07-18 19:01:27 -07:00
Nick Briggs
ffff6ee267 Remove unused variable declarations.
modified:   array.c
	modified:   array3.c
	modified:   car-cdr.c
	modified:   chardev.c
	modified:   conspage.c
	modified:   ldeboot.c
	modified:   sxhash.c
	modified:   unixfork.c
2017-07-18 19:00:36 -07:00
Nick Briggs
1da1a2cf10 Fix formatting in comment. inc/lspglob.h 2017-07-18 18:29:55 -07:00
Nick Briggs
4e2a0bc6ed Fix format incompatabilities in dbgtool.c. Use %p for pointers. 2017-07-18 14:56:40 -07:00
Nick Briggs
b6540a95ef Remove declarations for unused variables in xlspwin.c 2017-07-16 11:15:23 -07:00
Nick Briggs
8fa956e3fb Add commentary on the NIT packet filter. 2017-07-05 16:44:48 -07:00
Nick Briggs
e22e45b8f6 include unistd.h for getpid/read/close in inet.c 2017-07-04 15:12:43 -07:00
Nick Briggs
415a2192de Add missing type specifiers which defaulted to 'int'.
modified:   ../src/bbtsub.c
	modified:   ../src/ldeboot.c
	modified:   ../src/lineblt8.c
	modified:   ../src/loopsops.c
2017-07-04 14:12:01 -07:00
Nick Briggs
c06ba98144 Create bbtsub.h to declare functions defined in bbtsub.c
Update files that depend on bbtsub functions to include bbtsub.h
Declare as static all functions in bbtsub.c that are not needed externally.
Add dependencies to makefile-tail.

	new file:   ../inc/bbtsub.h
	modified:   ../src/bbtsub.c
	modified:   ../src/colorbltfns.c
	modified:   ../src/draw.c
	modified:   ../src/misc7.c
	modified:   ../src/rawcolor.c
	modified:   ../src/subr.c
2017-07-03 16:29:06 -07:00