[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Minios-devel] [UNIKRAFT/NEWLIB PATCH 5/8] Import termios.h from musl


  • To: minios-devel@xxxxxxxxxxxxx
  • From: Costin Lupu <costin.lupu@xxxxxxxxx>
  • Date: Mon, 5 Aug 2019 18:17:47 +0300
  • Cc: felipe.huici@xxxxxxxxx, simon.kuenzer@xxxxxxxxx, sharan.santhanam@xxxxxxxxx
  • Delivery-date: Mon, 05 Aug 2019 15:18:06 +0000
  • Ironport-phdr: 9a23:KmfY7hZ3hGg/wZjJBUs+7hT/LSx+4OfEezUN459isYplN5qZrsW6bnLW6fgltlLVR4KTs6sC17OM9fm4BidQut6oizMrSNR0TRgLiMEbzUQLIfWuLgnFFsPsdDEwB89YVVVorDmROElRH9viNRWJ+iXhpTEdFQ/iOgVrO+/7BpDdj9it1+C15pbffxhEiCCybL9vMhm6txjdutUUjIdtKas8xAbCr2dVdehR2W5mP0+YkQzm5se38p5j8iBQtOwk+sVdT6j0fLk2QKJBAjg+PG87+MPktR/YTQuS/XQcSXkZkgBJAwfe8h73WIr6vzbguep83CmaOtD2TawxVD+/4apnVAPkhSEaPDM/7WrZiNF/jLhDrRyhuRJx3oDaboKSOvV8cKPQZs8WSXZbU8pNTSFNHp+wYo0SBOQBJ+ZYqIz9qkMQoBu5HgmsGOLvyjlVjXHwwK06y/khGhzB0QM8GNIOq2jUrNTzNKsIVeC10bHIzSjYYvxKwjfx8pDIcg06rv2WR7JwdtPcxE8yHA3LiVWQrJbqPzKT1ukVtmib8vFgVea2h24jqgF+uSSgyt0rionTiYIYzE3P+yZhwIstONG1R1N3bcSnHZZQrS2WKZV6T8E4T2xmoCo217ILtYOhcCUJyJkr3QDTZvKJfoSS/x7uW/idLDFlj3x/Yr2/nQy98U24x+35Ucm7zUhFozJektnJqnANzxvT6tWbSvdl/keuxzKP1wfL5+FaJEA7j6vbK5o7zrEsjZofq1zDHjLtl0nslq+WcV0o+umu6+v5frXrvoKQOoBphg3kMakjmtazDfomPgUMRWSW9/yw1Lj58k34RLVKgOc2kq7csJ3COcsbobW5AxNU0oYl8Rq/Cyqm0MwFnXQcMF1FYwiLj5D0O17VOvz4F/C/j0y2kDh33/DGIqHhApLVI3jGkbfhe7d960lHyAYq0N9Q+YxUBa8FIP/oXk/xtcfYDgMiMwCuzOfoFtN92pkZWWKVDa+TKLnSvkOQ5uIzP+mMY5cYuDjjJPgh5v7ulWE2lUUdfam03JsYdHG4E+9gI0qHfXXshs0OHnwQsgUgUezgkEeCXiJLZ3auQ6I84Sk2CJmmDYjZXICimrqB0D2gHpJMYGBGFlCMHm3ud4qeXvcBcySSLdF9nTwAT7euUJUt2g+ztAXi0bpoMvLU+jEEtZLkzNV1/OzTlRQ19TxyFcid0HyNQH9ynmIJWTA2xrtyoUpjxVif1ah3medXGcZN6PNUAU8GMsvZzup7DMu3Vg/fc9OhTFe9Xs7gETw3CNUrzIwgeUF4Tv6llQzC2WKOHqcI3+iAA4co86Sa22XpOu520DDeyaNnlV5wEZgHDnGvmqMqr1ubPIXOiUjMz6s=
  • Ironport-sdr: qUTd9LZ3vIlP4EyNO+bdIXemoMiuKa4A6ktCyswpFLpyRtfcQH0vYnFEjN2dRqZkJpvhHCftk3 tTle7D04I8Lg==
  • List-id: Mini-os development list <minios-devel.lists.xenproject.org>

Copied as is from official musl git mirror
git://git.musl-libc.org/musl, commit 6fcb440d.

Original file locations:
* include/termios.h

Signed-off-by: Costin Lupu <costin.lupu@xxxxxxxxx>
---
 musl-imported/include/termios.h | 46 +++++++++++++++++++++++++++++++++
 1 file changed, 46 insertions(+)
 create mode 100644 musl-imported/include/termios.h

diff --git a/musl-imported/include/termios.h b/musl-imported/include/termios.h
new file mode 100644
index 0000000..d73c780
--- /dev/null
+++ b/musl-imported/include/termios.h
@@ -0,0 +1,46 @@
+#ifndef        _TERMIOS_H
+#define        _TERMIOS_H
+
+#ifdef __cplusplus
+extern "C" {
+#endif
+
+#include <features.h>
+
+#define __NEED_pid_t
+
+#include <bits/alltypes.h>
+
+typedef unsigned char cc_t;
+typedef unsigned int speed_t;
+typedef unsigned int tcflag_t;
+
+#define NCCS 32
+
+#include <bits/termios.h>
+
+speed_t cfgetospeed (const struct termios *);
+speed_t cfgetispeed (const struct termios *);
+int cfsetospeed (struct termios *, speed_t);
+int cfsetispeed (struct termios *, speed_t);
+
+int tcgetattr (int, struct termios *);
+int tcsetattr (int, int, const struct termios *);
+
+int tcsendbreak (int, int);
+int tcdrain (int);
+int tcflush (int, int);
+int tcflow (int, int);
+
+pid_t tcgetsid (int);
+
+#if defined(_GNU_SOURCE) || defined(_BSD_SOURCE)
+void cfmakeraw(struct termios *);
+int cfsetspeed(struct termios *, speed_t);
+#endif
+
+#ifdef __cplusplus
+}
+#endif
+
+#endif
-- 
2.20.1


_______________________________________________
Minios-devel mailing list
Minios-devel@xxxxxxxxxxxxxxxxxxxx
https://lists.xenproject.org/mailman/listinfo/minios-devel

 


Rackspace

Lists.xenproject.org is hosted with RackSpace, monitoring our
servers 24x7x365 and backed by RackSpace's Fanatical Support®.