aboutsummaryrefslogtreecommitdiff
path: root/sys/tty/ttygetb.x
diff options
context:
space:
mode:
Diffstat (limited to 'sys/tty/ttygetb.x')
-rw-r--r--sys/tty/ttygetb.x15
1 files changed, 15 insertions, 0 deletions
diff --git a/sys/tty/ttygetb.x b/sys/tty/ttygetb.x
new file mode 100644
index 00000000..8c6fdbd4
--- /dev/null
+++ b/sys/tty/ttygetb.x
@@ -0,0 +1,15 @@
+# Copyright(c) 1986 Association of Universities for Research in Astronomy Inc.
+
+# TTYGETB -- Determine whether or not a capability exists for a device.
+# If there is any entry at all, the capability exists.
+
+bool procedure ttygetb (tty, cap)
+
+pointer tty # tty descriptor
+char cap[ARB] # two character capability name
+pointer ip
+int tty_find_capability()
+
+begin
+ return (tty_find_capability (tty, cap, ip) == YES)
+end