diff options
author | ache <ache@FreeBSD.org> | 1995-08-04 06:39:55 +0000 |
---|---|---|
committer | ache <ache@FreeBSD.org> | 1995-08-04 06:39:55 +0000 |
commit | 3631ae6f9fa6aab4f69713033cb5e239255f334c (patch) | |
tree | 9966d69ef185705cb895e2b15d43330077c512f7 /lib/libtermcap/termcap.h | |
parent | 060942c07e02758de7d13b7001005b172a7650f7 (diff) | |
download | FreeBSD-src-3631ae6f9fa6aab4f69713033cb5e239255f334c.zip FreeBSD-src-3631ae6f9fa6aab4f69713033cb5e239255f334c.tar.gz |
Add non-standard function: _set_ospeed(speed)
Basically all termios+termcap pgms needs it.
It set ospeed variable using nearest-matched stty speeds,
which helps termcap pgms works with non-fixed termios speeds
and not duplicate ospeed switch into every pgm.
Also it isn't standard function, its source code is too big to include it
in whole to every termcap+termios pgm.
Diffstat (limited to 'lib/libtermcap/termcap.h')
-rw-r--r-- | lib/libtermcap/termcap.h | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/lib/libtermcap/termcap.h b/lib/libtermcap/termcap.h index 7cd1f06..059d573 100644 --- a/lib/libtermcap/termcap.h +++ b/lib/libtermcap/termcap.h @@ -1,5 +1,5 @@ /* - * Copyright (C) 1994 by Andrew A. Chernov, Moscow, Russia. + * Copyright (C) 1994,1995 by Andrey A. Chernov, Moscow, Russia. * All rights reserved. * * Redistribution and use in source and binary forms, with or without @@ -14,7 +14,7 @@ * THIS SOFTWARE IS PROVIDED BY THE AUTHOR ``AS IS'' AND * ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE - * ARE DISCLAIMED. IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE + * ARE DISCLAIMED. IN NO EVENT SHALL THE AUTHOR BE LIABLE * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) @@ -24,7 +24,7 @@ * SUCH DAMAGE. */ -/* $Id: termcap.h,v 1.3 1994/12/09 21:55:52 ache Exp $ */ +/* $Id: termcap.h,v 1.4 1994/12/10 22:01:25 ache Exp $ */ #ifndef _TERMCAP_H_ #define _TERMCAP_H_ @@ -46,6 +46,8 @@ extern int tputs __P((const char *, int, int (*)(int))); extern char *tgoto __P((const char *, int, int)); extern char *tparm __P((const char *, ...)); +extern void _set_ospeed __P((long speed)); + __END_DECLS #endif /* _TERMCAP_H_ */ |