Wykres commitów

92 Commity (c34f71933780245fb48a9d448b43c07fcc9b3226)

Autor SHA1 Wiadomość Data
Mike Black W9MDB a83eb3bf42 astyle files for 4.5 release 2022-07-27 17:16:17 -05:00
Mike Black W9MDB 627ec83652 Change malloc to calloc 2022-07-27 10:26:08 -05:00
Mike Black W9MDB ff15e141ef Fix termios.c warnings 2022-07-22 22:36:47 -05:00
Mike Black W9MDB 1063540765 Fix show_DCB in termios.c 2022-05-13 10:32:17 -05:00
Mike Black W9MDB 5588b2465c Change termios.c Windows sleep to 10,000us instead of 1,000us -- makes for more accurate sleep calculation
https://github.com/Hamlib/Hamlib/issues/996
2022-03-24 12:12:22 -05:00
Mike Black W9MDB 8c34ce1a2d astyle source code 2022-02-05 15:27:43 -06:00
Mike Black W9MDB 68e121d82c Change all to remove HAVE_CONFIG dependency and include <hamlib/config.h> by default
This is necessary to keep alignment between the client view of rig->state and the shared libarary view
Including PTHREAD functions in rig->state necessitated this as HAVE_PTHREAD only defined during hamlib compilation.
Clients including hamlib/rig.h did not pick up all the HAVE* config variable that control what gets included
https://github.com/Hamlib/Hamlib/issues/947
2022-02-04 07:41:36 -06:00
Mike Black W9MDB 9aade8de3f Add config.h to include/hamlib so HAVE_PTHREAD is available if needed
https://github.com/Hamlib/Hamlib/issues/947
2022-02-03 22:31:42 -06:00
Mike Black W9MDB 6f0d8bdcce Change snprintf to SNPRINTF in lib files
https://github.com/Hamlib/Hamlib/issues/857
2022-01-22 22:20:05 -06:00
Mike Black W9MDB 7ecd467126 Change sprintf to SNPRINTF in cJSON.c
https://github.com/Hamlib/Hamlib/issues/857
2022-01-18 15:28:09 -06:00
Mike Black W9MDB 7764b59f36 Change sprintf to snprint in termios.c
https://github.com/Hamlib/Hamlib/issues/857
2022-01-09 09:25:15 -06:00
Mike Black W9MDB 814ac551e8 Change sprintf to snprint in asyncpipe.c
https://github.com/Hamlib/Hamlib/issues/857
2022-01-09 09:18:43 -06:00
Mike Black W9MDB 0600adb077 Change sprintf to snprint in cJSON.c
https://github.com/Hamlib/Hamlib/issues/857
2022-01-08 17:26:54 -06:00
Mikael Nousiainen a00d78c860 Implement pipes using asynchronous/overlapped I/O on Windows 2022-01-03 14:18:49 +02:00
Mikael Nousiainen 56c95b1529 Merge upstream changes and fix conflicts 2021-12-12 23:05:26 +02:00
Mikael Nousiainen d857f18163 Initial implementation of: reader thread for async handling of rig data, UDP multicast publisher routine and rig state poll thread routine. The reader thread can correctly handle asynchronous data, such as transceive or spectrum data. Work in progress: multi-platform code for I/O routines still missing and the poll routine is not yet in use. Tested briefly on an IC-7300 so far. 2021-11-28 20:52:29 +02:00
Mike Black W9MDB 63a51c36a1 astyle files preparing for 4.4 release 2021-11-28 12:41:10 -06:00
Mike Black W9MDB 233036f874 Fix compile warning in termios.c 2021-11-03 11:56:34 -05:00
Mike Black W9MDB 30ef04b1a4 Speed up Windows serial I/O
Was using a fixed timeout instead of returning already read
https://github.com/Hamlib/Hamlib/issues/850
2021-11-02 16:40:39 -05:00
Mike Black W9MDB 52e0840f1d Speed up serial timeout minimum from ~12ms to ~1ms 2021-10-31 17:21:20 -05:00
Mike Black W9MDB 4501c1c97b Remove generated files 2021-04-14 15:41:01 -05:00
Mike Black W9MDB 9d310062eb More files for git clone configure to work 2021-04-14 09:19:27 -05:00
Michael Black W9MDB ee60a68bec astyle files 2021-02-28 09:46:01 -06:00
Michael Black W9MDB 6049f54ef4 Fix compilation warnings in getopt.c 2021-02-26 11:17:35 -06:00
Michael Black W9MDB c5ac5b2334 Fix win32termios.h build under mingw
https://github.com/Hamlib/Hamlib/issues/421
2020-10-16 15:26:30 -05:00
Michael Black W9MDB 1c7e5b2e48 Fix win32termios.h
https://github.com/Hamlib/Hamlib/issues/421
2020-10-16 14:48:01 -05:00
Michael Black W9MDB cf32ace4be Fix gcc warnings
https://github.com/Hamlib/Hamlib/issues/421
2020-10-16 11:51:41 -05:00
Daniele Forsi 1e00e4e8db Fix typos
Command line:
codespell --write-changes --summary --skip=*.m4 --ignore-words-list="develope,get's,quitt,setts,som,ue,vektor,objext,ans
2020-10-11 18:03:50 +02:00
Michael Black W9MDB b97d05369c astyle files 2020-09-14 23:12:35 -05:00
Michael Black W9MDB 12c2434dc7 Fix cppcheck warning in termios.c: 2020-09-14 07:59:47 -05:00
Michael Black ff8ddf018c astyle all C files 2020-02-23 11:26:09 -06:00
Michael Black 60b3e3e8bd
Fix cppcheck warnings in getopt.h 2020-01-12 11:53:29 -06:00
Michael Black b7e8f01701 Fix mingw32 DLL linkage of hl_sleep 2020-01-10 15:58:16 -06:00
Michael Black 7ee3a702f5
Replace all usleep with hl_usleep
Several places where usleep max value could be overflowed
New hl_usleep can take values > 1000000
2020-01-07 23:18:56 -06:00
Michael Black 7bc8ac0c35
Fix cppcheck warning in getopt_long.c 2019-12-19 08:14:26 -06:00
Michael Black 3d98d3862c
Fix cppcheck warning in getopt.c 2019-12-19 08:13:34 -06:00
Michael Black 7dc98d3b79
Fix cppcheck warning in getopt.c removing alloca 2019-12-19 08:11:37 -06:00
Michael Black 60cfecd5b4
Hopefully suppress arm compilation warning 2019-12-03 16:15:33 -06:00
Michael Black da86568edb
Fix compile warnings on termios.c 2019-12-03 14:51:02 -06:00
Michael Black 6bf3b00c4f
astyle all files 2019-11-30 10:19:08 -06:00
Michael Black b7ee4109ca
Fix termios to return timeout value when timeout occurs 2019-06-12 16:38:58 -05:00
Michael Black c61a62bec5
Fix termios debug statement 2019-06-12 12:15:01 -05:00
Bill Somerville 6612f8e1b2 Fix an incorrect error return value from win32_serial_select() 2019-05-04 11:35:55 +01:00
Michael Black 1d41268e4c Fixes to termios.c on W32 targets
I was debugging termios.c and this patch fixes two small problems--two
debug printf format problems and another one that causes an extra char
to be read on timeout.

