summaryrefslogtreecommitdiffstats
path: root/sbin/ldattach
AgeCommit message (Collapse)AuthorFilesLines
2019-06-28When system calls indicate an error they return -1, not some arbitraryderaadt1-7/+7
value < 0. errno is only updated in this case. Change all (most?) callers of syscalls to follow this better, and let's see if this strictness helps us in the future.
2017-06-12redundant, gets BINDIR from ../Makefile.incespie1-3/+1
2017-04-16Different compilers and versions of compilers have different warnings.jsg1-2/+2
Remove -Werror to give code a greater chance of building. ok deraadt@ florian@
2016-11-26Remove leftovers of line disciplines that are no more.mpi1-7/+2
ok mikeb@
2015-01-15I bet the reference to <sys/ttycom.h> near the ldisc list in tty(4)deraadt1-2/+2
led this program and the associated manual pages to including that file directly, rather than the canonical include path of <sys/ioctl.h> discussed with millert
2014-10-02no more sl(4);jmc1-3/+2
2014-10-01Remove some sl(4) references.mpi1-6/+2
2014-08-10msts(4) appears to support TIOCSTSTAMPguenther1-1/+2
From Maurice Janssen (maurice (at) z74.net)
2012-12-04replace sys/param.h with sys/types.h (and sometimes add limits.h if needed)deraadt1-2/+3
ok guenther
2012-09-12Define empty CDIAGFLAGS for programs that use Werror.haesbaert1-1/+2
Makes "make build" build with WARNINGS=Yes on amd64. ok espie
2010-04-06list offset should be "indent", not "-indent";jmc1-3/+3
2010-04-05-indet is not a valid .Bl option, it should be -indent. But what mandoc(1)deraadt1-3/+3
did was spit that out on the next line of output, without warning, which is a bug in mandoc(1)...
2009-10-31If the nmea(4) or endrun(4) timing disciplines are selected ignore statusckuethe1-1/+2
lines; this prevents poll(2) from saying the fd has data to be read, when it only had a status line change. Prevents ldattach from exiting when relaying data to gpsd while being driven by a gps with 1PPS. ok deraadt
2009-10-28poll events must be reinitialized after each call to poll. fixesckuethe1-4/+4
ldattach exiting when relaying (nmea to gpsd, for example). ok deraadt@
2009-05-06.Xr endrun 4stevesk1-1/+2
spotted by jmc@
2009-05-06endrun(4) - EndRun Technologies native time-of-day message timedeltastevesk2-7/+16
sensor. Based on msts(4). Tested with Praecis Ct (http://www.endruntechnologies.com/network-time-source.htm). help and feedback mbalmer 'no problem with this sensor going in' deraadt
2008-06-12Initialize the tty in the same way for nmea and slip.mbalmer1-6/+2
2008-06-11Explicit flush stdout after printing the pty name when -p is used.mbalmer1-1/+2
found by ckuethe, help from otto.
2008-06-10sleep if the slave device of the pty(4) is not connected.mbalmer1-3/+8
problem noticed by ckuethe, solution discussed with claudio
2008-06-10correctly setup the tty line for NMEA devices, especially turn off echombalmer1-1/+5
to the device. found by ckuethe, fixed and tested with ckuethe
2008-06-09Don't reverence slattach(8) or nmeaattach(8) in a comment.mbalmer1-3/+4
2008-06-09zap trailing whitespace;jmc1-3/+3
2008-06-09Add the '-p' option to ldattach(8) to pass data received from the devicembalmer5-18/+277
to the master device of a pty(4) pair. The name of the slave device is written to standard output. This is useful for applications like e.g. gpsd from the misc/gpsd port that also use the serial data stream (e.g. nmea(4) as a time source and gpsd to get at positional data). help and ok deraadt, makes ckuethe happy.
2008-02-28Log an error if a device can not be opened, only log line discipline attachmentmbalmer2-6/+10
when the line discipline has really been attached. And a few manual tweaks.
2008-01-05Add support for the Meinberg Standard Time String format that all Meinbergmbalmer2-10/+29
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
2007-11-13zap trailing whitespace;jmc1-2/+2
2007-11-13Do not set explicit com parameters for the tty, instead use the exisitingmbalmer2-55/+74
ones and onl change what the user requests. Do not artifically limit the baudrates. prodding and ok by deraadt.
2007-11-03document different types for "device" and improve startup description;jmc1-8/+16
this is really an mbalmer diff, tweaked by myself ok deraadt mbalmer
2007-11-034800deraadt1-2/+2
2007-11-03tweaks;jmc1-3/+3
2007-11-03use tty01 and mention the baud rate issuederaadt1-3/+4
2007-11-03Correct bad example, in /etc/ttys use the _tty_ not _cua_, of course.mbalmer1-3/+3
spottet by deraadt.
2007-11-03lintderaadt1-8/+9
2007-11-03ldattach(8) is a command to attach line discipline to a tty line. It canmbalmer3-0/+381
be used from the command line or from init(8) by adding an entry to the /etc/ttys file. ldattach(8) can be extended to support new line disciplines. feedback many, ok deraadt, mikeb