summaryrefslogtreecommitdiffstats
path: root/sbin/ldattach (follow)
Commit message (Collapse)AuthorAgeFilesLines
* When system calls indicate an error they return -1, not some arbitraryderaadt2019-06-281-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.
* redundant, gets BINDIR from ../Makefile.incespie2017-06-121-3/+1
|
* Different compilers and versions of compilers have different warnings.jsg2017-04-161-2/+2
| | | | | | Remove -Werror to give code a greater chance of building. ok deraadt@ florian@
* Remove leftovers of line disciplines that are no more.mpi2016-11-261-7/+2
| | | | ok mikeb@
* I bet the reference to <sys/ttycom.h> near the ldisc list in tty(4)deraadt2015-01-151-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
* no more sl(4);jmc2014-10-021-3/+2
|
* Remove some sl(4) references.mpi2014-10-011-6/+2
|
* msts(4) appears to support TIOCSTSTAMPguenther2014-08-101-1/+2
| | | | From Maurice Janssen (maurice (at) z74.net)
* replace sys/param.h with sys/types.h (and sometimes add limits.h if needed)deraadt2012-12-041-2/+3
| | | | ok guenther
* Define empty CDIAGFLAGS for programs that use Werror.haesbaert2012-09-121-1/+2
| | | | | | Makes "make build" build with WARNINGS=Yes on amd64. ok espie
* list offset should be "indent", not "-indent";jmc2010-04-061-3/+3
|
* -indet is not a valid .Bl option, it should be -indent. But what mandoc(1)deraadt2010-04-051-3/+3
| | | | | did was spit that out on the next line of output, without warning, which is a bug in mandoc(1)...
* If the nmea(4) or endrun(4) timing disciplines are selected ignore statusckuethe2009-10-311-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
* poll events must be reinitialized after each call to poll. fixesckuethe2009-10-281-4/+4
| | | | | ldattach exiting when relaying (nmea to gpsd, for example). ok deraadt@
* .Xr endrun 4stevesk2009-05-061-1/+2
| | | | spotted by jmc@
* endrun(4) - EndRun Technologies native time-of-day message timedeltastevesk2009-05-062-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
* Initialize the tty in the same way for nmea and slip.mbalmer2008-06-121-6/+2
|
* Explicit flush stdout after printing the pty name when -p is used.mbalmer2008-06-111-1/+2
| | | | found by ckuethe, help from otto.
* sleep if the slave device of the pty(4) is not connected.mbalmer2008-06-101-3/+8
| | | | problem noticed by ckuethe, solution discussed with claudio
* correctly setup the tty line for NMEA devices, especially turn off echombalmer2008-06-101-1/+5
| | | | | | to the device. found by ckuethe, fixed and tested with ckuethe
* Don't reverence slattach(8) or nmeaattach(8) in a comment.mbalmer2008-06-091-3/+4
|
* zap trailing whitespace;jmc2008-06-091-3/+3
|
* Add the '-p' option to ldattach(8) to pass data received from the devicembalmer2008-06-095-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.
* Log an error if a device can not be opened, only log line discipline attachmentmbalmer2008-02-282-6/+10
| | | | when the line discipline has really been attached. And a few manual tweaks.
* Add support for the Meinberg Standard Time String format that all Meinbergmbalmer2008-01-052-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
* zap trailing whitespace;jmc2007-11-131-2/+2
|
* Do not set explicit com parameters for the tty, instead use the exisitingmbalmer2007-11-132-55/+74
| | | | | | | ones and onl change what the user requests. Do not artifically limit the baudrates. prodding and ok by deraadt.
* document different types for "device" and improve startup description;jmc2007-11-031-8/+16
| | | | | | this is really an mbalmer diff, tweaked by myself ok deraadt mbalmer
* 4800deraadt2007-11-031-2/+2
|
* tweaks;jmc2007-11-031-3/+3
|
* use tty01 and mention the baud rate issuederaadt2007-11-031-3/+4
|
* Correct bad example, in /etc/ttys use the _tty_ not _cua_, of course.mbalmer2007-11-031-3/+3
| | | | spottet by deraadt.
* lintderaadt2007-11-031-8/+9
|
* ldattach(8) is a command to attach line discipline to a tty line. It canmbalmer2007-11-033-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