The extra char problem is easily duplicated by using the "w" command
under rigtctl.  Most all other commands use fixed-length response
strings which don't exhibit the problem.  But since "w" does not know
how long the response should be it loops until it times out.  Every time
it times out it would return 1 extra character (this was 100% repeatable
on two different rigs).

Turns out it was a simple typo in the code as the read was using the
write event instead of the read event.
2015-02-22 10:03:24 -06:00
Bill Somerville aa3fd7ba28 Remove gratuitous sleeps before function exits
Add sleep in tight wait loop to reduce CPU loading.
2014-12-10 01:34:35 +00:00
Bill Somerville 849f1e1bf8 Fix serial i/o on Windows.
Fix bytes read count accumulation in Windows serial I/O.

read_string  from  communications  port   doesn't  handle  timeout  on
anything but the first character read.

Honour VMIN tty parameter correctly.
2014-11-30 11:22:58 +00:00
Bill Somerville b27b423dce Fix a buffer overflow in the Windows termios emulation.
The  YACK() macro  generates  a  message of  variable  length due  the
__FILE__ string  and a  message returned  by MS  FormatMessage() being
inserted  into a  fixed length  string  buffer. I  have increased  the
buffer length to 1024 bytes and used snprintf to avoid overflows.

It looks like the whole YACK() macro should do nothing unless DEBUG is
defined so  there is probably  a small performance  gain to be  had by
doing that also. I have left that to the experts to decide.
2014-03-24 17:09:03 +00:00
Nate Bargmann 6ea09a138a Clean up build system, fix test programs
Clean up various left over commented lines from dlopen to single
libhamlib transition.  Remove unneeded configure variables.

Correct minor inconsistencies in Makefile.am files.

Define a new variable, READLINE_LIBS, so that only programs that offer
Readline support are linked against it.

Fix various compilation warnings and errors in test files revealed with
'make check' on MinGW.

Define rig and rotor backends to (mostly) be built in alphabetical
order.
2013-12-10 20:14:22 -06:00
Nate Bargmann 36f5f4cf6a Revert to previous handling of getaddrinfo()
Use the system gettaddrinfo function when possible as before.  Tested on
GNU, Cygwin, MinGW on Linux, and MinGW on Windows.  Under MinGW the
replacement getaddrinfo is used.  Perhaps this is an area for
investigation to be certain MinGW really doesn't supply getaddrinfo.
This reverts some of the patches from Remi Chateauneu in commit
60019c9.  This fixes build issues encountered building the Windows
binary daily snapshots.

Enabled static library build by default at configure time.

Fixed pthread library linking for the ars backend on MinGW.
2013-09-15 19:47:49 -05:00
Remi Chateauneu 60019c9444 Monolitic libraries. 2013-09-08 14:56:28 +01:00