From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail-wr1-x442.google.com (mail-wr1-x442.google.com [IPv6:2a00:1450:4864:20::442]) by sourceware.org (Postfix) with ESMTPS id 69B4B3985434 for ; Thu, 1 Oct 2020 11:35:05 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.3.2 sourceware.org 69B4B3985434 Received: by mail-wr1-x442.google.com with SMTP id k15so5266650wrn.10 for ; Thu, 01 Oct 2020 04:35:05 -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=sc1HEdjN9yz+BVm5n5xkhm7v/iKC9N04FA/4jML8/rM=; b=UTqd74g6QEcU5Znp17TGychywz71pNHlfOzWYa//sTd9ck+O8El72vZdvNImTLKhM4 j1eeKa6awt463CMjeRk8H9ImKyWk5hJYVgDPPA5dBzV0gCu6XNz25JAOAser5LEufFOX 3AKgE3uDxdNF3o/kZkzoyatu0OjcQ0x34s6NcBbgxdXFMWyP7xfVYMlycD1E8LTTDEWp 2RpsVaRfFlL+NFr2Ut/gqhGaTl7oijyxCv0h91q7rKYsBUEdFzetjFIKc0DdYoiZlGwT u8963Ksgsc/CrVeKZznqOHURTzuYjeQ/sBcV8xPYn08Vy9jYef8uLqOsZDgzoWQ5f7yx eJAw== X-Gm-Message-State: AOAM530ZNsL08RRgGqWW6QM2Ynvc7zasVDSnQt4fOxZ3SHQUo77V9zkQ MSUhnsQjaGiHC5Pufr5G37k= X-Google-Smtp-Source: ABdhPJyHFccR9+45NqAmsnb8oltLItauoa22FKwcH1M0dU4MIBl+GVg3rz86gx/WPRMVLc3Qa8e1gA== X-Received: by 2002:a5d:69c2:: with SMTP id s2mr8465078wrw.389.1601552104487; Thu, 01 Oct 2020 04:35:04 -0700 (PDT) Received: from ?IPv6:2001:a61:2479:6801:d8fe:4132:9f23:7e8f? ([2001:a61:2479:6801:d8fe:4132:9f23:7e8f]) by smtp.gmail.com with ESMTPSA id v9sm9156641wrv.35.2020.10.01.04.35.03 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Thu, 01 Oct 2020 04:35:03 -0700 (PDT) Cc: mtk.manpages@gmail.com, linux-man@vger.kernel.org, libc-alpha@sourceware.org, gcc@gcc.gnu.org Subject: Re: [PATCH 13/16] system_data_types.7: Add 'intptr_t' To: Alejandro Colomar References: <20201001101559.77163-1-colomar.6.4.3@gmail.com> <20201001101559.77163-14-colomar.6.4.3@gmail.com> From: "Michael Kerrisk (man-pages)" Message-ID: Date: Thu, 1 Oct 2020 13:35:03 +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: <20201001101559.77163-14-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=-9.8 required=5.0 tests=BAYES_00, DKIM_SIGNED, DKIM_VALID, DKIM_VALID_AU, DKIM_VALID_EF, FREEMAIL_FROM, GIT_PATCH_0, KAM_ASCII_DIVIDERS, KAM_SHORT, NICE_REPLY_A, RCVD_IN_DNSWL_NONE, SPF_HELO_NONE, SPF_PASS, TXREP autolearn=ham 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 11:35:06 -0000 Hi Alex, On 10/1/20 12:15 PM, Alejandro Colomar wrote: > Signed-off-by: Alejandro Colomar > --- > man7/system_data_types.7 | 65 ++++++++++++++++++++++++++++++++++++++++ > 1 file changed, 65 insertions(+) Thanks. Patch applied. Cheers, Michael > diff --git a/man7/system_data_types.7 b/man7/system_data_types.7 > index f768e87ba..2632436ed 100644 > --- a/man7/system_data_types.7 > +++ b/man7/system_data_types.7 > @@ -616,6 +616,71 @@ and > .I unsigned __int128 > types in this page. > .RE > +.\"------------------------------------- intptr_t ---------------------/ > +.TP > +.I intptr_t > +.RS > +Include: > +.IR . > +Alternatively, > +.IR . > +.PP > +A signed integer type > +such that any valid > +.RI ( "void *" ) > +value can be converted to this type and back. > +According to the C language standard, it shall be > +capable of storing values in the range > +.RB [ INTPTR_MIN , > +.BR INTPTR_MAX ]. > +.PP > +The length modifier for > +.I intptr_t > +for the > +.BR printf (3) > +family of functions > +is expanded by the macros > +.B PRIdPTR > +and > +.B PRIiPTR > +(defined in > +.IR ); > +resulting commonly in > +.B %"PRIdPTR" > +or > +.B %"PRIiPTR" > +for printing > +.I intptr_t > +values. > +The length modifier for > +.I intptr_t > +for the > +.BR scanf (3) > +family of functions > +is expanded by the macros > +.B SCNdPTR > +and > +.B SCNiPTR, > +(defined in > +.IR ); > +resulting commonly in > +.B %"SCNdPTR" > +or > +.B %"SCNiPTR" > +for scanning > +.I intptr_t > +values. > +.PP > +Conforming to: > +C99 and later; POSIX.1-2001 and later. > +.PP > +See also the > +.I uintptr_t > +and > +.I void * > +.\" TODO: Document void * > +types in this page. > +.RE > .\"------------------------------------- lconv ------------------------/ > .TP > .I lconv > -- Michael Kerrisk Linux man-pages maintainer; http://www.kernel.org/doc/man-pages/ Linux/UNIX System Programming Training: http://man7.org/training/