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

Re: [Minios-devel] [UNIKRAFT/NEWLIB PATCH v2 1/1] sys/sysmacros.h: Import from musl


  • To: Vlad-Andrei BĂDOIU (78692) <vlad_andrei.badoiu@xxxxxxxxxxxxxxx>, "minios-devel@xxxxxxxxxxxxx" <minios-devel@xxxxxxxxxxxxx>
  • From: Costin Lupu <costin.lupu@xxxxxxxxx>
  • Date: Fri, 23 Aug 2019 13:55:45 +0300
  • Cc: "felipe.huici@xxxxxxxxx" <felipe.huici@xxxxxxxxx>
  • Delivery-date: Fri, 23 Aug 2019 10:55:59 +0000
  • Ironport-phdr: 9a23:U8lycBCDISA3L7zWc33LUyQJP3N1i/DPJgcQr6AfoPdwSP37r8mwAkXT6L1XgUPTWs2DsrQY0rCQ6vywEjZQqb+681k6OKRWUBEEjchE1ycBO+WiTXPBEfjxciYhF95DXlI2t1uyMExSBdqsLwaK+i764jEdAAjwOhRoLerpBIHSk9631+ev8JHPfglEnjWwba5sIBmssAncucobjYR8Jqsy1xDEvmZGd+NKyG1yOFmdhQz85sC+/J5i9yRfpfcs/NNeXKv5Yqo1U6VWACwpPG4p6sLrswLDTRaU6XsHTmoWiBtIDBPb4xz8Q5z8rzH1tut52CmdIM32UbU5Uims4qt3VBPljjoMOiUn+2/LlMN/kKNboAqgpxNhxY7UfJqVP+d6cq/EYN8WWXZNUsNXWidcAI2zcpEPAvIcM+hGoYnzp1gAoxWwCgajBuzg1jBGi2Tq3a0jyektDR3K0QIiEt8IrX/arM/1NKAXUe2t0qTIyi7Db+9X2Tf79YPGdA0hoemRXbltdsfe1U4vFxjZjlWRr4zpJTeV1vkVs2iG9OdvSfmvh3Q/qwFsuTej3N0sio7Qi48T11vK+yJ5wIMvKt25Tk52edukEIZLtyGeLod2RsIiTHp0tyogzb0Go5G7cS4Xw5ok3x7Sc+GLfoeV7h75V+ucIS10iGx7dL+9nRq//1Csx+7iWsWu0ltHrDBJnsTNu30PzRDf98yKR/t780y8wziAzRrT5ftBIU0skKrbLIMuzaAom5oItETDAjf2mELrjK+Kbkkk+van6+DgYrj+uJ+cMpV7igD6Mqg0hsO/Gv40MhATX2eA4+i8zrrj8VX4QLVMkPI2jrHUvI3VKMgGvKK0AA9Y3pw95xqhDTqqytoVkWECLF1feRKHi4bpO0vJIPD9Ffqwn1OskCx3x/DHOL3tGJHNLmXbkLf8Zrty91VcxBArzdBC/J1YEKsBIPXrVk/rqNPYFgM5MxCzw+v/DdV914UeWWOIAq+CKa/drEGH5vwxLOmIf4IVvDf9K+M55/71l3M4lkESfa+z0ZsQcnC4EexsI1+Fbnr0ntcBDWAKsxIwTOP0jF2CUCZTaGioU6I8+zE7CZ6pDYbYS4CrnrOOwCO7EYdNaWxcFF+MDG/id5+YVPcUdCKSPshhnyQaVbilUYAuyAmhuxX8y7V6NOrb5CwYuYj429dv+uLTkhAy9SFvAsSGz2GNUnx7knkSSDAqx6Bzu1F9yk+Y3qRimfxYEo8b2/QcbAMzOdv1yeBgBtHFcKntWfa0fxb5Eov3W3B5Gsw1ytM5akBxAdijyBrK0y2rHpcOi6GHQpU/6eTBx3K3PcErjz6M0agnjl49B8dCK2Cirqp+7BTIQZ7ElQOejangPfAZ3SjM83zGwWeQsUVwVA9rTb6DTX0ZIEzMooKqyFnFSuqFDq87Mw0J7dOaN+MeYdrykVRAAvP+IMn2aHn3g3q6QwyPkODfJLH2cnkQiX2OQHMPlBoeqDPfbVAz
  • Ironport-sdr: BcHE66lrlJIzOgxSNDwUBEux/ld4x/+0YQlz0soYY/sR+ya47vvAh4RIgZ3U3JBlsq0KxbYrxH cND6q89jJ+yg==
  • List-id: Mini-os development list <minios-devel.lists.xenproject.org>

Thanks, Vlad!

Reviewed-by: Costin Lupu <costin.lupu@xxxxxxxxx>

On 8/22/19 11:02 PM, Vlad-Andrei BĂDOIU (78692) wrote:
> Copied as is from the official musl git mirror
> git://git.musl-libc.org/musl, commit 6fcb440d.
> 
> Signed-off-by: Vlad-Andrei Badoiu <vlad_andrei.badoiu@xxxxxxxxxxxxxxx>
> ---
>  musl-imported/include/sys/sysmacros.h | 41 +++++++++++++++++++++++++++
>  1 file changed, 41 insertions(+)
>  create mode 100644 musl-imported/include/sys/sysmacros.h
> 
> diff --git a/musl-imported/include/sys/sysmacros.h 
> b/musl-imported/include/sys/sysmacros.h
> new file mode 100644
> index 0000000..0efdc6b
> --- /dev/null
> +++ b/musl-imported/include/sys/sysmacros.h
> @@ -0,0 +1,41 @@
> +/* 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.
> + * ----------------------------------------------------------------------
> + */
> +/* Taken from musl */
> +
> +#ifndef _SYS_SYSMACROS_H
> +#define _SYS_SYSMACROS_H
> +
> +#define major(x) \
> +     ((unsigned)( (((x)>>31>>1) & 0xfffff000) | (((x)>>8) & 0x00000fff) ))
> +#define minor(x) \
> +     ((unsigned)( (((x)>>12) & 0xffffff00) | ((x) & 0x000000ff) ))
> +
> +#define makedev(x,y) ( \
> +        (((x)&0xfffff000ULL) << 32) | \
> +     (((x)&0x00000fffULL) << 8) | \
> +        (((y)&0xffffff00ULL) << 12) | \
> +     (((y)&0x000000ffULL)) )
> +
> +#endif
> 

_______________________________________________
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®.