From patchwork Tue Sep 29 10:30:25 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Alejandro Colomar X-Patchwork-Id: 40536 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 EDBFF39874D3; Tue, 29 Sep 2020 10:31:34 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org EDBFF39874D3 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=sourceware.org; s=default; t=1601375495; bh=LeZ7IaJkTPLvjw3p7a3pNNkRqNrrvDostLnloiu7KTs=; 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=HkSJ8XuZIZ38skaP7kzDGHOlDZlQRDJpqlR8kr8AkIVpZodupyqRMbKh9UEM6UApU yzuNsd3c6s9oyxLLPxIRxqXun4AYZt9eJTto4bLYYEELv6p2t003UzFq0NH/OmzCi1 of67/kl2HNaHtthiS5MgL3nQ4WUJ8u3yKO16VuhE= X-Original-To: libc-alpha@sourceware.org Delivered-To: libc-alpha@sourceware.org Received: from mail-wm1-x342.google.com (mail-wm1-x342.google.com [IPv6:2a00:1450:4864:20::342]) by sourceware.org (Postfix) with ESMTPS id 3680F3987492 for ; Tue, 29 Sep 2020 10:31:30 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.3.2 sourceware.org 3680F3987492 Received: by mail-wm1-x342.google.com with SMTP id e17so4090181wme.0 for ; Tue, 29 Sep 2020 03:31:30 -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=LeZ7IaJkTPLvjw3p7a3pNNkRqNrrvDostLnloiu7KTs=; b=VEbwcXDOUkyLOBGD03QnEZBVDAFH3Q0TEjePHoPgJNHUje/l5ru2B+9QV4yY/ZjAbJ 5yg5gvIGoin7OPyqPma29Ie9ReFLZhgDtbvJXEGgTFB/VFgRz4byxXMyZTJIf4KVxVL+ tt53VCAT2q968bBDFRDFnAtAoJv0D+bxEUPcSeF7WHm4qRAypO+YnpgJBof+PLXwfENF zAVPp1jtRNiSNdX9zmGEHntZW2RbOWBKTL2sLyw/MzNrjg9q7DZM0v9IIbQMmSEFo3O+ j4liY71XyzsHWLViobSA4d6NvbVUgSoovptyTgcXwp9vG7Qq2nSLU8hzH3p+gaGJSous XEew== X-Gm-Message-State: AOAM533/AjR7gEavAk7ipHT9DoWahwcbILyA1Y2H3qRphRKiR5Aurr3W 6xohU1sXL7m4979mq1qLUKs= X-Google-Smtp-Source: ABdhPJx9qFaJ1ePWnTIo4sRlG2dgtD75V1yEHX3FakPnn3mtAwCjG4A7gKaUW4Ni39VpUDfHd+dTjg== X-Received: by 2002:a05:600c:2312:: with SMTP id 18mr3685351wmo.141.1601375489155; Tue, 29 Sep 2020 03:31:29 -0700 (PDT) Received: from localhost.localdomain ([170.253.60.68]) by smtp.googlemail.com with ESMTPSA id t5sm5611464wrb.21.2020.09.29.03.31.27 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 29 Sep 2020 03:31:28 -0700 (PDT) To: mtk.manpages@gmail.com Subject: [PATCH v2 3/8] system_data_types.7: Add 'uintmax_t' Date: Tue, 29 Sep 2020 12:30:25 +0200 Message-Id: <20200929103028.56566-4-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 | 55 ++++++++++++++++++++++++++++++++++++++++ 1 file changed, 55 insertions(+) diff --git a/man7/system_data_types.7 b/man7/system_data_types.7 index e718b3c30..2e7aca7d2 100644 --- a/man7/system_data_types.7 +++ b/man7/system_data_types.7 @@ -1136,6 +1136,61 @@ See also: .BR getpwnam (2), .BR credentials (7) .RE +.\"------------------------------------- uintmax_t --------------------/ +.TP +.I uintmax_t +.RS +.br +Include: +.IR . +Alternatively, +.IR . +.PP +An unsigned integer type +capable of representing any value of any unsigned integer type +supported by the implementation. +According to the C language standard, it shall be +capable of storing values in the range [0, +.BR UINTMAX_MAX ]. +.PP +The macro +.B UINTMAX_C +.\" TODO: Document UINT*_C(3) +expands its argument to an integer constant of type +.IR uintmax_t . +.PP +The length modifier for +.I uintmax_t +for the +.BR printf (3) +and the +.BR scanf (3) +families of functions is +.BR j ; +resulting commonly in +.B %ju +or +.B %jx +for printing +.I uintmax_t +values. +.PP +Bugs: +.I uintmax_t +is not large enough to represent values of type +.I unsigned __int128 +in implementations where +.I unsigned __int128 +is defined and +.I unsigned long long +is less than 128 bits wide. +.PP +Conforming to: C99 and later; POSIX.1-2001 and later. +.PP +See also the +.I intmax_t +type in this page. +.RE .\"------------------------------------- va_list ----------------------/ .TP .I va_list