85 Commits

Author SHA1 Message Date
gottfriedleibniz d79382bbfe Run codespell on README, build, and source files. (#824)
* chore: run codespell on source/header files

Fixes most reported typos discovered by codespell (while trying to be
unopinionated about American vs. British English).

* chore: run codespell on build/readme files
2026-04-10 11:01:50 -07:00
Fish (David B. Trout) d094e4f3c6 Carry over into SDL Hyperion some recent Aethra fixes:
. Fix compiler warnings on macOS.
. Fix compiler warnings on GCC 12.

. Use performance cores on Apple Silicon. (Enrico Sorichetti)

. Save maxprio/minprio in sysblk so impl() doesn't clobber them. (Tyler Mitchell)
. Handle non-GNU Linuxes properly. (Tyler Mitchell)
. getprotobyname: some Linuxes want "tcp" not "TCP". (Tyler Mitchell)
. Fix for occasional crash on exit. (Tyler Mitchell):

  In POSIX, detach_thread() is neither needed nor valid
  after a return from join_thread(). When the latter returns,
  the thread has exited and its resources are released,
  so detach_thread() not only is not needed, but references
  deallocated resources. This can be harmless, but not always.
2024-01-24 13:17:39 -08:00
Fish (David B. Trout) fa25b8bbbb Remove unused "ccwstep" flag
It has existed since day one (2001 initial repository setup), but has NEVER been used!
2022-03-31 11:49:50 -07:00
Fish (David B. Trout) c5233c23bc (cosmetic) [skip travis] 2021-05-14 14:05:07 -07:00
Fish (David B. Trout) cba56356fc Fix most Mac print format warnings regarding thread id 2019-04-09 23:24:32 -07:00
Fish (David B. Trout) 186dc1ca1f Silence some Linux warnings and update autoconf files 2019-02-12 08:13:03 -08:00
Fish (David B. Trout) 6c3d42e269 Thread name constants 2018-07-24 05:56:40 -07:00
Fish (David B. Trout) 70fb592932 query, save and use min/max thread priorities 2018-07-12 03:17:03 -07:00
Fish (David B. Trout) a190498f71 hthreads priority handling rework:
Resolves #112: "HTHREADS thread-priorities implementation appears BORKED".
2018-07-12 03:17:03 -07:00
Fish (David B. Trout) 3d02efac2b simplify get/set_thread_priority macro use 2018-07-08 12:46:27 -07:00
Fish (David B. Trout) b4e0d8d72a Use LCSS_DEVNUM where possible (other places) 2018-07-01 13:49:47 -07:00
Fish (David B. Trout) a22e26e108 Use capital (C) in Copyright message 2018-03-08 13:27:34 -08:00
Fish (David B. Trout) 6b208b5628 Tape driver RDC and 3590 support enhancements:
1. Define tape RDC (Read Device Characteristics) structure and use it.
2. Attempt to address/fix 3590 large block support via new RDC block size fields. (DCE info still appears to be incorrect. Most everything else looks okay though.)
3. Attempt to lay groundwork for possible future support for 3590 CB and CF (and 3E which seems to follow CF) CCW opcodes. (Implementation is unfortunately unlikely however, due to lack of documentation.)
2017-07-26 11:03:28 -07:00
Fish (David B. Trout) 454bd90899 Remove tabs and trailing blanks 2017-01-30 10:37:52 -08:00
Fish (David B. Trout) 862ebb2f94 (fix some minor clang warnings) 2016-05-18 11:19:04 -07:00
Fish (David B. Trout) af273956c2 SCSI tape fixes:
1, Use gstat2str() in message HHC00211.
2. Fix "invalid argument" bug in read_scsitape()'s read_tape() call:
   a. get_max_blocksize() determines max supported block size for drive.
   b. plugged into dev->bufsize by finish_scsitape_open().
   c. read_tape() (in read_scsitape()) now uses dev->bufsize, not MAX_BLKLEN.
3. fixed devinit issue in tapedev_init_handler().
4. reset dev->sstat corrections in light of new --online option.

Fix should hopefully close GitHub Issue #107.
2016-05-17 07:15:17 -07:00
Fish (David B. Trout) a68c119be4 scsitape enhancements to fix for issue #97:
New option "--online" to test GMT_ONLINE bit for SCSI tape mounts. Also new "-d" (debug) option to enable display of status bits during open process. Refer to updated documentation for further details.

This hopefully closes issue #97.
2016-05-01 09:54:14 -07:00
Fish (David B. Trout) 0316c4f294 More set thread priority tweaking:
1. Move SETMODE calls into hthreads functions.
2. Issue message that identifies source statement that failed.
2014-01-13 02:01:39 -08:00
Fish (David B. Trout) a7c8ce6ce8 correct set priority handling 2014-01-03 13:54:14 -08:00
dasdman de39e3a40b Update channel counts and residual counts to use U32 internally instead of U16 for large block handling. 2013-08-17 19:56:13 -07:00
Jan Jaeger 439bdbca92 Remove subversion $Id$ tag
Update copyright statement to 2012
2012-03-24 18:41:51 +11:00
Jan Jaeger 9b391ffdae Reinstate year updates from patch 7721 only
git-svn-id: file:///home/jj/hercules.svn/trunk@7722 956126f8-22a0-4046-8f4a-272fa8102e63
2011-08-21 11:49:21 +00:00
Jan Jaeger 26e10b16af Revert patch 7594
git-svn-id: file:///home/jj/hercules.svn/trunk@7721 956126f8-22a0-4046-8f4a-272fa8102e63
2011-08-21 11:45:34 +00:00
Jan Jaeger 784ae54918 Reverting changes that have not yet been agreed
Open questions: named vs unnamed structures
                what field go in device specfic structures vs general structure
                use of malloc vs static
                naming convention


git-svn-id: file:///home/jj/hercules.svn/trunk@7702 956126f8-22a0-4046-8f4a-272fa8102e63
2011-08-18 09:47:11 +00:00
Paul Gorlinsky 971881a5f3 Create union in DEVBLK for device dependent information. Fixes for Linux...
git-svn-id: file:///home/jj/hercules.svn/trunk@7699 956126f8-22a0-4046-8f4a-272fa8102e63
2011-08-17 21:40:41 +00:00
Paul Gorlinsky 7f91edefcf Create union in DEVBLK for device dependent information.
git-svn-id: file:///home/jj/hercules.svn/trunk@7698 956126f8-22a0-4046-8f4a-272fa8102e63
2011-08-17 21:01:37 +00:00
Fish (David B Trout) 236a11b6e2 (cosmetic: remove trailing blanks and tabs)
git-svn-id: file:///home/jj/hercules.svn/trunk@7613 956126f8-22a0-4046-8f4a-272fa8102e63
2011-07-23 06:42:44 +00:00
Fish (David B Trout) 0eca673bda Fix SCSI tape S613 abend issue
git-svn-id: file:///home/jj/hercules.svn/trunk@7597 956126f8-22a0-4046-8f4a-272fa8102e63
2011-07-19 01:45:21 +00:00
Paul Gorlinsky 364490312b Update Copyright notices to 2011.
git-svn-id: file:///home/jj/hercules.svn/trunk@7594 956126f8-22a0-4046-8f4a-272fa8102e63
2011-07-18 23:16:59 +00:00
Fish (David B Trout) f1b203c863 Fix IEHINITT blank tape BSR bug
git-svn-id: file:///home/jj/hercules.svn/trunk@7536 956126f8-22a0-4046-8f4a-272fa8102e63
2011-06-30 17:55:43 +00:00
Fish (David B Trout) c485e9c4e4 Improved(?) debug tracing: use of TRACE/ASSERT/VERIFY macros now no longer require (are now no longer dependent upon) DEBUG (e.g. --enable-debug) builds. See new dbgtrace.h header for details (i.e. define ENABLE_TRACING_STMTS to enable TRACE/ASSERT/VERIFY independently of DEBUG builds, thereby allowing you to use them even on Release (Retail) builds if desired).
Make TRACE/ASSERT/VERIFY macros independent of (but compatible with) DEBUG build setting while still allowing individual source member to override the default setting/handling if so desired. I'm hoping this makes the use of TRACE, ASSERT and VERIFY macros easier for everyone.

git-svn-id: file:///home/jj/hercules.svn/trunk@7302 956126f8-22a0-4046-8f4a-272fa8102e63
2011-01-27 23:35:37 +00:00
Bernard van der Helm 8ec8df6a7a Further optimizations and some warnings
git-svn-id: file:///home/jj/hercules.svn/trunk@7222 956126f8-22a0-4046-8f4a-272fa8102e63
2010-12-29 08:39:07 +00:00
Fish (David B Trout) 1a8d7a803c git-svn-id: file:///home/jj/hercules.svn/trunk@7180 956126f8-22a0-4046-8f4a-272fa8102e63 2010-12-08 08:01:07 +00:00
Paul Gorlinsky 942aff75f5 Porting issues and message cleanup
git-svn-id: file:///home/jj/hercules.svn/trunk@7023 956126f8-22a0-4046-8f4a-272fa8102e63
2010-11-01 03:47:27 +00:00
Paul Gorlinsky 103837eb0c Message cleanup
git-svn-id: file:///home/jj/hercules.svn/trunk@6978 956126f8-22a0-4046-8f4a-272fa8102e63
2010-10-26 04:44:08 +00:00
Paul Gorlinsky 58233ea86e Correct message ids.
git-svn-id: file:///home/jj/hercules.svn/trunk@6203 956126f8-22a0-4046-8f4a-272fa8102e63
2010-07-19 03:45:04 +00:00
Bernard van der Helm fe4820b164 Changed all static sprintf(buf to snprintf(buf, buflen for more
robustness. And solved a segmentation fault in the lsdep command.


git-svn-id: file:///home/jj/hercules.svn/trunk@6081 956126f8-22a0-4046-8f4a-272fa8102e63
2010-06-03 14:08:26 +00:00
Paul Gorlinsky 989f6ed065 Remove '%s'/sprintf process in hdl.c and scsitape.c.
Improve QUERY responses. 

git-svn-id: file:///home/jj/hercules.svn/trunk@6075 956126f8-22a0-4046-8f4a-272fa8102e63
2010-06-01 22:04:35 +00:00
Paul Gorlinsky fb4fb2e069 Update notices; Standardize preamble...
git-svn-id: file:///home/jj/hercules.svn/trunk@6033 956126f8-22a0-4046-8f4a-272fa8102e63
2010-05-25 03:55:37 +00:00
Bernard van der Helm 3dcb2bdbc6 Standard tape messages including filename and device type
git-svn-id: file:///home/jj/hercules.svn/trunk@5870 956126f8-22a0-4046-8f4a-272fa8102e63
2010-04-24 09:28:19 +00:00
Bernard van der Helm b10b843187 scsitape std msg
git-svn-id: file:///home/jj/hercules.svn/trunk@5866 956126f8-22a0-4046-8f4a-272fa8102e63
2010-04-24 07:26:31 +00:00
Bernard van der Helm 3cc9cf44a5 Standard setpriority messaging
git-svn-id: file:///home/jj/hercules.svn/trunk@5858 956126f8-22a0-4046-8f4a-272fa8102e63
2010-04-20 14:12:21 +00:00
Bernard van der Helm 752cbbd080 Standard messages for thread error handling + error handling when a
thread is started


git-svn-id: file:///home/jj/hercules.svn/trunk@5857 956126f8-22a0-4046-8f4a-272fa8102e63
2010-04-20 13:55:05 +00:00
Bernard van der Helm 073b913305 Thread message cleanup and more
git-svn-id: file:///home/jj/hercules.svn/trunk@5850 956126f8-22a0-4046-8f4a-272fa8102e63
2010-04-19 19:53:46 +00:00
Fish (David B Trout) a1db6f3e5b Don't ask SCSI tape drive to write variable length blocks if mounted media is read-only.
(hopefully fixes missing device-attention interrupt issue reported by 'happy_alc_coder')

git-svn-id: file:///home/jj/hercules.svn/trunk@5827 956126f8-22a0-4046-8f4a-272fa8102e63
2010-04-11 08:58:59 +00:00
Paul Gorlinsky 9c2e0f131e Message Cleanup. Begin implementing standards...
git-svn-id: file:///home/jj/hercules.svn/trunk@5806 956126f8-22a0-4046-8f4a-272fa8102e63
2010-04-07 00:13:14 +00:00
Paul Gorlinsky 9b22d9e433 Message Cleanup. Standardize DEVICE references. Make tape modules produce more consistant messages.
git-svn-id: file:///home/jj/hercules.svn/trunk@5781 956126f8-22a0-4046-8f4a-272fa8102e63
2010-04-02 03:31:31 +00:00
Paul Gorlinsky 93e3616b73 message clean up.
git-svn-id: file:///home/jj/hercules.svn/trunk@5770 956126f8-22a0-4046-8f4a-272fa8102e63
2010-03-29 22:37:29 +00:00
Bernard van der Helm 2c2f6c9fe3 scsitape.c std msg
git-svn-id: file:///home/jj/hercules.svn/trunk@5753 956126f8-22a0-4046-8f4a-272fa8102e63
2010-03-27 07:08:38 +00:00
Roger Bowler 5e0682a1d7 Rationalize HHCTA message numbers
git-svn-id: file:///home/jj/hercules.svn/trunk@5587 956126f8-22a0-4046-8f4a-272fa8102e63
2009-12-31 15:05:57 +00:00