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

283 Commits

Author SHA1 Message Date
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
Nick Briggs
bc702f74ad If "inline" is used it should be the first attribute in the procedure declaration.
modified:   ../inc/my.h
2020-11-27 14:52:03 -08:00
Nick Briggs
8dda1fe2a8 Update build files for M1 Mac systems (refs Interlisp/medley#69)
The config.guess script returns "aarch64-apple-darwin20.1.0" for an M1 Big Sur mac mini.

	modified:   bin/machinetype
	new file:   bin/makefile-darwin.aarch64-x
2020-11-24 17:43:04 -08:00
Nick Briggs
d8c0ab9bdf Fix detection of timezone offset for FreeBSD. (Refs Interlisp/medley/#65)
modified:   src/timer.c
2020-11-23 20:49:43 -08:00
Nick Briggs
d9d917ab82 Add a verbose option to tstsout to provide more info from the interface page
Usage: tstsout [-v] sysout-filename

    prints the minbversion, process_size, storagefullstate, and nactivepages

	modified:   src/tstsout.c
2020-11-21 14:16:51 -08:00
Nick Briggs
365d07f817 Some floating point related functions are defined in <math.h>, include it.
modified:   src/fp.c
2020-11-21 11:50:33 -08:00
Nick Briggs
2dd366bcb9 Fix timezone detection (refs Interlisp/medley#65)
Use tzset() and the timezone variable to more robustly detect the timezone.
    This will also allow a user to set the TZ environment variable to override system timezone settings.

	modified:   src/timer.c
2020-11-17 18:01:01 -08:00
Nick Briggs
b9fa900512 Fix memory leak in make_X_keymap(). Ref #64
Add extra debugging printfs for X keyboard mapping under ifdef DEBUG.

	modified:   src/initkbd.c
2020-11-11 18:33:43 -08:00
Abe Jellinek
3db585e2b2
Docker compatibility: makefile and headers (#17)
* Docker compatibility: makefile and headers
- _GNU_SOURCE required for F_SETSIG
* Remove duplicate makeright.sh script
* Update some includes that don't exist on modern Linux (termio.h); Clang in Docker
  has trouble resolving them automatically
2020-10-26 17:54:35 -07:00
Nick Briggs
a94e46bf8e Update wording and formatting of URaid command documentation
modified:   src/uraid.c
2020-10-25 18:39:38 -07:00
Nick Briggs
2bf4cea359 Remove unnecessary declaration for nametable that was shadowed by block local declaration, causing compilation warning.
modified:   src/gcmain3.c
2020-10-25 18:35:16 -07:00
Nick Briggs
135d7f65d3 Switch compilation flags for Solaris2 on x86_64 to compile in 64-bit mode rather than 32-bit mode.
modified:   bin/makefile-sunos5.x86_64-x
2020-10-18 16:33:21 -07:00
Nick Briggs
27d5e44b81 Add makefile fragment for sunos5-x86_64 compilation.
new file:   bin/makefile-sunos5.x86_64-x
2020-10-18 16:23:52 -07:00
Nick Briggs
1200763831 Update osversion script to recognize Solaris 2.x running on x86_64 hardware.
modified:   bin/osversion
2020-10-18 16:04:16 -07:00
Nick Briggs
56615128e0 Merge branch 'master' of https://github.com/Interlisp/maiko 2020-10-18 14:33:41 -07:00
Nick Briggs
17fbbe96d7 Hook up the X11 Button4 and Button5 events (from mouse scrollwheel or trackpad vertical scroll) to
the Dolphin/Dorado key set PAD1 (LEFTKEY) and PAD2 (LEFTMIDDLEKEY) keys.
2020-10-18 14:27:58 -07:00
Larry Masinter
0342f93b68 suggested replacement was better. 2020-10-10 06:31:22 -07:00
Larry Masinter
192c351007 fix #43
use of support phone numberes
2020-10-10 06:16:11 -07:00
Nick Briggs
14d4d3a5a2 Fix spelling error in variable name. No functional change.
modified:   src/unwind.c
2020-10-03 14:47:54 -07:00
Nick Briggs
d8fda3b846 Update error messages when fcntl/ioctl on X fd for SETSIG fails to make it a little clearer.
modified:   src/timer.c
2020-09-27 14:27:29 -07:00
Nick Briggs
21baf85c22 Fix prototype syntax for functions with no parameters in include files
Add some overlooked function prototypes  to xxxdefs.h include files
Add missing #include of relevant xxxdefs.h in a couple of source files
Add prototypes in standalone programs to silence (some) -Wmissing-prototype warnings
Remove duplicate prototype from hardrtn.c

	modified:   inc/commondefs.h
	modified:   inc/dirdefs.h
	modified:   inc/dspifdefs.h
	modified:   inc/dspsubrsdefs.h
	modified:   inc/etherdefs.h
	modified:   inc/gcmain3defs.h
	modified:   inc/initdspdefs.h
	modified:   inc/initkbddefs.h
	modified:   inc/keyeventdefs.h
	modified:   inc/maindefs.h
	modified:   inc/osmsgdefs.h
	modified:   inc/testtooldefs.h
	modified:   inc/timerdefs.h
	modified:   inc/unixfork.h
	modified:   inc/uraiddefs.h
	modified:   inc/vmemsavedefs.h
	modified:   inc/xcursordefs.h
	modified:   inc/xlspwindefs.h
	modified:   src/arith2.c
	modified:   src/ether.c
	modified:   src/hardrtn.c
	modified:   src/keytstno.c
	modified:   src/setsout.c
	modified:   src/tstsout.c
2020-09-27 11:58:17 -07:00
Nick Briggs
4bf195ee71 Some parts of the system still depend on the Lisp memory being initialized to zero. Ensure that that happens.
modified:   src/ldsout.c
2020-09-19 22:05:06 -07:00
Nick Briggs
cb1b3c65e8 Helpers for BITBLT and BLTSHADE need to return ATOM_T rather than T. Ref issue #35
modified:   src/bbtsub.c
2020-09-19 19:21:14 -07:00
Nick Briggs
a5e70206fc Fix free list construction in new cons page to explicitly initialize ALL cons cells on the page (Ref issue #34)
Update comments, correct spelling errors, simplify style, note some areas for future work.

	modified:   src/conspage.c
2020-09-18 15:07:10 -07:00
Nick Briggs
b1790bb7fe Remove extraneous external/forward declarations that are duplicates of those in "xxxdefs.h" files.
modified:   src/allocmds.c
	modified:   src/array5.c
	modified:   src/car-cdr.c
	modified:   src/dbgtool.c
	modified:   src/ether.c
	modified:   src/gc2.c
	modified:   src/gcfinal.c
	modified:   src/gcmain3.c
	modified:   src/gcrcell.c
	modified:   src/initkbd.c
	modified:   src/initsout.c
	modified:   src/keyevent.c
	modified:   src/keylib.c
	modified:   src/keymaker.c
	modified:   src/keytst.c
	modified:   src/loopsops.c
	modified:   src/lsthandl.c
	modified:   src/main.c
	modified:   src/mkatom.c
	modified:   src/mkcell.c
	modified:   src/mvs.c
	modified:   src/storage.c
	modified:   src/testtool.c
	modified:   src/unixcomm.c
	modified:   src/vars3.c
	modified:   src/xc.c
	modified:   src/z2.c
2020-09-17 23:07:56 -07:00
Nick Briggs
33ad64f45b Reorganize cdr implementation to move error test to front, early check for (cdr nil), reduce number of else clauses, reduce indentation. 2020-09-17 18:58:25 -07:00
Nick Briggs
2b02c15982 Note places where undefined behavior is detected by the UB sanitizer
Comments only, no functional changes.

	modified:   src/arith2.c
	modified:   src/arith3.c
	modified:   src/arith4.c
	modified:   src/xc.c
2020-09-17 18:24:54 -07:00
Nick Briggs
11690d0f9c clean up table format, add header 2020-09-16 15:16:52 -07:00
Nick Briggs
4f3e4e48c6 Merge branch 'master' of https://github.com/Interlisp/maiko 2020-09-16 15:13:39 -07:00
Nick Briggs
ce28b0da56 Add documentation of NEWCDRCODING cdr codes 2020-09-16 15:12:58 -07:00
Larry Masinter
a534592702
Update README.md 2020-09-11 13:41:05 -07:00
Nick Briggs
b68ecc73b9 Fix possible reference to undefined variable.
modified:   src/unixfork.c
2020-09-06 12:28:27 -07:00
Nick Briggs
52c04137b0 Remove unnecessary struct definition for SX hash arguments.
modified:   inc/sxhashdefs.h
	modified:   src/miscn.c
	modified:   src/sxhash.c
2020-09-06 12:22:50 -07:00
Nick Briggs
8612d84761 Add missing function prototype to gchtfinddefs.h
modified:   inc/gchtfinddefs.h
2020-09-05 17:04:28 -07:00
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
e51a2e2b16 Remove temporary file that should not have been placed under version control.
deleted:    gc.h.save
2020-09-05 16:17:35 -07:00
Nick Briggs
f110951172 Remove obsolete and unused gcscan.h
Predates BIGVM changes and has been incorporated into gcscan.c
       with backward compatability.

	deleted:    gcscan.h
2020-09-05 16:15:22 -07:00
Nick Briggs
5c916cffb5 Remove obsoleted include files (replaced by xxxdefs.h files) and adjust dependencies in makefiles
modified:   bin/makefile-darwin.386-x
	modified:   bin/makefile-darwin.x86_64-x
	modified:   bin/makefile-init.386
	modified:   bin/makefile-sunos5.386-x
	modified:   bin/makefile-tail
	deleted:    inc/car-cdr.h
	deleted:    inc/chardev.h
	deleted:    inc/conspage.h
	deleted:    inc/dir.h
	deleted:    inc/dsk.h
	deleted:    inc/dspsubrs.h
	deleted:    inc/llstk.h
	deleted:    inc/storage.h
	deleted:    inc/ufs.h
	deleted:    inc/uraid.h
2020-09-05 12:59:08 -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
5fb5d93893 Add multiple include guard to cell.h 2020-09-04 16:27:23 -07:00
Nick Briggs
7bf5e18fbd Add multiple include guard to stack.h 2020-09-04 16:23:40 -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
623594fb89 Add LDEARCH environment variable to override config.guess host-triple in bin/machinetype (debug aid)
modified:   bin/machinetype
2020-08-27 21:40:42 -07:00
Nick Briggs
ee00d0e567 Best to have matching versions of config.sub and config.guess, so update both to current.
modified:   bin/config.guess
	modified:   bin/config.sub
2020-08-21 13:07:00 -07:00
Nick Briggs
cd4c59dbb3 Be clear that the code depends on the default char being unsigned.
Be clear that the code is not clean for pointer aliasing.

	modified:   bin/makefile-darwin.386-x
	modified:   bin/makefile-darwin.x86_64-x
	modified:   bin/makefile-linux.386-x
	modified:   bin/makefile-linux.armv7l-x
	modified:   bin/makefile-linux.x86_64-x
	modified:   bin/makefile-sunos5.386-x
2020-08-21 12:18:03 -07:00
Nick Briggs
418e1b1232 Have git ignore more build directories with less specific patterns
modified:   .gitignore
2020-08-21 12:04:54 -07:00