From patchwork Tue Sep 29 10:30:27 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Alejandro Colomar X-Patchwork-Id: 40538 Return-Path: X-Original-To: patchwork@sourceware.org Delivered-To: patchwork@sourceware.org Received: from server2.sourceware.org (localhost [IPv6:::1]) by sourceware.org (Postfix) with ESMTP id F404B39874E5; Tue, 29 Sep 2020 10:31:37 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org F404B39874E5 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=sourceware.org; s=default; t=1601375498; bh=j3AY/310GuNzvpwEATi3xSLuNwE+Fdu1EOfyXt7c5h4=; h=To:Subject:Date:In-Reply-To:References:List-Id:List-Unsubscribe: List-Archive:List-Post:List-Help:List-Subscribe:From:Reply-To:Cc: From; b=H9gf+R0wQlRyN/wccnkz0PB6I41PIz723MvlzWhTNtRo2GiCIQNmHFJKkjv6KRX86 Y0byaq1v3G3IuSFKaHLJHE75BKRQJAQq/k7IwJhJkoZbyDFgzm3iY9qK5cWx6i5vrP ykjEzKFR8ySrODmwgBGkHliChBLCssECQdE75pHE= X-Original-To: libc-alpha@sourceware.org Delivered-To: libc-alpha@sourceware.org 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 E779D39874AE for ; Tue, 29 Sep 2020 10:31:32 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.3.2 sourceware.org E779D39874AE Received: by mail-wm1-x344.google.com with SMTP id y15so4250497wmi.0 for ; Tue, 29 Sep 2020 03:31:32 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references:mime-version:content-transfer-encoding; bh=j3AY/310GuNzvpwEATi3xSLuNwE+Fdu1EOfyXt7c5h4=; b=QphNaT1G70qRQhlkXNUA6pbY6J6jLUL5QcT+yHzxFvtBbhOsw3Fxku9FLfk57SgzrP duyicWwJTPOhxUy0Qb4HJwKjbG5VDYriNqR1bcPUN3UEGf5q7V2GgMvQXrjtCEDVtPhZ KVVLPC9GN9lvh4olcX0SzCRv6/pqIm2TxdXP9AVRf+ofsQWK0J1SfgbsuWKOmECcqrPb DlyGM4fVm1oXaZ6VX8PjkGDQs924MncRi4VP8cV9rO8poV/sWzX5zgl4cDsV3KAxmQ8Q QlYvtdYCJaNVppo1cI6+bPHwslpTjBy43qvCV67OMH/65mcWcIc8vJfYx9+wEsRoM2fZ K0Zw== X-Gm-Message-State: AOAM531Ea6vd1laiQ2UCSbXrsyR0KVSP+6eVJCoe3fLSF6KesHzzK6I2 Zm8x2d+SjrLMvWEHoWGPTHg= X-Google-Smtp-Source: ABdhPJwDW/cnsrI8c6bd3DT1QMjWgn/WDb0xd3j0ei3gIHWxY5LHk7K9ZVvoxUNDSHdd5hq7pCO/1A== X-Received: by 2002:a1c:28a:: with SMTP id 132mr4024450wmc.144.1601375491845; Tue, 29 Sep 2020 03:31:31 -0700 (PDT) Received: from localhost.localdomain ([170.253.60.68]) by smtp.googlemail.com with ESMTPSA id t5sm5611464wrb.21.2020.09.29.03.31.30 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 29 Sep 2020 03:31:31 -0700 (PDT) To: mtk.manpages@gmail.com Subject: [PATCH v2 5/8] system_data_types.7: Add intN_t family of types Date: Tue, 29 Sep 2020 12:30:27 +0200 Message-Id: <20200929103028.56566-6-colomar.6.4.3@gmail.com> X-Mailer: git-send-email 2.28.0 In-Reply-To: <20200929082524.49529-1-colomar.6.4.3@gmail.com> References: <20200929082524.49529-1-colomar.6.4.3@gmail.com> MIME-Version: 1.0 X-Spam-Status: No, score=-10.5 required=5.0 tests=BAYES_00, DKIM_SIGNED, DKIM_VALID, DKIM_VALID_AU, DKIM_VALID_EF, FREEMAIL_ENVFROM_END_DIGIT, FREEMAIL_FROM, GIT_PATCH_0, KAM_ASCII_DIVIDERS, 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-Patchwork-Original-From: Alejandro Colomar via Libc-alpha From: Alejandro Colomar Reply-To: Alejandro Colomar Cc: Alejandro Colomar , linux-man@vger.kernel.org, libc-alpha@sourceware.org, colomar.6.4.3@gmail.org, gcc@gcc.gnu.org Errors-To: libc-alpha-bounces@sourceware.org Sender: "Libc-alpha" Signed-off-by: Alejandro Colomar --- man7/system_data_types.7 | 79 ++++++++++++++++++++++++++++++++++++++++ 1 file changed, 79 insertions(+) diff --git a/man7/system_data_types.7 b/man7/system_data_types.7 index 2e7aca7d2..9b8244649 100644 --- a/man7/system_data_types.7 +++ b/man7/system_data_types.7 @@ -399,6 +399,85 @@ See also the .I uintmax_t type in this page. .RE +.\"------------------------------------- intN_t -----------------------/ +.TP +.IR int N _t +.RS +.br +Include: +.IR . +Alternatively, +.IR . +.PP +.IR int8_t ", " int16_t ", " int32_t ", " int64_t +.PP +A signed integer type +of a fixed width of exactly 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 +.RB [ INT N _MIN , +.BR INT N _MAX ], +substituting N by the appropriate number. +.PP +According to POSIX, +.IR int8_t ", " int16_t +and +.I int32_t +are required; +.I int64_t +is only required in implementations that provide integer types +with width 64; +and all other types of this form are optional. +.PP +The length modifiers for the +.IR int N _t +types for the +.BR printf (3) +family of functions +are expanded by macros of the forms +.BR PRId N +and +.BR PRIi N +(defined in +.IR ); +resulting for example in +.B %"PRId64" +or +.B %"PRIi64" +for printing +.I int64_t +values. +The length modifiers for the +.IR int N _t +types for the +.BR scanf (3) +family of functions +are expanded by macros of the forms +.BR SCNd N +and +.BR SCNi N, +(defined in +.IR ); +resulting for example in +.B %"SCNd8" +or +.B %"SCNi8" +for scanning +.I int8_t +values. +.PP +Conforming to: C99 and later; POSIX.1-2001 and later. +.PP +See also the +.IR __int128 , +.IR intmax_t , +.IR uint N _t , +.I uintmax_t +and +.I unsigned __int128 +types in this page. +.RE .\"------------------------------------- lconv ------------------------/ .TP .I lconv