remove duplicate includes
Delete obsolete /* ARGSUSED */ lint comments.ok miod@ millert@
When system calls indicate an error they return -1, not some arbitraryvalue < 0. errno is only updated in this case. Change all (most?)callers of syscalls to follow this better, and let's see if
When system calls indicate an error they return -1, not some arbitraryvalue < 0. errno is only updated in this case. Change all (most?)callers of syscalls to follow this better, and let's see if this strictnesshelps us in the future.
show more ...
redundant, gets BINDIR from ../Makefile.inc
Different compilers and versions of compilers have different warnings.Remove -Werror to give code a greater chance of building.ok deraadt@ florian@
Remove leftovers of line disciplines that are no more.ok mikeb@
I bet the reference to <sys/ttycom.h> near the ldisc list in tty(4)led this program and the associated manual pages to including thatfile directly, rather than the canonical include path of <sys/io
I bet the reference to <sys/ttycom.h> near the ldisc list in tty(4)led this program and the associated manual pages to including thatfile directly, rather than the canonical include path of <sys/ioctl.h>discussed with millert
no more sl(4);
Remove some sl(4) references.
msts(4) appears to support TIOCSTSTAMPFrom Maurice Janssen (maurice (at) z74.net)
replace sys/param.h with sys/types.h (and sometimes add limits.h if needed)ok guenther
Define empty CDIAGFLAGS for programs that use Werror.Makes "make build" build with WARNINGS=Yes on amd64.ok espie
list offset should be "indent", not "-indent";
-indet is not a valid .Bl option, it should be -indent. But what mandoc(1)did was spit that out on the next line of output, without warning, whichis a bug in mandoc(1)...
If the nmea(4) or endrun(4) timing disciplines are selected ignore statuslines; this prevents poll(2) from saying the fd has data to be read, whenit only had a status line change. Prevents ldattach
If the nmea(4) or endrun(4) timing disciplines are selected ignore statuslines; this prevents poll(2) from saying the fd has data to be read, whenit only had a status line change. Prevents ldattach from exiting whenrelaying data to gpsd while being driven by a gps with 1PPS.ok deraadt
poll events must be reinitialized after each call to poll. fixesldattach exiting when relaying (nmea to gpsd, for example).ok deraadt@
.Xr endrun 4spotted by jmc@
endrun(4) - EndRun Technologies native time-of-day message timedeltasensor. Based on msts(4). Tested with Praecis Ct(http://www.endruntechnologies.com/network-time-source.htm).help and feedback
endrun(4) - EndRun Technologies native time-of-day message timedeltasensor. 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.
Explicit flush stdout after printing the pty name when -p is used.found by ckuethe, help from otto.
sleep if the slave device of the pty(4) is not connected.problem noticed by ckuethe, solution discussed with claudio
correctly setup the tty line for NMEA devices, especially turn off echoto the device.found by ckuethe, fixed and tested with ckuethe
Don't reverence slattach(8) or nmeaattach(8) in a comment.
zap trailing whitespace;
Add the '-p' option to ldattach(8) to pass data received from the deviceto the master device of a pty(4) pair. The name of the slave device iswritten to standard output.This is useful for applic
Add the '-p' option to ldattach(8) to pass data received from the deviceto the master device of a pty(4) pair. The name of the slave device iswritten to standard output.This is useful for applications like e.g. gpsd from the misc/gpsd portthat also use the serial data stream (e.g. nmea(4) as a time source andgpsd to get at positional data).help and ok deraadt, makes ckuethe happy.
12