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
881f21e9ce
16-bit constants with high bit set that are going to be shifted << 16 should be unsigned to avoid overflow warning.
...
Remove some unnecessary 32-bit convenience constants that can be calculated at compile time.
modified: inc/stack.h
2020-08-10 17:50:54 -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
79ad101cc1
Update machinetype to recognize x86_64 machines
2020-08-03 19:05:41 -07:00
Nick Briggs
36d3575736
Prepare to ignore upcoming linux.x86_64 binary directories
2020-08-03 19:04:24 -07:00
Nick Briggs
06872ed2b1
Ignore sunos5 SPARC build directories and plain core files
2020-07-26 20:46:30 -04: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
a60e33bc17
Document options required for gcc and Developer Studio 12.6 C compilers
...
set default to "cc" (Studio C compiler) for now.
modified: bin/makefile-sunos5.sparc-x
2020-07-26 20:31:04 -04:00
Nick Briggs
0ced73e7fa
Clean up defines to better match x86 Solaris version where applicable
...
modified: makefile-sunos5.sparc-x
2020-07-11 07:30:57 -07:00
Nick Briggs
3ee93a8ab5
Add sunos5 related build directories to the .gitignore
2020-07-16 20:47:39 -07:00
Nick Briggs
2a79b5e782
Turn down the compiler warnings for normal builds on macOS
...
Separate out the DEBUGFLAGS for compilation
Add ldex to the default targets
2020-07-16 20:41:50 -07:00
Nick Briggs
e74ca5795c
Ensure that "cleanup" target removes ldex and ldeether executables as well as lde
...
modified: bin/makefile-tail
2020-07-16 16:43:21 -07: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
a3a14577be
Ensure that on Sun systems s_char type is signed char now that char is otherwise forced to be unsigned.
...
modified: inc/version.h
2020-07-16 16:37:42 -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
3d828625df
Remove special assembly optimization that was only applicable to SPARC systems.
...
modified: bin/makefile-sunos5.386-x
2020-07-15 15:01:00 -07:00
Nick Briggs
a6e09351d6
Turn off compiling for ethernet interface in SunOS5 by default until the rest of the system works
...
modified: inc/version.h
2020-07-15 14:56:40 -07:00
Nick Briggs
c11f44d926
Add makefile section for SunOS5 (currently aimed at Solaris 10/11) on generic 386
...
The code compiles, but the emulator is not yet functional
new file: makefile-sunos5.386-x
2020-07-15 14:32:23 -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
9772948e31
Change default to build 64-bit binaries for compatability with macOS Catalina and forward
...
modified: bin/makefile-darwin.386-x
2020-07-13 19:19:51 -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
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