B. Scott Michel
a275c71170
SCP: Reduce compiler warnings on LP64 platforms
...
(Note: Reducing compiler warnings across all, but primarily LP64
platforms, is a long term objective.)
Reduce compiler warnings on LP64 platforms (macOS, Windows) and 32-bit
builds (Win32). Prefer 'size_t' for pointer arithmetic, array indexing
and extents; 'int' hasn't been used for these purposes for many years
and across many ANSI standards. N.B. that conversions from int or int32
to size_t cause the compiler to zero-extend the value, which is
inefficient.
Refactor printf() format modifiers into sim_printf_fmts.h. Add the
SIZE_T_FMT modifier for better portability, especially on LP64 platforms
where size_t is unsigned long and sizeof(size_t) > sizeof(int).
3B2: Fix known size_t printf() format.
2024-02-01 12:51:32 -05:00
Mark Pizzolato
cb4d6cfc29
FIO: Properly bound byte swap activity when reading on big endian hosts
2022-03-18 12:09:17 -07:00
Mark Pizzolato
06c696385f
SCP: Coverity inspired changes
2022-03-06 02:11:57 -08:00
Mark Pizzolato
153776accb
FIO: Add support to expand filename/path to a list of filenames
2022-02-06 11:04:39 -08:00
Mark Pizzolato
079e4780d2
FIO: Add support to set file access and modify times
2021-10-31 04:20:39 -07:00
Mark Pizzolato
d0c7276dd7
FIO: Emit reasonable error message when shm_open() API isn't available locally
2021-10-24 14:25:28 -07:00
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