From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail-wm1-x344.google.com (mail-wm1-x344.google.com [IPv6:2a00:1450:4864:20::344]) by sourceware.org (Postfix) with ESMTPS id 3E33E398B84F for ; Thu, 1 Oct 2020 15:26:55 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.3.2 sourceware.org 3E33E398B84F Received: by mail-wm1-x344.google.com with SMTP id x23so3353942wmi.3 for ; Thu, 01 Oct 2020 08:26:55 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:cc:subject:to:references:from:message-id:date :user-agent:mime-version:in-reply-to:content-language :content-transfer-encoding; bh=5w2rWzGJo/P9Et7VZEZa/em8Ce7IQRuXuJhdxlypZcY=; b=QHibRwiE8sUQORjJhamyn4/i5h9MmYfCgC+rXZjV72NJOhtTB2bCSdcvEZyyVYfdrx 7FbW8W2zjVusMHyrrM+vX5D7J+J4r3x2IctDWF2alu9WtZWFdRTZSIV1GJEj+O5Gm1e3 nKDLdet0AEPv1C/cIF34rDvBxLpq++W1ULsAczBCuUik7Hr5LSF59FcS0PF+bKUos2zh 014HGZPvvHBxdvtFlsBdV3WNSP+3HzT7SpNh0DQszzfbEjNdCAByYXG3ODffCD8KUk6b iPur4avMvZ2elSGOGuoW9LybfqrlJdi10SjKa9ltaURd0Lla/eXRu800uYP7Keuy0gUY q1JQ== X-Gm-Message-State: AOAM531v80K3p/MwoBTTRgB/1CewRHLDbtWvDkxsC09Y1m+teeVCQiRF sw+7erAvRwyyrOuE5lahZ5+sUWwsUqc= X-Google-Smtp-Source: ABdhPJxnzUzTgIhknle9mT/XqemzL17Uh+OGIvH95W36L7XTKTjSicd04vjQM8wlo/x09Z6lTPbnwA== X-Received: by 2002:a1c:1b15:: with SMTP id b21mr527226wmb.143.1601566014059; Thu, 01 Oct 2020 08:26:54 -0700 (PDT) Received: from [192.168.178.63] (dynamic-077-009-049-048.77.9.pool.telefonica.de. [77.9.49.48]) by smtp.gmail.com with ESMTPSA id n14sm380037wmi.33.2020.10.01.08.26.53 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Thu, 01 Oct 2020 08:26:53 -0700 (PDT) Cc: mtk.manpages@gmail.com, linux-man@vger.kernel.org, gcc@gcc.gnu.org, libc-alpha@sourceware.org Subject: Re: [PATCH v2 3/4] system_data_types.7: Add uint_leastN_t family of types To: Alejandro Colomar References: <20201001143535.98990-1-colomar.6.4.3@gmail.com> <20201001143535.98990-4-colomar.6.4.3@gmail.com> From: "Michael Kerrisk (man-pages)" Message-ID: <423a144e-501f-646d-c24b-cd2a95426c0a@gmail.com> Date: Thu, 1 Oct 2020 17:26:52 +0200 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:68.0) Gecko/20100101 Thunderbird/68.10.0 MIME-Version: 1.0 In-Reply-To: <20201001143535.98990-4-colomar.6.4.3@gmail.com> Content-Type: text/plain; charset=utf-8 Content-Language: en-US Content-Transfer-Encoding: 7bit X-Spam-Status: No, score=-10.4 required=5.0 tests=BAYES_00, DKIM_SIGNED, DKIM_VALID, DKIM_VALID_AU, DKIM_VALID_EF, FREEMAIL_FROM, GIT_PATCH_0, KAM_SHORT, NICE_REPLY_A, RCVD_IN_DNSWL_NONE, SPF_HELO_NONE, SPF_PASS, TXREP autolearn=unavailable autolearn_force=no version=3.4.2 X-Spam-Checker-Version: SpamAssassin 3.4.2 (2018-09-13) on server2.sourceware.org X-BeenThere: libc-alpha@sourceware.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Libc-alpha mailing list List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 01 Oct 2020 15:26:56 -0000 Thanks, Alex. Applied. On 10/1/20 4:35 PM, Alejandro Colomar wrote: > Signed-off-by: Alejandro Colomar > --- > man7/system_data_types.7 | 75 ++++++++++++++++++++++++++++++++++++++++ > 1 file changed, 75 insertions(+) > > diff --git a/man7/system_data_types.7 b/man7/system_data_types.7 > index 3336de463..e42cf2557 100644 > --- a/man7/system_data_types.7 > +++ b/man7/system_data_types.7 > @@ -1500,6 +1500,81 @@ and > .IR uint N _t > types in this page. > .RE > +.\"------------------------------------- uint_leastN_t ----------------/ > +.TP > +.IR uint_least N _t > +.RS > +Include: > +.IR . > +Alternatively, > +.IR . > +.PP > +.IR uint_least8_t , > +.IR uint_least16_t , > +.IR uint_least32_t , > +.I uint_least64_t > +.PP > +The narrowest unsigned integer type > +of a width of at least N bits, > +N being the value specified in its type name. > +According to the C language standard, they shall be > +capable of storing values in the range [0, > +.BR UINT_LEAST N _MAX ], > +substituting N by the appropriate number. > +.PP > +The length modifiers for the > +.IR uint_least N _t > +types for the > +.BR printf (3) > +family of functions > +are expanded by macros of the forms > +.BR PRIuLEST N, > +.BR PRIoLEAST N, > +.BR PRIxLEAST N > +and > +.BR PRIXLEAST N > +(defined in > +.IR ); > +resulting for example in > +.B %"PRIuLEAST32" > +or > +.B %"PRIxLEAST32" > +for printing > +.I uint_least32_t > +values. > +The length modifiers for the > +.IR uint_least N _t > +types for the > +.BR scanf (3) > +family of functions > +are expanded by macros of the forms > +.BR SCNuLEAST N, > +.BR SCNoLEAST N, > +.BR SCNxLEAST N > +and > +.BR SCNXLEAST N > +(defined in > +.IR ); > +resulting for example in > +.B %"SCNuLEAST16" > +or > +.B %"SCNxLEAST16" > +for scanning > +.I uint_least16_t > +values. > +.PP > +Conforming to: > +C99 and later; POSIX.1-2001 and later. > +.PP > +See also the > +.IR int_fast N _t , > +.IR int_least N _t , > +.IR int N _t , > +.IR uint_fast N _t > +and > +.IR uint N _t > +types in this page. > +.RE > .\"------------------------------------- uintmax_t --------------------/ > .TP > .I uintmax_t > -- Michael Kerrisk Linux man-pages maintainer; http://www.kernel.org/doc/man-pages/ Linux/UNIX System Programming Training: http://man7.org/training/