diff options
author | Theo de Raadt <deraadt@cvs.openbsd.org> | 2006-04-27 19:30:29 +0000 |
---|---|---|
committer | Theo de Raadt <deraadt@cvs.openbsd.org> | 2006-04-27 19:30:29 +0000 |
commit | a15426ecd54ac6bd38f84c977ce6e8dd09f7d5cf (patch) | |
tree | d4d7a62f135a86b94cb7e3e5d07c66c18f4712d7 /share/man/man4/tty.4 | |
parent | 17eb13c151eb29a4a105173e61a3c689ddc93077 (diff) |
create a (very simple) method for timestamping CTS & DCD events on ttys,
using ioctl TIOCSTSTAMP & TIOCGTSTAMP. to be used later for gps monitoring
type things; ok kettenis miod
Diffstat (limited to 'share/man/man4/tty.4')
-rw-r--r-- | share/man/man4/tty.4 | 19 |
1 files changed, 18 insertions, 1 deletions
diff --git a/share/man/man4/tty.4 b/share/man/man4/tty.4 index 0964b5790a5..92ab55c0dd6 100644 --- a/share/man/man4/tty.4 +++ b/share/man/man4/tty.4 @@ -1,4 +1,4 @@ -.\" $OpenBSD: tty.4,v 1.25 2005/04/08 19:48:13 jmc Exp $ +.\" $OpenBSD: tty.4,v 1.26 2006/04/27 19:30:27 deraadt Exp $ .\" $NetBSD: tty.4,v 1.4 1996/03/19 04:26:01 paulus Exp $ .\" .\" Copyright (c) 1991, 1992, 1993 @@ -437,6 +437,23 @@ represent modem state as described above; however, each bit which is on in .Fa state is cleared in the terminal. +.It Dv TIOCGTSTAMP Fa struct timeval *timeval +Return the (single) timestamp. +.It Dv TIOCSTSTAMP Fa struct tstamp *tstamps +Chooses the conditions which will cause the current system time to be +immediately copied to the terminal timestamp storage. +This is often used to determine exactly the moment at which one or +more of these events occurred, though only one can be monitored. +Only +.Dv TIOCM_CTS +and +.Dv TIOCM_CAR +are honoured in +.Va tstamps.ts_set +and +.Va tstamps.ts_clr ; +these indicate which raising and lowering events on the respective lines +should cause a timestamp capture. .It Dv TIOCSFLAGS Fa int *state The bits in the integer pointed to by .Fa state |