aboutsummaryrefslogtreecommitdiffstats
path: root/com32/include
diff options
context:
space:
mode:
authorhpa <hpa>2004-12-20 22:28:30 +0000
committerhpa <hpa>2004-12-20 22:28:30 +0000
commit27007ae32a1244db12ba1e8e12352785075010a1 (patch)
tree39fc9205d1802525778e58db95ad853ee4678d01 /com32/include
parentf22543d9d32c3866b6d42392c2957c6c76098964 (diff)
downloadsyslinux-27007ae32a1244db12ba1e8e12352785075010a1.tar.gz
syslinux-27007ae32a1244db12ba1e8e12352785075010a1.tar.xz
syslinux-27007ae32a1244db12ba1e8e12352785075010a1.zip
Make the raw input console non-blocking with a timeout, allows handling
the [Esc] key.
Diffstat (limited to 'com32/include')
-rw-r--r--com32/include/sys/times.h21
1 files changed, 21 insertions, 0 deletions
diff --git a/com32/include/sys/times.h b/com32/include/sys/times.h
new file mode 100644
index 00000000..173efe2a
--- /dev/null
+++ b/com32/include/sys/times.h
@@ -0,0 +1,21 @@
+/*
+ * sys/times.h
+ */
+
+#ifndef _SYS_TIMES_H
+#define _SYS_TIMES_H
+
+#include <stdint.h>
+
+struct tms {
+ /* Empty */
+};
+
+#define HZ 18 /* Piddly resolution... */
+#define CLK_TCK HZ
+
+typedef uint16_t clock_t;
+
+clock_t times(struct tms *);
+
+#endif /* _SYS_TIMES_H */