[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Minios-devel] [UNIKRAFT/NEWLIB PATCH 08/16] sys/un.h: Import from musl
- To: minios-devel@xxxxxxxxxxxxx
- From: Costin Lupu <costin.lupu@xxxxxxxxx>
- Date: Thu, 22 Aug 2019 13:10:48 +0300
- Cc: felipe.huici@xxxxxxxxx, charalampos.mainas@xxxxxxxxx
- Delivery-date: Thu, 22 Aug 2019 10:11:31 +0000
- Ironport-phdr: 9a23:AEkBdhK3oUfmiARRztmcpTZWNBhigK39O0sv0rFitYgfKf7xwZ3uMQTl6Ol3ixeRBMOHsqgC0raL+Pq7EUU7or+5+EgYd5JNUxJXwe43pCcHRPC/NEvgMfTxZDY7FskRHHVs/nW8LFQHUJ2mPw6arXK99yMdFQviPgRpOOv1BpTSj8Oq3Oyu5pHfeQpFiCejbb9oMRm7ogXcusYIjYZsN6081gbHrnxUdupM2GhmP0iTnxHy5sex+J5s7SFdsO8/+sBDTKv3Yb02QaRXAzo6PW814tbrtQTYQguU+nQcSGQWnQFWDAXD8Rr3Q43+sir+tup6xSmaIcj7Rq06VDi+86tmTgLjhSEaPDA77W7XkNR9gqJFrhy8qRJxwInab4ObNPdlYq/RYckXSXZbU8pNSyBMBJ63YYsVD+oGOOZVt5fwp1wVrRuiBAmsAv7kxDlVhn/uwK0xzuMsHh3B3Aw7A9IOsXLUoM/xNKcPSeC10bLFwinYb/9MwTf99ZPHfgo7ofGLRL99d9fax0coFwPAlFqQqIrlMiuQ1uQQqGib6/NsVeaui2E8tw59uD+vxt0jioTPm4kbyUjE+D1kzIs6ONG0Uk12bN6+HJdOqS2XNZF6T806T211tys216cKtJ27cSQQ1pgqyRDSZ+aaf4WH/B7uUvuaLy1ii3J/Yr2/gg6/8U2nyuLhSMa5yE1Kri9ZktnUsXANygDT5tCHSvRj+keh3i6C1x7W6u5eIEA0kbDXJII6wrIqjpoTrF/MEjXsmEXxlKOWd0Mk9fa06+n/f7nrqYKQO5V3hwz+KKgihNKzDOYiPgUAR2Sb/P6z1Lzn/U33WrVKifg2n7HFv5DdPsQbuq+5AwlP3oYn9ha/Fyqm3c8EknkcNl5FYA+HgJPzN1HUJ/D0Fe2/jEi0kDd32/DGOaXsApDMLnjFkbfheq1951dBxwUt09BQ+ZZUB6oFIPLyQU/xqMfYAgU2MgOqxebrEtJ91pkRWWiXGK+WLLvSsUOU5uIoO+SDeI8VtyznK/c/4/7hl3o5mUcafamyx5cXbWq3HvVgI0qDenrhmdEBHnkWsQo6VuPlk0eOXiBOZ3yqRaIz+ik7CJ66DYfEXo2tjqKO3CO6Hp1OeG9KEFCMEWrpd4qYWvcBcySSLdF9nTwAT7euUJUt2g+ztFyy970yK+vS+yoD8J7uytVxz+nSjg0psyx5CYKayW7eYXtzmzYjQCQq3aY3hVFl1x/X2q9jn/1eU9hO/+5hWRx8LYPWifZ9XYOhEjndd8uEHQ71Cu6tBis8G4o8
- Ironport-sdr: SEHhqmQXT5S03LcOBYmqVh1z7TG9nrtWuGZRG5DqdJWUUSE5mICdWr5WCRhKoec6xZkWPYZU0/ lCyDY+IlhRsQ==
- 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
|