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

[Minios-devel] [UNIKRAFT/NEWLIB PATCH 8/8] Adapt tcgetattr.c and tcsetattr.c functions to newlib glue code


  • To: minios-devel@xxxxxxxxxxxxx
  • From: Costin Lupu <costin.lupu@xxxxxxxxx>
  • Date: Mon, 5 Aug 2019 18:17:50 +0300
  • Cc: felipe.huici@xxxxxxxxx, simon.kuenzer@xxxxxxxxx, sharan.santhanam@xxxxxxxxx
  • Delivery-date: Mon, 05 Aug 2019 15:18:12 +0000
  • Ironport-phdr: 9a23:RRao8xXWLC3H+dMoMlpEKPZ1dMfV8LGtZVwlr6E/grcLSJyIuqrYbRGFt8tkgFKBZ4jH8fUM07OQ7/m6HzVYvt3R6zgrS99lb1c9k8IYnggtUoauKHbQC7rUVRE8B9lIT1R//nu2YgB/Ecf6YEDO8DXptWZBUhrwOhBoKevrB4Xck9q41/yo+53Ufg5EmCexbal9IRmrswndrNQajZdgJ6o+yRbErGZDdvhLy29vOV+dhQv36N2q/J5k/SRQuvYh+NBFXK7nYak2TqFWASo/PWwt68LlqRfMTQ2U5nsBSWoWiQZHAxLE7B7hQJj8tDbxu/dn1ymbOc32Sq00WSin4qx2RhLklDsLOjgk+2zRl8d+jr9UoAi5qhJ/3YDafY+bOvl5cKzfc9MVSnZOUMlKWixdG4OxdZcDAvAdMetaqYT2ulsArQG5BQmpHO7i1DhIhmTq3a071eQqDAfI3BE4H9ITrX/Zq8n6NKAJUeCpzanIyy/Pb/dL2Tfl9YjFaQwuoeqWUbJobMre0lMjFxnCjliJr4HuIjCb1vwVvmSG4OdsSPijhm0npg1rvDSj2MUhhpPHi44N11zJ+jh1zJw2KNC4UkJ3f9CpHZVKuy2HOIZ6XMUvSHxytikg0L0Jo5u7cTAPyJQg2hHQdeSKc5ON4hL/TOaRJip4hG59dLK/mRmy9U+gx/XiVsmxyllKry5FnsPQuXAWzRDT8tWHReBn8ke73jaDzwHT6udaLkAojafXNpEszqMqmpcQsUnPBDH6lFv0gaOMeEgo4u2o5P7mYrXiqJ+cLYh0igTmP6syncy/Gvg4MgkIX2SB/eS8yaXj/VDiTbpWlf06iLHZsI3BKsgBvK65BBdZ0pw/5BanEzemzNMYkGECLFJEfhKHjo/pO0rXLP/lE/i/nUqjkDNwyvDCP73hGYnNLmPZnLbuY7l97VRQyA0pzdBQ/5hUEK0OIOrvWk/ts9zVFhE5PBKww+bmENVyyJkSWWKSAq+YLKzSsESF5uQxLOaQYI8aoi3yJ+I76P7zlXU5g0MSfbG13ZsLb3C1Bu9mI0WDbnr2mNgBF30GvhEkQ+zslF2CUSRcZ3CoUKI5/Tw7DpypApvHRo+3m7ONxjm0HoBObGBcFl+MCWvod5mDW/oUcyKSI8phkjsCVbS7SI8hyA+htAn7yrV5NOrZ4SsYuoz/29hx/eLcjgs++iJpD5fV72bYSmByn2QTAjM7wq17iUh80UuYl7h1hbpfD9MAyelOV1IRMoXAzuoyL83qR0qVddCSVFegBNG7GSwZRcl328IEJVx6TYbxxivf1janVudG34eAA4Y5p/rR
  • Ironport-sdr: fJajpIo05YIFuJX9ZzLqkSv6ejRs6/EpNF1CYUiBQiPrdTSdYmRSHlTbIpIQNjyH51IaqUwb8c WrVX8f1zbJRg==
  • List-id: Mini-os development list <minios-devel.lists.xenproject.org>

Add licenses to source files and the source files to Makefile.uk

Signed-off-by: Costin Lupu <costin.lupu@xxxxxxxxx>
---
 Makefile.uk                           |  2 ++
 musl-imported/src/termios/tcgetattr.c | 24 ++++++++++++++++++++++++
 musl-imported/src/termios/tcsetattr.c | 24 ++++++++++++++++++++++++
 3 files changed, 50 insertions(+)

diff --git a/Makefile.uk b/Makefile.uk
index f11d443..a4e9f6a 100644
--- a/Makefile.uk
+++ b/Makefile.uk
@@ -113,6 +113,8 @@ LIBNEWLIBGLUE_SRCS-y += $(LIBNEWLIBC_BASE)/time.c|glue
 LIBNEWLIBGLUE_SRCS-y += $(LIBNEWLIBC_BASE)/locale.c
 LIBNEWLIBGLUE_SRCS-y += $(LIBNEWLIBC_BASE)/dev.c
 LIBNEWLIBGLUE_SRCS-y += $(LIBNEWLIBC_BASE)/signal.c
+LIBNEWLIBGLUE_SRCS-y += 
$(LIBNEWLIBC_BASE)/musl-imported/src/termios/tcsetattr.c
+LIBNEWLIBGLUE_SRCS-y += 
$(LIBNEWLIBC_BASE)/musl-imported/src/termios/tcgetattr.c
 
 
################################################################################
 # Newlib/libc code -- argz
diff --git a/musl-imported/src/termios/tcgetattr.c 
b/musl-imported/src/termios/tcgetattr.c
index 545a0bf..3be5b11 100644
--- a/musl-imported/src/termios/tcgetattr.c
+++ b/musl-imported/src/termios/tcgetattr.c
@@ -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.
+ * ----------------------------------------------------------------------
+ */
 #include <termios.h>
 #include <sys/ioctl.h>
 
diff --git a/musl-imported/src/termios/tcsetattr.c 
b/musl-imported/src/termios/tcsetattr.c
index 94df18f..7eaee51 100644
--- a/musl-imported/src/termios/tcsetattr.c
+++ b/musl-imported/src/termios/tcsetattr.c
@@ -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.
+ * ----------------------------------------------------------------------
+ */
 #include <termios.h>
 #include <sys/ioctl.h>
 #include <errno.h>
-- 
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®.