[Hamlib-developer] [Hamlib/Hamlib] 4b39d3: Add exclusive mode support to serial port opening
Library to control radio transceivers and receivers
Brought to you by:
n0nb
|
From: Nate B. <no...@gi...> - 2026-09-17 11:28:36
|
Branch: refs/heads/master Home: https://github.com/Hamlib/Hamlib Commit: 4b39d3cd6fbbf2d13ab98d4a4e6c695b443c9e02 https://github.com/Hamlib/Hamlib/commit/4b39d3cd6fbbf2d13ab98d4a4e6c695b443c9e02 Author: Ben Woodard <wo...@re...> Date: 2026-09-08 (Tue, 08 Sep 2026) Changed paths: M src/serial.c Log Message: ----------- Add exclusive mode support to serial port opening Add TIOCEXCL ioctl to serial_open() and ser_open() to set exclusive access on serial ports. This prevents multiple processes from accessing the same serial port simultaneously, which is critical for radio control applications. Also add perror() for close operation failures to improve debugging. Co-authored-by: Goose <go...@bl...> Commit: 6e6fae759320f44178324ffccd6d9ace746cfc10 https://github.com/Hamlib/Hamlib/commit/6e6fae759320f44178324ffccd6d9ace746cfc10 Author: Ben Woodard <wo...@re...> Date: 2026-09-13 (Sun, 13 Sep 2026) Changed paths: M NEWS M rigs/ats-mini/Makefile.am M rigs/ats-mini/ats.c M rigs/kenwood/elecraft.c M rigs/kenwood/level_gran_kenwood.h M rigs/kenwood/ts480.c M tests/.gitignore M tests/Makefile.am M tests/rigmatrix.c M tests/testctlparser.c A tests/testelecraftvfo.c Log Message: ----------- Merge branch 'master' into serial-exclusive Commit: 336db268e53f7cd120a0a14de46c2524dd9903b7 https://github.com/Hamlib/Hamlib/commit/336db268e53f7cd120a0a14de46c2524dd9903b7 Author: Ben Woodard <wo...@re...> Date: 2026-09-16 (Wed, 16 Sep 2026) Changed paths: M HAMLIB_STREAMING.md M HAMLIB_STREAMING_BACKEND_GUIDE.md M README.developer M doc/man1/rigctld.1 M include/hamlib/rig.h M rigs/dummy/netrigctl.c M src/stream.c M src/stream_net.c M src/stream_proto.c M src/stream_proto.h M test/test_dummy_stream.c M test/test_netrigctl_stream.c M test/test_rigctld_commands.c M test/test_rigctld_stream.c M test/test_stream_api.c M tests/rigctl_parse.c M tests/rigstreamtest.c Log Message: ----------- Merge branch 'master' into serial-exclusive Commit: e9ef0cc3b2d41eb28ef255518df808be656dadaf https://github.com/Hamlib/Hamlib/commit/e9ef0cc3b2d41eb28ef255518df808be656dadaf Author: Ben Woodard <wo...@re...> Date: 2026-09-16 (Wed, 16 Sep 2026) Changed paths: M configure.ac M src/serial.c Log Message: ----------- Check for TIOCEXCL availability and conditionally compile ioctl calls The commit 4b39d3c added TIOCEXCL ioctl calls to serial_open() and ser_open() to set exclusive mode on serial ports. However, TIOCEXCL is not available on all platforms - notably, it's not defined on Windows MinGW cross-compile targets, which causes build failures. This change adds an autoconf test to detect whether TIOCEXCL is available on the target platform, and conditionally compiles the exclusive mode ioctl calls only when the constant is defined. The autoconf test: - Checks if TIOCEXCL can be used from sys/ioctl.h - Defines HAVE_TIOCEXCL to 1 if available The code changes: - Wrap TIOCEXCL ioctl calls in #ifdef HAVE_TIOCEXCL blocks - Only set exclusive mode when the platform supports it This ensures the code compiles on all supported platforms including Windows MinGW while still providing exclusive mode functionality on platforms that support it. Signed-off-by: Ben Woodard AE6BC <kg...@gm...> Co-authored-by: Goose <go...@bl...> Commit: 64d8442ef9dd17a97d5d86d858af3773ff3c1f9c https://github.com/Hamlib/Hamlib/commit/64d8442ef9dd17a97d5d86d858af3773ff3c1f9c Author: Nate Bargmann <n0...@n0...> Date: 2026-09-17 (Thu, 17 Sep 2026) Changed paths: M configure.ac M src/serial.c Log Message: ----------- Merge GitHub PR #2200 Commit: 9b35d7d724514d7a605d961b1101edba864501e4 https://github.com/Hamlib/Hamlib/commit/9b35d7d724514d7a605d961b1101edba864501e4 Author: Nate Bargmann <n0...@n0...> Date: 2026-09-17 (Thu, 17 Sep 2026) Changed paths: M NEWS Log Message: ----------- Update NEWS for serial port exclusive mode opening Commit: 8ab6649a941030d1ac3ee90ee3394dbdd3454ba1 https://github.com/Hamlib/Hamlib/commit/8ab6649a941030d1ac3ee90ee3394dbdd3454ba1 Author: Nate Bargmann <n0...@n0...> Date: 2026-09-17 (Thu, 17 Sep 2026) Changed paths: M configure.ac M src/serial.c Log Message: ----------- Merge branch 'woodard-serial-exclusive' Compare: https://github.com/Hamlib/Hamlib/compare/336346f135e3...8ab6649a9410 To unsubscribe from these emails, change your notification settings at https://github.com/Hamlib/Hamlib/settings/notifications |