summaryrefslogtreecommitdiff
path: root/serial.c
Commit message (Collapse)AuthorAgeFilesLines
* Cleaned up, improved sourcetype() code. All regression tests pass.Eric S. Raymond2015-01-231-0/+46
|
* Handle lack of TIOCEXCL and TIOCNXCL on cygwinMatt2014-09-061-0/+4
| | | | | The cygwin headers don't seem to define these. We can still attempt to work without them.
* Now that the transition is done we can restore the gpsd_report name.Eric S. Raymond2014-08-271-14/+14
| | | | All regression tests pass.
* The big leap. Most instances of gpsd_report are replaced...Eric S. Raymond2014-08-271-14/+14
| | | | | | | | | | | | | | | | ...with calls to gps_notify(), which indirects to its output method through a slot in an errout structure. Usually the errout structure lives inside the session context, but because struct errout_t is its own thing this does not have to be the case. One large clique of gpsd_notify() calls, in packet.c and isgps.c, looks at a struct errout_t copy in a lexer control block This change is not complete. Remnant gpsd_report calls need to be changed, and gpsmon needs to be tweaked so that the struct_error_t in its context is a non-defaukt hook updating the cuses display rather than simply dumping to stderr. Also the report label functionality needs to be added. All regression tests pass.
* Introduce struct errout_t to encapsulate error-reporting hooks.Eric S. Raymond2014-08-271-15/+15
| | | | | | A major step towards eliminating reverse linkage. All regression tests pass.
* Structure member name change: packet -> lexer. No logic changes.Eric S. Raymond2014-08-271-4/+4
| | | | All regression tests pass.
* Move and improve a comment.Eric S. Raymond2013-11-271-1/+4
|
* Fix a minor layerring violation. All regression tests pass.Eric S. Raymond2013-10-301-7/+0
|
* Make all hex-dumping truly thread-safe.Eric S. Raymond2013-10-131-2/+5
|
* splint cleanup.Eric S. Raymond2013-10-091-4/+4
|
* Give drivers a way to query the currewntly set stopbits and parity.Eric S. Raymond2013-10-081-0/+20
|
* We can now monitor low-level string sends through gpsmon.Eric S. Raymond2013-10-041-1/+2
| | | | Now we'll know exactly what's being sent on a UBX mode change.
* Change gpsd_report to no longer use a global. All regression tests pass.Eric S. Raymond2013-09-291-15/+24
| | | | | | | | This is a large, ugly change. But without it we can't troubleshoot the ICP/IP-source initialization bug properly - colliding definitions of gpsd_report() were interfering with error reporting early in gpsd runs. More cleanup work remains to be done, but at least this is working.
* cppcheck ckeanup. All regression tests pass.Eric S. Raymond2013-09-171-1/+1
|
* Some GPSes use the USB ACM driver (/dev/ttyACM*, major number 166) on Linux.Michael Tatarinov2013-09-041-3/+3
| | | | | This patch makes them classify as USB source and fixes typos for bluetooth device.
* Move an assignment to pacify splint.Eric S. Raymond2013-05-011-1/+1
|
* Clean up more static-analysis warnings.Eric S. Raymond2013-04-301-6/+4
|
* Don't check exclusion for bluetooth devices.Michael Tatarinov2012-10-101-1/+3
| | | | Signed-off-by: Eric S. Raymond <esr@thyrsus.com>
* Lose the assumption that socket_t is an integer.Eric S. Raymond2012-09-221-1/+1
|
* gpsd_get_speed_old usage was lost on exitJon Schlueter2012-09-091-1/+1
| | | | | | | in the gpsd_get_speed conversion where we lost resetting the speed to the old speed on exit in serial.c Signed-off-by: Eric S. Raymond <esr@thyrsus.com>
* Nuke trailing whitespace in C source.Eric S. Raymond2012-09-071-9/+9
|
* Change the API so the yermios strucytture is not publicly exposed.Eric S. Raymond2012-09-071-3/+13
| | | | | | | | Becauser this changed the libgpsd API but not the libgps one, libgpsd now has its own version number. (Doing otherwise would have inflicted a gratuitous binary-compatibility break on application developers). All regression tests pass. Audit check runs clean.
* Minor cleanup for bluez code suggested by ukyg9e5r6k7gubiekd6,Eric S. Raymond2012-09-071-2/+2
|
* Clean up initial rate-setting when port speeits are fixed.Eric S. Raymond2012-09-051-2/+14
|
* Accept Freescale UARTS as RS232 devices.Stephen Cavilia2012-06-221-1/+2
| | | | | | | The on-chip UARTs on Freescale i.MX processors use device names /dev/ttymxc[012] and major number 207 on linux. These will get classified as an unknown source type by gpsd. Attached patch makes them classify as standard RS232 devices.
* Make sure an invariant is preserved.Eric S. Raymond2012-06-201-1/+1
|
* Split gpsd_hexdump() so AIS dumping will be invertible.Eric S. Raymond2012-06-201-1/+1
|
* splint gets confused by declarations after statements.Eric S. Raymond2012-06-191-1/+3
|
* More cppcheck warning fixups. All regression tests pass.Eric S. Raymond2012-05-181-0/+1
|
* Typo fix.Eric S. Raymond2012-05-071-1/+1
|
* Attempt to fix the Bluetooth socket leak reported by Eckhart Woerner.Eric S. Raymond2012-02-261-0/+1
|
* Added B230400 as a baud rate.Eric S. Raymond2012-02-171-5/+9
| | | | I didn't know the termios.h standard set went that high!
* serial: use cfgetispeed helpersManuel Lauss2012-01-131-8/+1
| | | | | | | | | | Rather than poking c_ispeed directly, use the cfgetispeed helper. This is part of POSIX, and we already use cfsetispeed, so there shouldn't be any portability issues here. Signed-off-by: Manuel Lauss <manuel.lauss@googlemail.com> Signed-off-by: Mike Frysinger <vapier@gentoo.org> Signed-off-by: Eric S. Raymond <esr@thyrsus.com>
* Try to forestall buggy kernels from holding an exclusion lock...Eric S. Raymond2012-01-101-0/+1
| | | | ...after device close.
* c_ispeed is missing in the termios struct on some architectures.Bernd Zeimetz2011-11-141-0/+7
| | | | So set the serial parameters always in case we can't read c_ispeed.
* Verified fix for Savannah bug #34562: error in json encoded device list.Eric S. Raymond2011-10-241-0/+5
|
* Attempted fix for Savannah bug #34562: error in json encoded device list.Eric S. Raymond2011-10-231-1/+9
|
* Don't try to revert serial parameters on exit if we didn't have to change them.Eric S. Raymond2011-10-121-8/+16
|
* Fix up fusercount() to work correctly.Eric S. Raymond2011-08-231-6/+4
|
* Now that fusecount() is working, it turns out to be dangerous. Disable it...Eric S. Raymond2011-08-231-5/+5
| | | | ...until we figure out what's going on. All regression tests pass.
* Fix some coding errors in fusercount().Eric S. Raymond2011-08-231-2/+3
|
* Add fixed_stop_bits option.Eric S. Raymond2011-06-221-1/+10
|
* Improve the code for making sensor data and command strings visible...Eric S. Raymond2011-06-171-2/+2
| | | | | ...and remove some const declarations that could have spelled trouble in the future.
* Remove gpsd_hexdump_wrapper() from everything outside the packet sniffer.Eric S. Raymond2011-06-171-3/+4
|
* Code slimming.Eric S. Raymond2011-06-111-4/+1
|
* Fix the minimal build.Eric S. Raymond2011-03-291-1/+1
|
* Squeeze out some more code in the fixed-port-speed case.Eric S. Raymond2011-03-291-0/+10
|
* Documentation update. All regression tests pass.Eric S. Raymond2011-03-241-1/+1
|
* Try to move NTP link activation and deactivation up to the disparcher layer.Eric S. Raymond2011-03-241-16/+0
|
* Give timestamps their own typedef. No logic changes.Eric S. Raymond2011-03-101-1/+1
| | | | All regression tests pass, splint and cppcheck pass.