From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.org/gmane.linux.lib.musl.general/12365 Path: news.gmane.org!.POSTED!not-for-mail From: Markus Wichmann Newsgroups: gmane.linux.lib.musl.general Subject: Re: [PATCH] Add __intNN_t type definitions Date: Fri, 12 Jan 2018 19:04:09 +0100 Message-ID: <20180112180409.nuylb4cxpbs4pi44@voyager> References: <1515776825-13574-1-git-send-email-rostislav@tuxera.com> Reply-To: musl@lists.openwall.com NNTP-Posting-Host: blaine.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: blaine.gmane.org 1515780166 8574 195.159.176.226 (12 Jan 2018 18:02:46 GMT) X-Complaints-To: usenet@blaine.gmane.org NNTP-Posting-Date: Fri, 12 Jan 2018 18:02:46 +0000 (UTC) User-Agent: NeoMutt/20170609 (1.8.3) To: musl@lists.openwall.com Original-X-From: musl-return-12381-gllmg-musl=m.gmane.org@lists.openwall.com Fri Jan 12 19:02:42 2018 Return-path: Envelope-to: gllmg-musl@m.gmane.org Original-Received: from mother.openwall.net ([195.42.179.200]) by blaine.gmane.org with smtp (Exim 4.84_2) (envelope-from ) id 1ea3f3-0001ZU-Nh for gllmg-musl@m.gmane.org; Fri, 12 Jan 2018 19:02:37 +0100 Original-Received: (qmail 28555 invoked by uid 550); 12 Jan 2018 18:04:36 -0000 Mailing-List: contact musl-help@lists.openwall.com; run by ezmlm Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-ID: Original-Received: (qmail 28530 invoked from network); 12 Jan 2018 18:04:36 -0000 Content-Disposition: inline In-Reply-To: <1515776825-13574-1-git-send-email-rostislav@tuxera.com> X-Provags-ID: V03:K0:d5WSyIKyOry/Q7tqjElsD8VaBuWBfR5Y1bO6PfQgwf8RdGxs3tw AzfDi9O5+/GcX66SM5PX9S5oktohjxcroFab018hmngaa267Nrlkj8TbAtxw3CodXlFHc1w BerpgwUwExAd1K62WUPBgdQfF+PWxnjH1wTh5Ossw6Qu0rAXAr6MehRjaoyUAp1O5yin1uv rxQNT6zJZZGLp3jxkul5g== X-UI-Out-Filterresults: notjunk:1;V01:K0:dZcH24WRsjI=:FysH/bARRw5FypcfITSJps s2UzjV5xQAYcw/WSL06P7mtBf/YfTzn4UiEiCyL3LZZoASu0ug4paqqWENiaqtiI6IGPJm1lH oDhuuG//xYwOUpgQqZdh3d9xCG06JqAChMI0CZsJfY+P6Ol2D8+5KYtsmCBLUCPgTGOsWR+P4 n7EXwhit0aQxl0bWDMSl4B4C26RBBlr5u3XTy/o3NvY/Z1QBswwj9gKZI9QgK1StvIOMtW1+x VkGpo9zQ66B9xYb/9lenABokN438l0DuFvdPt1G/3oA6GRBGVOctshT8DUvBaEmpfRKE6akDL ay913fIF0J0BwqLn5A146fI41hK5hJXRg9xxaRrvXLXRvq46BDEDUnDMGvQKbvX5h4LJa3+b2 1bAiziq0JhPks0P0AT/w174uQqPNPYBfdeTwFRG3maGQO4b3cfHLHGe4L21cdwSuo1tLA1zrj oYTp9HZ80d+HnO56UtQP2SLMxjJapPuQiWbNuvXTasHSqcEs5OfY4MixbnHTMR4BlFcCO4Xtq vq72OxvP0M299LhBtCL6HIz1QfnwHnIOseODtZ8sqHFdpU7gW7654vdAN5L+k7U6u0Dxm1mK1 DxbeE60G5gPz+ZpW8AZ7naerEy9bfuVY/UiAOKRoH4+JkkrO+t8Ilsn2maM4J0t2a1xPra75k BOfoYProYLs9459kn6K6qUw96xs8J+T2KEisejK5fUD0MGnBp3XD5qR6lp0/5/dY1ETYSojdD NJH4tMtz8Fxp4gs37g38dJ9W9spVLO90KMhRex8cYr3So0yf52VGRA7jeTcrF36oxzq2o7Hn Xref: news.gmane.org gmane.linux.lib.musl.general:12365 Archived-At: On Fri, Jan 12, 2018 at 05:07:05PM +0000, Rostislav Skudnov wrote: > These types are defined in glibc headers and are used by some programs, > e. g. xfsprogs before version 4.13.0. Then those programs are broken and have to be patched. > --- > include/sys/types.h | 9 +++++++++ > 1 file changed, 9 insertions(+) > > diff --git a/include/sys/types.h b/include/sys/types.h > index 75e489c..b02208d 100644 > --- a/include/sys/types.h > +++ b/include/sys/types.h > @@ -56,6 +56,15 @@ extern "C" { > > #include > > +typedef signed char __int8_t; > +typedef unsigned char __uint8_t; > +typedef short __int16_t; > +typedef unsigned short __uint16_t; > +typedef int __int32_t; > +typedef unsigned int __uint32_t; > +typedef off_t __int64_t; > +typedef ino_t __uint64_t; > + > #if defined(_GNU_SOURCE) || defined(_BSD_SOURCE) > typedef unsigned char u_int8_t; > typedef unsigned short u_int16_t; > -- > 2.1.4 > Names starting with two underscores (or one underscore and one capital letter) are reserved for internal use by the implementation. Unless they are specifically defined (like _Bool), they should not be used. Ciao, Markus