]> xenbits.xensource.com Git - unikraft/libs/newlib.git/commitdiff
Adapt termios.h headers to newlib glue code
authorCostin Lupu <costin.lupu@cs.pub.ro>
Mon, 5 Aug 2019 15:17:48 +0000 (18:17 +0300)
committerFelipe Huici <felipe.huici@neclab.eu>
Wed, 14 Aug 2019 11:40:15 +0000 (13:40 +0200)
Signed-off-by: Costin Lupu <costin.lupu@cs.pub.ro>
Reviewed-by: Felipe Huici <felipe.huici@neclab.eu>
musl-imported/arch/generic/bits/termios.h
musl-imported/include/termios.h

index ec6e74fcf4bb3064960a9c931494a6958d727ca9..cbfc6219bc5bc2047cf029df197dff9011f42ee3 100644 (file)
  */
 /* Taken from musl */
 
-typedef unsigned char cc_t;
-typedef unsigned int speed_t;
-typedef unsigned int tcflag_t;
-#define NCCS 32
-
 struct termios {
        tcflag_t c_iflag;
        tcflag_t c_oflag;
index d73c780d41a4270f1665658b6c4f7d62b792780a..5dd5c4efc06264be720307bda84845712e8b1c7b 100644 (file)
@@ -1,3 +1,27 @@
+/* SPDX-License-Identifier: MIT */
+/* ----------------------------------------------------------------------
+ * Copyright © 2005-2014 Rich Felker, et al.
+ *
+ * Permission is hereby granted, free of charge, to any person obtaining
+ * a copy of this software and associated documentation files (the
+ * "Software"), to deal in the Software without restriction, including
+ * without limitation the rights to use, copy, modify, merge, publish,
+ * distribute, sublicense, and/or sell copies of the Software, and to
+ * permit persons to whom the Software is furnished to do so, subject to
+ * the following conditions:
+ *
+ * The above copyright notice and this permission notice shall be
+ * included in all copies or substantial portions of the Software.
+ *
+ * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
+ * EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
+ * MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.
+ * IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY
+ * CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT,
+ * TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE
+ * SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
+ * ----------------------------------------------------------------------
+ */
 #ifndef        _TERMIOS_H
 #define        _TERMIOS_H
 
@@ -5,11 +29,7 @@
 extern "C" {
 #endif
 
-#include <features.h>
-
-#define __NEED_pid_t
-
-#include <bits/alltypes.h>
+#include <sys/types.h>
 
 typedef unsigned char cc_t;
 typedef unsigned int speed_t;