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

[Minios-devel] [UNIKRAFT/NEWLIB PATCH] Configure IO C99 formats and errno extensions


  • To: minios-devel@xxxxxxxxxxxxx
  • From: Costin Lupu <costin.lupu@xxxxxxxxx>
  • Date: Thu, 12 Sep 2019 11:36:12 +0300
  • Cc: felipe.huici@xxxxxxxxx, vlad_andrei.badoiu@xxxxxxxxxxxxxxx
  • Delivery-date: Thu, 12 Sep 2019 08:36:24 +0000
  • Ironport-phdr: 9a23:rUIm0hQ+pUivU/6aHW0f7DCnltpsv+yvbD5Q0YIujvd0So/mwa6zZh2N2/xhgRfzUJnB7Loc0qyK6vumATFLuczJ8ChbNsAVDVld0YRetjdjKfbNMVf8Iv/uYn5yN+V5f3ghwUuGN1NIEt31fVzYry76xzcTHhLiKVg9fbytScbdgMutyu+95YDYbRlWizqhe7NyKwi9oRnMusUMjoZuN6g8xgHVrnZIdOha2X1kLk+Xkxrg+8u85pFu/zlOt/4768JMTaD2dLkkQLJFCzgrL3o779DxuxnZSguP6HocUmEInRdNHgPI8hL0UIrvvyXjruZy1zWUMsPwTbAvRDSt9LxrRwPyiCcGLDE27mfagdFtga1BoRKhoxt/w5PIYIyQKfFzcL/Rcc8cSGFcWMtaSi5PDZ6mb4YXD+QPI/tWoYf+qVUJthayGRWgCfnzxjJSmnP6was32PkhHwHc2wwgGsoDvWrTrNXuKKcSUOa1x7TOwzXed/NWxCr25Y/UfRAmuvGMQbNwcczLxUkrCgPFlkiQpJf5MDOOzOgNq3Wb4PF6WeK1jG4qsgd8qSWsyMc0koTFm40Yxk3e+Sh6wIs5P8O0RFB5bNK+HpZcrzyWOoRrTs84QGxluDw2xqMItJO1ZiQG1ZsqywDZZveaaYaH+AjjW/yUITpggXJlf6+wiAiq/Ei7z+38StG00FFXripZitXMtm4C1xjU6sWfVPt9+12u2TeL1wzJ9u5EOlo4lbLGK5E62LIwjJ0TvVzCHi/whkr2kLebelgr9+S18ejqYbXrqoWCO4NqiAzyKKojltS6AesiMwgOW2ab+f671L3m5UD2XLJKjuYqkqnYtpDWP8AbprOhAw9IyYss9w2/Ay2+0NQFhnYLNkhFeBWfg4jzJ17OOOz4Deu4g1m0lTdrxvbGPrzmApXWN3TMjanufahj5E5Y0wczydFf54lICrEaOv7yVVH+tNrCAh8+KQy0zP7tCM9h2YMGRWKPHqiZPbvcsVCW4uIvIvGMa5EPtDb9Nvgl5uLhjX4ilF8bY6amwZ8XZ2qjEfh8PUqZfGLmgs0dHmcSogo+UOvqhUWcUT5XfXm9Qroz6Ss9CI27F4fMWIGtjKaa0yihA5JWYWFGCk2XHHfza4WERuoDZDiILcB9iTwIT6WhS5c62h20rg/6zOkvEu2B/ywetJX4kdR4+eDXvRUz7iBvSdSQ1SeKVW4nsHkPQmod27tjoEo17kqbzOAsiPtDCd1VofdUShoSPoWa1/FwTcr1DFGSNuyVQUqrF431SQo6Scg8locD
  • Ironport-sdr: FdCN7IBxmaroCxqH4tEo0OQvdDouGYvdaG05V0eCa88m6GSvB+BgVq6KcktslbZaJ+CK0cZGbN 9Dv7t0nt5rfQ==
  • List-id: Mini-os development list <minios-devel.lists.xenproject.org>

This patch adds support for enabling the following extensions:
* IO C99 formats enable more options for formatting output. We need this to
support "%z" in Python 3
* Linux errno extensions define more error numbers. We need this to support
ESHUTDOWN in Python 3

Signed-off-by: Costin Lupu <costin.lupu@xxxxxxxxx>
---
 Config.uk   | 10 ++++++++++
 Makefile.uk |  2 ++
 2 files changed, 12 insertions(+)

diff --git a/Config.uk b/Config.uk
index 89010a1..da587ba 100644
--- a/Config.uk
+++ b/Config.uk
@@ -10,3 +10,13 @@ menuconfig LIBNEWLIBC
        select LIBNEWLIBM if LIBNEWLIBC
        select LIBUKALLOC
        select LIBVFSCORE
+
+if LIBNEWLIBC
+       config LIBNEWLIBC_WANT_IO_C99_FORMATS
+               bool "Use C99 IO formats"
+               default n
+
+       config LIBNEWLIBC_LINUX_ERRNO_EXTENSIONS
+               bool "Use Linux errno extensions"
+               default n
+endif
diff --git a/Makefile.uk b/Makefile.uk
index 01da724..812f602 100644
--- a/Makefile.uk
+++ b/Makefile.uk
@@ -82,6 +82,8 @@ LIBNEWLIBM_CXXINCLUDES += -I$(LIBNEWLIB_LIBM)/common
 
################################################################################
 LIBNEWLIB_GLOBAL_FLAGS-y  += -DMISSING_SYSCALL_NAMES -DMALLOC_PROVIDED
 LIBNEWLIB_GLOBAL_FLAGS-y  += -D_POSIX_REALTIME_SIGNALS
+LIBNEWLIB_GLOBAL_FLAGS-$(CONFIG_LIBNEWLIBC_WANT_IO_C99_FORMATS) += 
-D_WANT_IO_C99_FORMATS
+LIBNEWLIB_GLOBAL_FLAGS-$(CONFIG_LIBNEWLIBC_LINUX_ERRNO_EXTENSIONS) += 
-D__LINUX_ERRNO_EXTENSIONS__
 
 CFLAGS-y   += $(LIBNEWLIB_GLOBAL_FLAGS-y)
 CXXFLAGS-y += $(LIBNEWLIB_GLOBAL_FLAGS-y)
-- 
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®.