Mark Pizzolato
06a8447d26
FIO: Add NetBSD and OpenBSD to platforms that could use mmap and shm APIs
...
As reported in #1083
2021-10-12 18:53:56 -07:00
Mark Pizzolato
4e729165ee
FIO: Add sim_byte_swap_data routine to byte swap
...
This is an unconditional swap which may not be dependent on the
particular endian orientation of the simulated or host system.
2021-08-17 15:20:07 -07:00
Mark Pizzolato
f95b20e1f3
SCP: Cleanup potential compiler warnings
2021-08-13 09:09:53 -07:00
Mark Pizzolato
7dda50344c
FIO: Allow access to all file names with or without quotes
2021-06-08 13:06:47 -07:00
Mark Pizzolato
c004fcc2ba
SCP: Fix Coverity identified issues
2021-04-11 15:48:01 -07:00
Mark Pizzolato
ee7ab95c9c
SCP: Allow file names to be quoted in sim_fopen
2021-04-06 01:28:13 -07:00
Mark Pizzolato
076c1ef094
SCP: Add support for ~/ references to user home directory when opening files
2021-03-06 14:04:54 -08:00
Mark Pizzolato
749dd7d333
SCP: Move utility functions to sim_fio
2021-01-12 07:58:56 -08:00
Mark Pizzolato
4f215963f8
FIO: Fix name matching when glob isn't available and using fnmatch
2021-01-06 07:15:22 -08:00
Mark Pizzolato
746f806bb3
SCP: Merge minor changes from Supnik-Current branch
2020-12-18 10:02:18 -08:00
Mark Pizzolato
852c0bc1bc
SCP: Avoid seeking on attached sequential devices on non seekable files
...
As reported on #982
2020-12-14 18:48:14 -08:00
Mark Pizzolato
31606161ce
SCP: Avoid potential compiler warnings
...
Essentially all are non-functional problems but silencing them is a good idea
2020-10-09 05:09:41 -07:00
Mark Pizzolato
a73ab48c0e
SHMEM: Fix all Linux code paths to only use shm_ APIs when available
2020-07-09 08:27:57 -07:00
Mark Pizzolato
6c08fae048
SHMEM: Fix Linux code to properly use built-in's and cleanup on shutdown
...
As reported in #909
2020-07-08 12:38:10 -07:00
Mark Pizzolato
7e58080fb5
SCP: Fix file name parser to tolerate a name without any slashes in the path
2020-02-17 21:03:20 -08:00
Mark Pizzolato
d131f66c40
FIO: Fix non Win32 behaviors of sim_dir_scan
...
Allow for a file not found case to be determined and explicit file and
full directory scan when GLOB and FNMATCH aren't available.
2019-12-30 13:12:41 -08:00
Mark Pizzolato
5a59fe81fc
FIO: Fix directory scanning logic to avoid errors handling files in /
2019-11-18 16:57:20 -08:00
Mark Pizzolato
23856afcac
FIO: Avoid compiler warning on never executed code path (Tony Nicholson)
...
As suggested in #766
2019-11-14 03:08:57 -08:00
Mark Pizzolato
9fe781cb7e
SCP: Add environment variable file expansion options for file size, date/time
2019-10-28 17:40:59 -07:00
Mark Pizzolato
81b48e2ebf
SCP: Fix potential crash with mixed path separators on Windows
2019-05-07 05:25:56 -07:00
Mark Pizzolato
5960bca32a
SCP: Add a local rand() implementation to avoid Coverity issues
2019-03-20 12:57:36 -07:00
Mark Pizzolato
f09e9c290a
TAPE: Add tests and Coverity cleanups
2019-03-19 10:24:28 -07:00
Mark Pizzolato
cb9876ce65
SCP: Cleanup gcc compiler flagged potential issues
...
Compiler warnings about undeclared case fall throughs, and potential
buffer overruns,
2019-01-21 16:43:17 -08:00
Mark Pizzolato
3cca0cf90b
SCP: Cleanup MinGW compile warnings
2019-01-21 02:36:42 -08:00
Mark Pizzolato
f8a18df1c4
SCP: Cleanup compiler warnings
2018-10-10 00:03:37 -07:00
Mark Pizzolato
f86a67310a
SCP: Add missing aspects to sim_filepath_parts, move sim_dir_scan to sim_fio
2018-09-29 23:34:14 -07:00
Mark Pizzolato
a40d23fd53
SCP: Avoid warning on OS X which shouldn't be necessary
2018-09-28 19:06:29 -07:00
Mark Pizzolato
568a80dfb8
SCP: Add parsing of file specs in environment variables and DO command args.
2018-09-28 15:43:01 -07:00
Mark Pizzolato
f48c282dff
SCP: Silence potential compiler warnings on Windows using GCC
2018-09-27 22:01:40 -07:00
Mark Pizzolato
91e4efbd59
SHMEM: Fix various Linux and Windows problems
...
- Windows did not validate that the a segment size was correct.
- Add shared memory object name to the management structure
- Linux shared memory object names must start with a /
- Linux umask setting to assign permissions
- Add textual explanations for failure cases
2018-07-21 02:20:47 -07:00
Mark Pizzolato
1a7412a276
FIO: Make shmem behaviors reflect 3.10
...
Current functionality works to some extent on Windows and x86 Linux and OS X
2018-06-05 01:39:41 -07:00
Mark Pizzolato
c1f249ec66
SCP: Add atomic routines for temporary shmem access
2018-06-01 23:16:14 -07:00
Mark Pizzolato
13b4f6563f
FIO: Fix large file support on Linux AND Android platforms correctly
...
As discussed in #564
2018-05-15 06:50:27 -07:00
Mark Pizzolato
0aa4264261
FIO: Properly configure large file support for different Android versions
2018-05-09 11:08:53 -07:00
Mark Pizzolato
39802c465a
makefile: Support mode Android versions when termux is used
2018-05-09 10:39:10 -07:00
Mark Pizzolato
669d07ba3e
SCP: Fix compile WIN32 MinGW warnings
2018-03-07 13:20:14 -08:00
Mark Pizzolato
335b4ef210
DISK: Add support for reporting OS specific error messages when using RAW I/O
2018-02-27 13:32:20 -08:00
Mark Pizzolato
6487d319cd
VMS Build: Restore VAX/VMS host build support
...
The C RTL on the latest VAX/VMS does not provide a snprintf function.
We provide a 'basic' one which meets the needs of simh as suggested
by Jordi Guillaumes Pons.
2017-12-09 11:21:38 -08:00
Mark Pizzolato
e522daf906
SCP: Replace stray TAB and fix sprintf format specifier
2017-04-23 23:43:14 -07:00
Mark Pizzolato
9179c4ea07
SCP: Fix OS Error text routine on Windows with gcc
2017-04-22 15:43:09 -07:00
Mark Pizzolato
6ff3eeac80
SCP: Compiler suggested cleanup
2017-04-10 10:47:42 -07:00
Mark Pizzolato
7317645dd7
SCP: Make COPY command more robust
2017-04-07 14:35:04 -07:00
Mark Pizzolato
d5a56e0ab4
SCP: Take care to only write to a socket a single time and when appropriate
2017-01-16 14:25:38 -08:00
Mark Pizzolato
5531ccb175
ALL: Massive 'const' cleanup
...
These changes facilitate more robust parameter type checking and helps
to identify unexpected coding errors.
Most simulators can now also be compiled with a C++ compiler without
warnings.
Additionally, these changes have also been configured to facilitate easier
backporting of simulator and device simulation modules to run under the
simh v3.9+ SCP framework.
2016-05-15 15:25:33 -07:00
Mark Pizzolato
ed2de2fcf2
FIO: Add LARGE_FILE support when building on Cygwin (from Don North).
2016-01-03 04:02:32 -08:00
Mark Pizzolato
cd799c9d3f
makefile: dynamically determine if shm_open is available on the local system, Fix X11R7 library reference when available
2015-04-28 16:29:23 -07:00
Mark Pizzolato
a8087ac4cc
SCP: Return write failure (write 0 bytes) if malloc fails in sim_fwrite on a big-endian host. Fix #204
2015-04-02 07:01:23 -07:00
Mark Pizzolato
590895bfe5
SCP: Added generic primitives to create named shared memory regions which can be used interprocess memory sharing
...
This is a basic starting point to create the memory regions. At some point synchronization primitives will probably also be necessary.
2015-03-17 22:11:07 -07:00
Mark Pizzolato
33781be23b
SCP: Added support fo set a fifo opened with sim_fopen() to be non-blocking.
2014-12-30 18:48:42 -08:00
Mark Pizzolato
437f86fb4a
FIO: Removed sim_set_fsizeo since it is not currently used and it can't be compiled under MinGW
2014-09-17 14:17:34 -07:00