summaryrefslogtreecommitdiffstats
path: root/sys/kern/tty_msts.c (follow)
Commit message (Collapse)AuthorAgeFilesLines
* Remove almost unused `flags' argument of suser().mpi2018-02-191-2/+2
| | | | | | | The account flag `ASU' will no longer be set but that makes suser() mpsafe since it no longer mess with a per-process field. No objection from millert@, ok tedu@, bluhm@
* Move ppp, nmea, endrun, and msts prototypes to tty.hsf2015-12-211-4/+1
| | | | | | | Fix inconsistent arguments for pppopen/pppclose/pppstart. Use passed in argument p in pppopen instead of curproc. "Looks good to me" deraadt@
* pass size argument to free()deraadt2014-11-031-3/+3
| | | | ok doug tedu
* remove uneeded proc.h includesjsg2014-09-141-2/+1
| | | | ok mpi@ kspillner@
* add a size argument to free. will be used soon, but for now default to 0.tedu2014-07-121-3/+3
| | | | after discussions with beck deraadt kettenis.
* Some of the line disciplines want to check for suser. Better to pass themtedu2010-04-121-8/+7
| | | | a process instead of using curproc. ok deraadt
* Add some extra protection against non-monotonic timestamps. ok steveskckuethe2009-06-021-4/+9
|
* remove erroneous fldcnt test. fldcnt can never be 13 here. this isstevesk2009-05-061-3/+2
| | | | apparently a leftover from tty_nmea.c
* don't zero sensor .value and .flags immediately after the allocation w/ M_ZERO; ok deraadtcnst2009-04-261-2/+1
|
* make compile with #define MSTS_DEBUG; ok mbalmer@stevesk2009-01-121-2/+1
|
* 1) remove invalid comment since first field is not message typestevesk2009-01-121-4/+4
| | | | | | | in msts 2) modify debug string to not print first field (which is not the sentence message type) ok mbalmer@
* comment should be epoch not midnight; ok mbalmer@stevesk2009-01-121-2/+2
|
* use #define MAXFLDS vs. 4 here; ok mbalmer@stevesk2009-01-011-2/+2
|
* don't need #include <sys/queue.h>; ok mbalmer@stevesk2008-12-251-2/+1
| | | | CVS ---------------------------------------------------------------------
* remove unused struct member; ok mbalmer@stevesk2008-12-251-2/+1
|
* spelling in comments; ok mbalmer@stevesk2008-12-251-3/+3
|
* Convert timeout_add() calls using multiples of hz to timeout_add_sec()blambert2008-09-101-11/+4
| | | | | | | Really just the low-hanging fruit of (hopefully) forthcoming timeout conversions. ok art@, krw@
* Don't use the reference count to create the sensor name; we can end upmbalmer2008-06-111-3/+6
| | | | | | with sensors with the same name. The sensor name is now ever increasing unless the reference count drops to zero, in which case the naming restarts at zero as well.
* Report the clock status in a signal sensor, like all other timedeltas.mbalmer2008-05-061-2/+14
|
* Degrade the sensor state from OK to WARNING and CRITICAL after periods ofmbalmer2008-01-061-10/+56
| | | | | ten minutes (same behaviour as nmea(4)). If the cable is pulled, the sensor no longer keeps the OK status forever. Tested with a PEX511 as MSTS sender.
* Add support for the Meinberg Standard Time String format that all Meinbergmbalmer2008-01-051-0/+373
radio clocks can transmit over serial ports. This is implemented as a line discipline similar to nmea(4) and provides a timedelta sensor. See http://www.meinberg.de/english/specs/timestr.htm for details on the MSTS format. ldattach(8) is extended to support the "msts" line discipline and two stopbits (which some radio clocks, e.g. the C51 use). Do a "make includes" before your next system build. Initially from Maurice Janssen based on nmea(4). "go for it" deraadt