summaryrefslogtreecommitdiff
path: root/lib/libc/hidden
diff options
context:
space:
mode:
authorPhilip Guenther <guenther@cvs.openbsd.org>2015-09-13 11:51:37 +0000
committerPhilip Guenther <guenther@cvs.openbsd.org>2015-09-13 11:51:37 +0000
commit9d9da10cbafc3233fdc3d04a709f40c12cd832b5 (patch)
tree5c3dd02de33a995f9fb5e65e40fddc682d4881fe /lib/libc/hidden
parente29215cbd30e884cf33b41fec8e1e87ef4a60909 (diff)
Wrap <termios.h> so that calls go direct and the symbols are all weak.
Diffstat (limited to 'lib/libc/hidden')
-rw-r--r--lib/libc/hidden/termios.h37
1 files changed, 37 insertions, 0 deletions
diff --git a/lib/libc/hidden/termios.h b/lib/libc/hidden/termios.h
new file mode 100644
index 00000000000..2c6420036eb
--- /dev/null
+++ b/lib/libc/hidden/termios.h
@@ -0,0 +1,37 @@
+/* $OpenBSD: termios.h,v 1.1 2015/09/13 11:51:36 guenther Exp $ */
+/*
+ * Copyright (c) 2015 Philip Guenther <guenther@openbsd.org>
+ *
+ * Permission to use, copy, modify, and distribute this software for any
+ * purpose with or without fee is hereby granted, provided that the above
+ * copyright notice and this permission notice appear in all copies.
+ *
+ * THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES
+ * WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF
+ * MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR
+ * ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES
+ * WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN
+ * ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF
+ * OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
+ */
+
+#ifndef _LIBC_TERMIOS_H_
+#define _LIBC_TERMIOS_H_
+
+#include_next <termios.h>
+
+PROTO_DEPRECATED(cfgetispeed);
+PROTO_DEPRECATED(cfgetospeed);
+PROTO_DEPRECATED(cfmakeraw);
+PROTO_DEPRECATED(cfsetispeed);
+PROTO_DEPRECATED(cfsetospeed);
+PROTO_DEPRECATED(cfsetspeed);
+/*PROTO_CANCEL(tcdrain);*/
+PROTO_DEPRECATED(tcflow);
+PROTO_DEPRECATED(tcflush);
+PROTO_NORMAL(tcgetattr);
+PROTO_DEPRECATED(tcgetsid);
+PROTO_DEPRECATED(tcsendbreak);
+PROTO_NORMAL(tcsetattr);
+
+#endif /* !_LIBC_TERMIOS_H_ */