Wykres commitów

72 Commity (be3d79ce19da5a639252c3595dec9f1016110cb2)

Autor SHA1 Wiadomość Data
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
Nate Bargmann b9ff04abf0 Fix W2k 'freeaddrinfo' error
Trying to run the pthread enabled binaries on W2k resulted in an error
dialog with the text, "The procedure entry point freeaddrinfo could not be
located in ws2_32.dll".  A Microsoft support page
(http://support.microsoft.com/kb/955045) hints that when 'ws2tcpip.h' is
included that 'wspiapi.h' should be included as well.  Since MinGw
includes both files, this patch corrects the runtime error on W2k
2013-05-18 07:31:40 -05:00
Stephane Fillod 683cc7eedd win32termios: fix in tcflush
Under Windows, the Icom transceive messages do not get flushed
properly. Returned data is cached in windows serial buffer and
are received by hamlib as response to initial request.
Lada suggested to add PURGE_RXCLEAR flag to tcflush (lib/termios.c),
actually clearing and making the buffer empty.

Look at http://msdn.microsoft.com/en-us/library/windows/desktop/aa363428%28v=vs.85%29.aspx
PURGE_RXABORT only terminates overlapped reads but not input buffer.

Nate suggested to add the PURGE_TXCLEAR flag to the output queue as well.

Signed-off-by: Ladislav Vaiz <spam@nagano.cz>
Signed-off-by: Nate Bargmann <n0nb@n0nb.us>
2013-05-06 08:35:00 +02:00
Kamal Mostafa 3466512dbd Fix spelling errors 2012-08-21 19:54:50 -07:00
Stephane Fillod 3d93b8ccbb win32termios: fix warnings found by w64-mingw32 4.6.x, plus misc rxtx update 2012-06-23 16:43:09 +02:00
Stephane Fillod 874ca8c79d allow seamless access to ports higher than COM9 2012-06-23 16:40:29 +02:00
Stephane Fillod fb43df0ba6 Properly detect getaddrinfo() under newer mingw-w64 2012-06-23 16:16:12 +02:00
Stephane Fillod 9646b90a28 win32termios: remove deadwood & keep naming space tidy 2012-01-30 23:39:16 +01:00
Nate Bargmann c7e64dfa09 Update LGPL/GPL header in lib source files.
TNX to Lucian Laga, YO6PLB, for the notification.
2011-08-22 21:38:36 -05:00
Stéphane Fillod, F8CFE 41de3bef9c mingw portability
git-svn-id: https://hamlib.svn.sourceforge.net/svnroot/hamlib/trunk@2908 7ae35d74-ebe9-4afe-98af-79ac388436b8
2010-05-05 19:55:13 +00:00
Stéphane Fillod, F8CFE 6ee58f0bff get ready for IPv6
git-svn-id: https://hamlib.svn.sourceforge.net/svnroot/hamlib/trunk@2883 7ae35d74-ebe9-4afe-98af-79ac388436b8
2010-04-16 20:50:14 +00:00
Stéphane Fillod, F8CFE d0ae3ed6b7 fix DEBUG_VERBOSE code
git-svn-id: https://hamlib.svn.sourceforge.net/svnroot/hamlib/trunk@2645 7ae35d74-ebe9-4afe-98af-79ac388436b8
2009-02-20 12:22:52 +00:00
Thomas Beierlein, DL1JBE c6f356914b Add dummy() function to libmisc.a so that that library will never be empty.
OpenSolaris linker does not like empty libs.


git-svn-id: https://hamlib.svn.sourceforge.net/svnroot/hamlib/trunk@2494 7ae35d74-ebe9-4afe-98af-79ac388436b8
2008-12-08 19:54:06 +00:00
Stéphane Fillod, F8CFE c9df61f699 update from rxtx-2.1-7
git-svn-id: https://hamlib.svn.sourceforge.net/svnroot/hamlib/trunk@2471 7ae35d74-ebe9-4afe-98af-79ac388436b8
2008-11-05 23:00:20 +00:00
Stéphane Fillod, F8CFE c08cc78724 Fixes for BRK/RTS/DTR handling under win32
git-svn-id: https://hamlib.svn.sourceforge.net/svnroot/hamlib/trunk@1782 7ae35d74-ebe9-4afe-98af-79ac388436b8
2004-08-01 23:13:17 +00:00
Stéphane Fillod, F8CFE 5c9e225125 gr_pwin32.m4/config.h fixes
git-svn-id: https://hamlib.svn.sourceforge.net/svnroot/hamlib/trunk@1602 7ae35d74-ebe9-4afe-98af-79ac388436b8
2003-11-16 22:15:38 +00:00
Stéphane Fillod, F8CFE d003253de2 various hacks to make win32_serial_select to work (notify read)
git-svn-id: https://hamlib.svn.sourceforge.net/svnroot/hamlib/trunk@1563 7ae35d74-ebe9-4afe-98af-79ac388436b8
2003-10-17 22:53:54 +00:00
Stéphane Fillod, F8CFE bc8b5a3fe4 mingw/cygwin fixes
git-svn-id: https://hamlib.svn.sourceforge.net/svnroot/hamlib/trunk@1513 7ae35d74-ebe9-4afe-98af-79ac388436b8
2003-08-20 07:22:40 +00:00
Stéphane Fillod, F8CFE 0dced917ad gettimeofday replacement for WIN32
git-svn-id: https://hamlib.svn.sourceforge.net/svnroot/hamlib/trunk@1509 7ae35d74-ebe9-4afe-98af-79ac388436b8
2003-08-17 22:33:37 +00:00
Stéphane Fillod, F8CFE 0b1c8b1c82 win32 support
git-svn-id: https://hamlib.svn.sourceforge.net/svnroot/hamlib/trunk@1505 7ae35d74-ebe9-4afe-98af-79ac388436b8
2003-08-15 01:16:46 +00:00
Stéphane Fillod, F8CFE d4e34e5f9d added termios replacement for win32
git-svn-id: https://hamlib.svn.sourceforge.net/svnroot/hamlib/trunk@1504 7ae35d74-ebe9-4afe-98af-79ac388436b8
2003-08-15 01:15:45 +00:00