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

[Minios-devel] [UNIKRAFT/NEWLIB v2 1/3] sys/un.h: Import from musl


  • To: minios-devel@xxxxxxxxxxxxx
  • From: Costin Lupu <costin.lupu@xxxxxxxxx>
  • Date: Mon, 26 Aug 2019 17:36:34 +0300
  • Cc: charalampos.mainas@xxxxxxxxx
  • Delivery-date: Mon, 26 Aug 2019 14:36:59 +0000
  • Ironport-phdr: 9a23:YtSHsRZGdlVDehcEZw6mRkT/LSx+4OfEezUN459isYplN5qZr8u4bnLW6fgltlLVR4KTs6sC17OM9fm9BSdfv96oizMrSNR0TRgLiMEbzUQLIfWuLgnFFsPsdDEwB89YVVVorDmROElRH9viNRWJ+iXhpTEdFQ/iOgVrO+/7BpDdj9it1+C15pbffxhEiCCybL9vMhm6txjdu8kZjIdtKKs8ywbCr2dVdehR2W5mP0+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+mMY5cYtyr9K/c//f7hl3s5lkUYfamx2psXc2q0HvF8LEWYZ3rjmMwBHHwMvgUgUOPqjEeNXiVJa3msQqJvrg08XYenC4bEXcWhjaKM2A+/H4ZKfSZWB1bKFm3nJKueXPJZQyWJPs5n2hgZTaXpH4Qmzg2vskn+1qJ6BuHPvDUFv9T5044mtKXoiRgu+GksXIym2GaXQjQskw==
  • Ironport-sdr: qNSPBWbzpZvXnXT4gYbiCZEVmpXnQkb0MPIYeJ6QmihwnfzrqnEL+hibT9TwGTX9vB06LHm8pk gJcyfWTW3fPg==
  • List-id: Mini-os development list <minios-devel.lists.xenproject.org>

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

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

diff --git a/musl-imported/include/sys/un.h b/musl-imported/include/sys/un.h
new file mode 100644
index 0000000..1a3193a
--- /dev/null
+++ b/musl-imported/include/sys/un.h
@@ -0,0 +1,31 @@
+#ifndef        _SYS_UN_H
+#define        _SYS_UN_H
+
+#ifdef __cplusplus
+extern "C" {
+#endif
+
+#include <features.h>
+
+#define __NEED_sa_family_t
+#if defined(_GNU_SOURCE) || defined(_BSD_SOURCE)
+#define __NEED_size_t
+#endif
+
+#include <bits/alltypes.h>
+
+struct sockaddr_un {
+       sa_family_t sun_family;
+       char sun_path[108];
+};
+
+#if defined(_GNU_SOURCE) || defined(_BSD_SOURCE)
+size_t strlen(const char *);
+#define SUN_LEN(s) (2+strlen((s)->sun_path))
+#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®.