|ENDRUN(4)||Device Drivers Manual||ENDRUN(4)|
The line discipline is enabled by the following sequence:
#include <sys/ioctl.h> int ldisc = ENDRUNDISC, fildes; ... ioctl(fildes, TIOCSETD, &ldisc);
The byte stream is unaltered by the line discipline which maintains a timedelta sensor using the EndRun data. The timedelta sensor will appear as endrun* in the list of sensors and the delta (in nanoseconds) between the received time information and the local time can be accessed through the sysctl(8) interface.
The status of a second sensor is used to report the status of the device itself using the Time Figure Of Merit (TFOM) character:
endruninterface first appeared in OpenBSD 4.6.
|January 15, 2015||OpenBSD-current|