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

171 Commits

Author SHA1 Message Date
Nick Briggs
cfc0046675 Rename gc.h to gcdata.h to avoid conflict with Boehm GC system include file, and adjust sources.
Remove duplicate external function definitions from gcdata.h

	renamed:    inc/gc.h -> inc/gcdata.h
	modified:   src/array2.c
	modified:   src/array4.c
	modified:   src/array6.c
	modified:   src/asmbbt.c
	modified:   src/asmbitblt.c
	modified:   src/bbtsub.c
	modified:   src/car-cdr.c
	modified:   src/conspage.c
	modified:   src/fvar.c
	modified:   src/gc.c
	modified:   src/gcarray.c
	modified:   src/gccode.c
	modified:   src/gcfinal.c
	modified:   src/gchtfind.c
	modified:   src/gcmain3.c
	modified:   src/gcoflow.c
	modified:   src/gcr.c
	modified:   src/gcrcell.c
	modified:   src/gcscan.c
	modified:   src/gvar2.c
	modified:   src/initsout.c
	modified:   src/loopsops.c
	modified:   src/mkcell.c
	modified:   src/rplcons.c
	modified:   src/storage.c
	modified:   src/xc.c
	modified:   src/z2.c
2020-09-05 16:39:21 -07:00
Nick Briggs
966adb6004 Replace -1 initializers in unsigned char keyboard map with 255 and correct code that checks > -1 (Ref issue #27)
modified:   src/initkbd.c
	modified:   src/keyevent.c
2020-09-04 23:33:41 -07:00
Nick Briggs
0ad69fc6fe Create a new inc/xxxdefs.h for each src/xxx.c containing appropriate function prototypes.
This also involves removing unnecessary forward declarations, inserting
       includes for all cross-file function references, making some definitions
       static if they are not otherwise used, correcting errors that were exposed
       by having correct prototypes.

	new file:   inc/allocmdsdefs.h
	new file:   inc/arith2defs.h
	new file:   inc/arith3defs.h
	new file:   inc/arith4defs.h
	new file:   inc/array2defs.h
	new file:   inc/array3defs.h
	new file:   inc/array4defs.h
	new file:   inc/array5defs.h
	new file:   inc/array6defs.h
	new file:   inc/arraydefs.h
	new file:   inc/bbtsubdefs.h
	new file:   inc/bindefs.h
	new file:   inc/bindsdefs.h
	new file:   inc/bitbltdefs.h
	new file:   inc/bltdefs.h
	new file:   inc/byteswapdefs.h
	new file:   inc/car-cdrdefs.h
	new file:   inc/chardevdefs.h
	new file:   inc/commondefs.h
	new file:   inc/conspagedefs.h
	new file:   inc/dbgtooldefs.h
	new file:   inc/dirdefs.h
	new file:   inc/drawdefs.h
	new file:   inc/dskdefs.h
	new file:   inc/dspifdefs.h
	new file:   inc/dspsubrsdefs.h
	new file:   inc/eqfdefs.h
	new file:   inc/etherdefs.h
	new file:   inc/findkeydefs.h
	new file:   inc/fpdefs.h
	new file:   inc/fvardefs.h
	new file:   inc/gc2defs.h
	new file:   inc/gcarraydefs.h
	new file:   inc/gccodedefs.h
	new file:   inc/gcdefs.h
	new file:   inc/gcfinaldefs.h
	new file:   inc/gchtfinddefs.h
	new file:   inc/gcmain3defs.h
	new file:   inc/gcoflowdefs.h
	new file:   inc/gcrcelldefs.h
	new file:   inc/gcrdefs.h
	new file:   inc/gcscandefs.h
	new file:   inc/gvar2defs.h
	new file:   inc/hacksdefs.h
	new file:   inc/hardrtndefs.h
	new file:   inc/inetdefs.h
	new file:   inc/initdspdefs.h
	new file:   inc/initkbddefs.h
	new file:   inc/initsoutdefs.h
	modified:   inc/inlineC.h
	new file:   inc/intcalldefs.h
	new file:   inc/kbdsubrsdefs.h
	new file:   inc/keyeventdefs.h
	new file:   inc/keylibdefs.h
	new file:   inc/kprintdefs.h
	new file:   inc/ldsoutdefs.h
	new file:   inc/lineblt8defs.h
	new file:   inc/lisp2cdefs.h
	modified:   inc/lispemul.h
	new file:   inc/llcolordefs.h
	new file:   inc/llstkdefs.h
	modified:   inc/lnk-inlineC.h
	new file:   inc/loopsopsdefs.h
	new file:   inc/lowlev1defs.h
	new file:   inc/lowlev2defs.h
	new file:   inc/lsthandldefs.h
	new file:   inc/maindefs.h
	new file:   inc/misc7defs.h
	new file:   inc/miscndefs.h
	new file:   inc/mkatomdefs.h
	new file:   inc/mkcelldefs.h
	new file:   inc/mvsdefs.h
	new file:   inc/osmsgdefs.h
	new file:   inc/perrnodefs.h
	new file:   inc/returndefs.h
	new file:   inc/rpcdefs.h
	new file:   inc/rplconsdefs.h
	new file:   inc/shiftdefs.h
	new file:   inc/storagedefs.h
	new file:   inc/subr0374defs.h
	new file:   inc/subrdefs.h
	new file:   inc/sxhashdefs.h
	new file:   inc/testtooldefs.h
	new file:   inc/timerdefs.h
	new file:   inc/typeofdefs.h
	new file:   inc/ubf1defs.h
	new file:   inc/ubf2defs.h
	new file:   inc/ubf3defs.h
	new file:   inc/ufsdefs.h
	new file:   inc/unixcommdefs.h
	new file:   inc/unwinddefs.h
	new file:   inc/uraiddefs.h
	new file:   inc/usrsubrdefs.h
	new file:   inc/uutilsdefs.h
	new file:   inc/vars3defs.h
	new file:   inc/vmemsavedefs.h
	new file:   inc/xbbtdefs.h
	new file:   inc/xcdefs.h
	new file:   inc/xcursordefs.h
	new file:   inc/xinitdefs.h
	new file:   inc/xlspwindefs.h
	new file:   inc/xmkicondefs.h
	new file:   inc/xrdoptdefs.h
	new file:   inc/xscrolldefs.h
	new file:   inc/xwinmandefs.h
	new file:   inc/z2defs.h
	modified:   src/allocmds.c
	modified:   src/arith2.c
	modified:   src/arith3.c
	modified:   src/arith4.c
	modified:   src/array.c
	modified:   src/array2.c
	modified:   src/array3.c
	modified:   src/array4.c
	modified:   src/array5.c
	modified:   src/array6.c
	modified:   src/bbtsub.c
	modified:   src/bin.c
	modified:   src/binds.c
	modified:   src/bitblt.c
	modified:   src/blt.c
	modified:   src/byteswap.c
	modified:   src/car-cdr.c
	modified:   src/chardev.c
	modified:   src/common.c
	modified:   src/conspage.c
	modified:   src/dbgtool.c
	modified:   src/dir.c
	modified:   src/draw.c
	modified:   src/dsk.c
	modified:   src/dspif.c
	modified:   src/dspsubrs.c
	modified:   src/eqf.c
	modified:   src/ether.c
	modified:   src/findkey.c
	modified:   src/foreign.c
	modified:   src/fp.c
	modified:   src/fvar.c
	modified:   src/gc.c
	modified:   src/gc2.c
	modified:   src/gcarray.c
	modified:   src/gccode.c
	modified:   src/gcfinal.c
	modified:   src/gchtfind.c
	modified:   src/gcmain3.c
	modified:   src/gcoflow.c
	modified:   src/gcr.c
	modified:   src/gcrcell.c
	modified:   src/gcscan.c
	modified:   src/gvar2.c
	modified:   src/hacks.c
	modified:   src/hardrtn.c
	modified:   src/inet.c
	modified:   src/initdsp.c
	modified:   src/initkbd.c
	modified:   src/initsout.c
	modified:   src/intcall.c
	modified:   src/kbdsubrs.c
	modified:   src/keyevent.c
	modified:   src/keylib.c
	modified:   src/kprint.c
	modified:   src/ldsout.c
	modified:   src/lineblt8.c
	modified:   src/lisp2c.c
	modified:   src/llcolor.c
	modified:   src/llstk.c
	modified:   src/loopsops.c
	modified:   src/lowlev1.c
	modified:   src/lowlev2.c
	modified:   src/lsthandl.c
	modified:   src/main.c
	modified:   src/misc7.c
	modified:   src/miscn.c
	modified:   src/mkatom.c
	modified:   src/mkcell.c
	modified:   src/mvs.c
	modified:   src/osmsg.c
	modified:   src/perrno.c
	modified:   src/return.c
	modified:   src/rpc.c
	modified:   src/rplcons.c
	modified:   src/setsout.c
	modified:   src/shift.c
	modified:   src/storage.c
	modified:   src/subr.c
	modified:   src/subr0374.c
	modified:   src/sxhash.c
	modified:   src/testtool.c
	modified:   src/timer.c
	modified:   src/truecolor.c
	modified:   src/tstsout.c
	modified:   src/typeof.c
	modified:   src/ubf1.c
	modified:   src/ubf2.c
	modified:   src/ubf3.c
	modified:   src/ufn.c
	modified:   src/ufs.c
	modified:   src/unixcomm.c
	modified:   src/unwind.c
	modified:   src/uraid.c
	modified:   src/usrsubr.c
	modified:   src/uutils.c
	modified:   src/vars3.c
	modified:   src/vmemsave.c
	modified:   src/xbbt.c
	modified:   src/xc.c
	modified:   src/xcursor.c
	modified:   src/xinit.c
	modified:   src/xlspwin.c
	modified:   src/xmkicon.c
	modified:   src/xrdopt.c
	modified:   src/xscroll.c
	modified:   src/xwinman.c
	modified:   src/z2.c
2020-09-04 18:21:44 -07:00
Nick Briggs
9c658a4b2c Don't cast NULL pointer argument to putmsg() to (char *)
modified:   src/dlpi.c
2020-08-30 13:50:34 -07:00
Nick Briggs
3a7e5dae4f Ref issue #13, fix byte-order problem in FBITMAPBIT opcode affecting EDITBM
modified:   src/misc7.c
2020-08-18 22:21:21 -07:00
Nick Briggs
7b149c6316 Update notes on signal handlers. Commentary only, no functional change.
modified:   src/timer.c
2020-08-17 13:40:18 -07:00
Nick Briggs
f4024ab126 Implement foreground/background reversal for X displays on the (VIDEOCOLOR T) function, as it works on D-machines.
Ref: https://github.com/Interlisp/maiko/issues/12

	modified:   src/xlspwin.c
2020-08-13 18:14:34 -07:00
Nick Briggs
fe32f6bf09 Remove trailing semicolon from LispNumToCInt macro definition so it can be used in value context.
Add missing htonl/ntohl and htons/ntohs around IP address and port manipulation.

	modified:   inc/locfile.h
	modified:   src/inet.c
2020-08-12 13:40:15 -07:00
Nick Briggs
6528ac38e3 Remove proprietary license from all files.
The code is being re-licensed under the MIT license.

	modified:   bin/fixid
	modified:   bin/launch.asm
	modified:   bin/makefile-hpux.hp9000-x
	modified:   bin/makefile-init.sgi
	modified:   bin/makefile-init.sparc
	modified:   bin/makefile-init.sparc-multi
	modified:   bin/makefile-irix.sgi-x
	modified:   bin/makefile-sunos4.sparc
	modified:   bin/makefile-sunos4.sparc%
	modified:   bin/makefile-sunos4.sparc-multi
	modified:   bin/makefile-sunos5.386-x
	modified:   bin/makefile-sunos5.i386-x
	modified:   bin/makefile-sunos5.sparc-x
	modified:   bin/makefile-tail
	modified:   bin/makeisc
	modified:   bin/makeright
	modified:   inc/Check.h
	modified:   inc/MyWindow.h
	modified:   inc/Stipple.h
	modified:   inc/XCursors.h
	modified:   inc/XKeymap.h
	modified:   inc/XVersion.h
	modified:   inc/Xdeflt.h
	modified:   inc/Xicon.h
	modified:   inc/address.h
	modified:   inc/arith.h
	modified:   inc/arith2.h
	modified:   inc/array.h
	modified:   inc/bb.h
	modified:   inc/cell.h
	modified:   inc/cell.h%
	modified:   inc/copyright
	modified:   inc/dbprint.h
	modified:   inc/debug.h
	modified:   inc/devif.h
	modified:   inc/display.h
	modified:   inc/dspdata.h
	modified:   inc/ether.h
	modified:   inc/fast_dsp.h
	modified:   inc/fp.h
	modified:   inc/gc.h
	modified:   inc/gc.h.save
	modified:   inc/gcscan.h
	modified:   inc/hdw_conf.h
	modified:   inc/ifpage.h
	modified:   inc/inlineC.h
	modified:   inc/inlnMIPS.h
	modified:   inc/inlnPS2.h
	modified:   inc/inlndos.h
	modified:   inc/iopage.h
	modified:   inc/kbdif.h
	modified:   inc/keyboard.h
	modified:   inc/keyboard.h%
	modified:   inc/keysym.h
	modified:   inc/ldeXdefs.h
	modified:   inc/lispemul.h
	modified:   inc/lispemul.h.save
	modified:   inc/lispmap.h
	modified:   inc/lldsp.h
	modified:   inc/lnk-Xdeflt.h
	modified:   inc/lnk-debug.h
	modified:   inc/lnk-fast_dsp.h
	modified:   inc/lnk-inlineC.h
	modified:   inc/lnk-lispmap.h
	modified:   inc/lnk-tosfns.h
	modified:   inc/lnk-tosret.h
	modified:   inc/locfile.h
	modified:   inc/lpdefs.h
	modified:   inc/lpglobl.h
	modified:   inc/lspglob.h
	modified:   inc/lsptypes.h
	modified:   inc/medleyfp.h
	modified:   inc/mnxdefs.h
	modified:   inc/my.h
	modified:   inc/native.h
	modified:   inc/ocr.h
	modified:   inc/osmsg.h
	modified:   inc/picture.h
	modified:   inc/pilotbbt.h
	modified:   inc/print.h
	modified:   inc/profile.h
	modified:   inc/rawrs232c.h
	modified:   inc/return.h
	modified:   inc/rs232c.h
	modified:   inc/stack.h
	modified:   inc/stream.h
	modified:   inc/stream.h%
	modified:   inc/stream.h2
	modified:   inc/sysatms.h
	modified:   inc/timeout.h
	modified:   inc/tos1defs.h
	modified:   inc/tosfns.h
	modified:   inc/tosret.h
	modified:   inc/tty.h
	modified:   inc/version.h
	modified:   inc/vmemsave.h
	modified:   inc/xbitmaps.h
	modified:   inc/xdefs.h
	modified:   src/Cldeetr.c
	modified:   src/allocmds.c
	modified:   src/arith2.c
	modified:   src/arith3.c
	modified:   src/arith4.c
	modified:   src/array.c
	modified:   src/array2.c
	modified:   src/array3.c
	modified:   src/array4.c
	modified:   src/array5.c
	modified:   src/array6.c
	modified:   src/asmbbt.c
	modified:   src/asmbitblt.c
	modified:   src/atom.c
	modified:   src/bbtSPARC.s
	modified:   src/bbtsub.c
	modified:   src/bin.c
	modified:   src/binds.c
	modified:   src/bitblt.c
	modified:   src/blt.c
	modified:   src/byteswap.c
	modified:   src/call-c.c
	modified:   src/car-cdr.c
	modified:   src/cdaudio.c
	modified:   src/cdrom.c
	modified:   src/chardev.c
	modified:   src/chatter.c
	modified:   src/codeconv.c
	modified:   src/codetbl.c
	modified:   src/colorbltfns.c
	modified:   src/common.c
	modified:   src/conspage.c
	modified:   src/cr
	modified:   src/dbgtool.c
	modified:   src/dir.c
	modified:   src/doscomm.c
	modified:   src/doskbd.c
	modified:   src/dosmouse.c
	modified:   src/draw.c
	modified:   src/dsk.c
	modified:   src/dspif.c
	modified:   src/dspsubrs.c
	modified:   src/ejlisp.c
	modified:   src/eqf.c
	modified:   src/ether.c
	modified:   src/findkey.c
	modified:   src/foreign.c
	modified:   src/fp.c
	modified:   src/fvar.c
	modified:   src/gc.c
	modified:   src/gc2.c
	modified:   src/gcarray.c
	modified:   src/gccode.c
	modified:   src/gcfinal.c
	modified:   src/gchtfind.c
	modified:   src/gcmain3.c
	modified:   src/gcoflow.c
	modified:   src/gcr.c
	modified:   src/gcrcell.c
	modified:   src/gcscan.c
	modified:   src/gvar2.c
	modified:   src/hacks.c
	modified:   src/hardrtn.c
	modified:   src/imagefile.c
	modified:   src/imagefile2.c
	modified:   src/inet.c
	modified:   src/initdsp.c
	modified:   src/initkbd.c
	modified:   src/initsout.c
	modified:   src/intcall.c
	modified:   src/kbdif.c
	modified:   src/kbdsubrs.c
	modified:   src/keyevent.c
	modified:   src/keylib.c
	modified:   src/keymaker.c
	modified:   src/keytst.c
	modified:   src/keytstno.c
	modified:   src/kprint.c
	modified:   src/launch.asm
	modified:   src/ldeboot.c
	modified:   src/ldeether.c
	modified:   src/ldsout.c
	modified:   src/lineblt8.c
	modified:   src/lisp2c.c
	modified:   src/llcolor.c
	modified:   src/llstk.c
	modified:   src/loader.c
	modified:   src/loopsops.c
	modified:   src/lowlev1.c
	modified:   src/lowlev2.c
	modified:   src/lpdual.c
	modified:   src/lpkit.c
	modified:   src/lplexyy.c
	modified:   src/lpmain.c
	modified:   src/lpread.c
	modified:   src/lpsolve.c
	modified:   src/lptran.c
	modified:   src/lpwrite.c
	modified:   src/lpytab.c
	modified:   src/lsthandl.c
	modified:   src/main.c
	modified:   src/misc7.c
	modified:   src/miscn.c
	modified:   src/mkatom.c
	modified:   src/mkcell.c
	modified:   src/mkkey.c
	modified:   src/mkvdate.c
	modified:   src/mnwevent.c
	modified:   src/mnxmeth.c
	modified:   src/mouseif.c
	modified:   src/mvs.c
	modified:   src/ocr.c
	modified:   src/ocrproc.c
	modified:   src/oether.c
	modified:   src/oldeether.c
	modified:   src/optck.c
	modified:   src/osmsg.c
	modified:   src/perrno.c
	modified:   src/picture.c
	modified:   src/rawcolor.c
	modified:   src/rawrs232c.c
	modified:   src/return.c
	modified:   src/rpc.c
	modified:   src/rplcons.c
	modified:   src/rs232c.c
	modified:   src/setsout.c
	modified:   src/shift.c
	modified:   src/socdvr.c
	modified:   src/storage.c
	modified:   src/subr.c
	modified:   src/subr0374.c
	modified:   src/sxhash.c
	modified:   src/testdsp.c
	modified:   src/testtool.c
	modified:   src/timeoday.c
	modified:   src/timeofday.c
	modified:   src/timer.c
	modified:   src/truecolor.c
	modified:   src/tstsout.c
	modified:   src/tty.c
	modified:   src/typeof.c
	modified:   src/ubf1.c
	modified:   src/ubf2.c
	modified:   src/ubf3.c
	modified:   src/ufn.c
	modified:   src/ufs.c
	modified:   src/unixcomm.c
	modified:   src/unixfork.c
	modified:   src/unwind.c
	modified:   src/uraid.c
	modified:   src/usrsubr.c
	modified:   src/uutils.c
	modified:   src/vars3.c
	modified:   src/vesafns.asm
	modified:   src/vesainit.c
	modified:   src/vgainit.c
	modified:   src/vmemsave.c
	modified:   src/xbbt.c
	modified:   src/xc.c
	modified:   src/xc.c.orig
	modified:   src/xcursor.c
	modified:   src/xinit.c
	modified:   src/xlspwin.c
	modified:   src/xmkicon.c
	modified:   src/xrdopt.c
	modified:   src/xscroll.c
	modified:   src/xwinman.c
	modified:   src/z2.c
2020-08-11 18:39:45 -07:00
Nick Briggs
055a9522f8 Use "t" modifier in printf formats when printing pointer differences.
Cast stack addresses to appropriate type when calling CHECK_BF and CHECK_FX.

	modified:   src/gccode.c
	modified:   src/llstk.c
2020-08-11 17:31:34 -07:00
Nick Briggs
34cde1a373 Cast to (FX *) when pointer into stack is being passed into check_FX and is expected to be a frame extension.
stdio.h is required if stack debugging is enabled, include it always.

	modified:   src/hardrtn.c
2020-08-11 16:02:15 -07:00
Nick Briggs
5d7e281aa6 Remove unused and incorrectly declared CIntToSmallp() function.
Fix warning for "control may reach end of non-void function".

	modified:   src/lisp2c.c
2020-08-11 15:29:57 -07:00
Nick Briggs
aac75b633c Change error message printed when ldeether is unable to exec() lde to provide more information.
modified:   src/ldeether.c
2020-08-11 14:44:29 -07:00
Nick Briggs
30bfeb3a43 WARN() macro is used in functions with and without return values so must not return in the macro.
Fix llstk.c uses of WARN() to return when necessary.

	modified:   inc/lispemul.h
	modified:   src/llstk.c
2020-08-11 14:09:19 -07:00
Nick Briggs
b2a8d11d9c Correct spelling of basicframe, which occurs only in gcmain3.c, no functional change.
modified:   src/gcmain3.c
2020-08-11 12:10:52 -07:00
Nick Briggs
395966b497 Merge branch 'master' of gitlab.com:nbriggs/maiko 2020-08-04 19:28:41 -04:00
Nick Briggs
a4fdd8b27d Print a better message than "File not found" when the correct display program cannot be determined.
modified:   src/ldeboot.c
2020-08-04 19:27:08 -04:00
Nick Briggs
9821329ec0 Move SYSVONLY define from version.h to the individual makefiles for Linux
Add makefile for Linux on x86_64 platforms
Remove include <stropts.h> for Linux as modern systems have dropped this
Adjust code to account for fcntl() vs ioctl() for generating signals on X I/O
Adjust includes for time related include files for modern Linux systems

	modified:   bin/makefile-linux.386-x
	new file:   bin/makefile-linux.x86_64-x
	modified:   inc/version.h
	modified:   src/mkvdate.c
	modified:   src/timer.c
2020-08-03 20:19:02 -07:00
Nick Briggs
6a47a7733c Provide prototypes for gcscan1/gcscan2 implemented in gcscan.c
modified:   src/gcmain3.c
2020-07-26 20:42:34 -04:00
Nick Briggs
eaca0e1b72 If "my.h" is included "arith.h" is also required for N_ARITH_SWITCH macro definition.
modified:   src/draw.c
	modified:   src/eqf.c
	modified:   src/fp.c
	modified:   src/z2.c
2020-07-26 20:40:54 -04:00
Nick Briggs
832f76f56b Take NOETHER out of SunOS5 (Solaris) configuration so the network is accessible.
Fix ldeether.c main program so that if NOETHER is present without removing the dlpi.o dependency it still links.

	modified:   inc/version.h
	modified:   src/ldeether.c
2020-07-26 20:35:18 -04:00
Nick Briggs
e03a513727 Add more debugging output when opcode tracing is enabled.
modified:   src/xc.c
2020-07-16 16:40:37 -07:00
Nick Briggs
bfd17d1ef5 More systems that need to include unistd.h
modified:   src/unixcomm.c
2020-07-15 21:48:06 -07:00
Nick Briggs
aa4496943f Include header for time() for all appropriate systems
modified:   src/unixfork.c
2020-07-15 18:59:24 -07:00
Nick Briggs
3bf5c3b720 vfork() is deprecated, use fork() instead.
modified:   src/uraid.c
2020-07-15 15:30:31 -07:00
Nick Briggs
9fc2752790 Changes necessary to compile for OS5 (Solaris 10/11) when -DSYSVONLY is removed from the compilation flags.
modified:   src/dsk.c
	modified:   src/ldeether.c
	modified:   src/main.c
	modified:   src/timer.c
	modified:   src/ufs.c
	modified:   src/unixfork.c
	modified:   src/vmemsave.c
	modified:   src/xrdopt.c
2020-07-14 20:05:32 -07:00
Nick Briggs
55e39453f5 Remove dependency on "externs.h"
Add necessary forward declaration for savestr()

	modified:   src/dlpi.c
2020-07-14 14:23:08 -07:00
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
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
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
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
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
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
04ea2996e1 When ntend is non-zero it is already a native pointer, not a stack offset 2018-03-23 12:12:55 -07:00