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
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
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
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
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
Nick Briggs
b6bd2ed29f
Create storage.h to declare functions defined in storage.c
...
Update files that depend on storage functions to include storage.h
Declare as static all functions in storage.c that are not needed externally.
Add dependencies to makefile-tail.
modified: makefile-tail
new file: ../inc/storage.h
modified: ../src/allocmds.c
modified: ../src/gchtfind.c
modified: ../src/llstk.c
modified: ../src/main.c
modified: ../src/storage.c
modified: ../src/subr.c
2017-07-02 21:21:50 -07:00
Nick Briggs
45a547e088
Add include for stdlib.h, reorder functions to avoid implicit function declaration error for imod64bit()
2017-06-30 20:41:59 -07:00
Nick Briggs
d0fac53d10
Fixups for functions defined by dspsubrs.c to dspsubrs.h. Update subr.c and gcr.c
2017-06-30 20:31:53 -07:00
Nick Briggs
3517321b20
Fixups for functions defined by chardev.c in chardev.h. Update subr.c
2017-06-30 20:23:46 -07:00
Nick Briggs
5d8c90cf18
Fix up for inc/ufs.h.
...
Add return.c external functions to inc/return.h (previously only macros) and update
makefile-tail and relevant files.
modified: makefile-tail
modified: ../inc/return.h
new file: ../inc/ufs.h
modified: ../src/bbtsub.c
modified: ../src/dir.c
modified: ../src/dsk.c
modified: ../src/intcall.c
modified: ../src/subr.c
modified: ../src/ufs.c
modified: ../src/vmemsave.c
modified: ../src/xc.c
2017-06-30 20:10:38 -07:00
Nick Briggs
35b4ad4350
Fix ups for new llstk.h.
...
modified: bin/makefile-darwin.386-x
modified: bin/makefile-tail
new file: inc/llstk.h
modified: src/gcfinal.c
modified: src/hardrtn.c
modified: src/llstk.c
modified: src/uraid.c
modified: src/xc.c
modified: src/xc.c.orig
2017-06-30 17:42:46 -07:00
Nick Briggs
b7b658e8d3
Create dir.h to declare functions defined in dir.c
...
Update files that depend on dir functions to include dir.h
Declare as static all functions in dir.c that are not needed externally.
Add dependencies to makefile-tail.
modified: bin/makefile-tail
new file: inc/dir.h
modified: src/dir.c
modified: src/dsk.c
modified: src/main.c
modified: src/subr.c
modified: src/vmemsave.c
2017-06-30 15:48:18 -07:00
Nick Briggs
693e2392ca
Fix parameter types and format strings.
...
modified: src/unixcomm.c
2017-06-30 15:21:16 -07:00
Nick Briggs
730ff30b86
Create unixfork.h to declare functions defined in unixfork.c
...
Update files that depend on unixfork functions to include unixfork.h
Declare as static all functions in unixfork.c that are not needed externally.
Add dependencies to makefile-tail.
modified: makefile-tail
new file: ../inc/unixfork.h
modified: ../src/ldeboot.c
modified: ../src/main.c
modified: ../src/unixfork.c
2017-06-30 15:10:52 -07:00
Nick Briggs
16583b3b53
Fix signature of qsort comparison function.
...
modified: src/vmemsave.c
2017-06-30 12:42:59 -07:00
Nick Briggs
06cc0316a0
Fix implicit declarations of library functions due to missing include string.h.
...
modified: ../src/gcarray.c
modified: ../src/initkbd.c
modified: ../src/uraid.c
modified: ../src/uutils.c
2017-06-30 12:33:41 -07:00
Nick Briggs
2f0aa254aa
Create dsk.h to declare functions defined in dsk.c
...
Update files that depend on dsk functions to include dsk.h
Declare as static all functions in dsk.c that are not needed externally.
Add dependencies to makefile.
modified: makefile-tail
new file: ../inc/dsk.h
modified: ../src/dir.c
modified: ../src/dsk.c
modified: ../src/subr.c
modified: ../src/ufs.c
modified: ../src/vmemsave.c
2017-06-30 11:53:55 -07:00
Nick Briggs
0371f19167
Create conspage.h to declare functions defined in conspage.c
...
Update files that depend on conspage functions to include conspage.h
Declare as static all functions in conspage.c that are not needed externally.
Add dependencies to makefile.
modified: bin/makefile-darwin.386-x
modified: bin/makefile-tail
new file: inc/conspage.h
modified: src/conspage.c
modified: src/mvs.c
modified: src/rplcons.c
modified: src/xc.c
modified: src/z2.c
2017-06-29 22:33:35 -07:00
Nick Briggs
cfd0711a73
Create car-cdr.h to declare functions defined in car-cdr.c
...
Update files that depend on car-cdr functions to include car-cdr.h.
Add dependencies to makefile.
modified: makefile-darwin.386-x
modified: makefile-init.386
modified: makefile-tail
new file: ../inc/car-cdr.h
modified: ../src/bbtsub.c
modified: ../src/car-cdr.c
modified: ../src/dsk.c
modified: ../src/gcarray.c
modified: ../src/gcrcell.c
modified: ../src/kprint.c
modified: ../src/loopsops.c
modified: ../src/lsthandl.c
modified: ../src/mvs.c
modified: ../src/storage.c
modified: ../src/sxhash.c
modified: ../src/vars3.c
modified: ../src/xc.c
modified: ../src/z2.c
2017-06-29 22:24:33 -07:00
Nick Briggs
7c9b9d22c6
Create uraid.h to declare functions defined in uraid.c.
...
Update files that depend on these uraid functions to include uraid.h.
Add dependencies to makefile.
modified: bin/makefile-tail
new file: inc/uraid.h
modified: src/common.c
modified: src/truecolor.c
modified: src/unwind.c
modified: src/uraid.c
modified: src/uutils.c
2017-06-29 18:31:47 -07:00
Nick Briggs
0445e61fde
Add prototypes for flush_display_region...() to display.h
...
Correct declared argument types in flush_display_region...() to match usage.
modified: inc/display.h
modified: src/initdsp.c
2017-06-26 21:33:03 -07:00
Nick Briggs
5a520095c2
MacOS doesn't have stime() even though it has many SysV features
2017-06-26 21:32:30 -07:00
Nick Briggs
913a45daf7
Add include unistd.h to various files that need it.
2017-06-26 21:31:23 -07:00
Nick Briggs
7c1e783509
fix missing return type on fork_Unix. Declare time() -- where does it really come from?
2017-06-26 21:29:39 -07:00
Nick Briggs
1867f69be9
Use | instead of + when or-ing shifted partial words to encourage
...
compiler to use roll instruction on x86
modified: src/byteswap.c
2017-06-25 18:13:09 -07:00
Nick Briggs
cef5b57a9d
Correct spelling of ...visible (was ...vissible) in all source files.
...
modified: ../inc/bitblt.h
modified: ../inc/devif.h
modified: ../src/bitblt.c
modified: ../src/dosmouse.c
modified: ../src/dspif.c
modified: ../src/initdsp.c
modified: ../src/keyevent.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/xinit.c
modified: ../src/xlspwin.c
modified: ../src/xscroll.c
modified: ../src/xwinman.c
2017-06-22 23:32:22 -07:00
Nick Briggs
afb6ae3397
Remove junk file hasbcopy.
2017-06-22 19:13:18 -07:00
Nick Briggs
91dc1d7410
Fix some files with CRLF (DOS) line endings to have LF (Unix).
...
modified: doskbd.c
modified: launch.asm
modified: lpkit.c
modified: lplexyy.c
modified: lpytab.c
modified: mouseif.c
2017-06-22 19:09:55 -07:00