Received: by 2002:a05:6a10:22f:0:0:0:0 with SMTP id 15csp1461024pxk; Fri, 2 Oct 2020 10:04:22 -0700 (PDT) X-Google-Smtp-Source: ABdhPJyE4xHq/8NqR1hODG/qnSsNAHL0HNkdl25Se54pG2OOnQxrlRz4E/hNtiu+tBBHyIDpKT4O X-Received: by 2002:a50:9f66:: with SMTP id b93mr3266906edf.201.1601658262245; Fri, 02 Oct 2020 10:04:22 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1601658262; cv=none; d=google.com; s=arc-20160816; b=t7oq26x6kVr7VNT75iBvRSmu5NqDsh2FLdt5hQaAHb1pEn4BOeVwCXTllSCX17KQU8 PSdwHNkcjnjAP1p+qQW5htta+Q/0f53hIAShca+55TtjOsfJkFlv6DddPgfzf2toy5Dx vfXw1xP//JenlHjod0Qp4nldeJHD1ereSwFvLTwn1Zw2ZvKbeZLleufsh8Dz9YlAqKX9 0IGivMhkM8Ei+TeaAwK023ajsOXiv3IJxALpjXN5e2uUyqfKxFmIbU4VU4aug4faK5gP 3TkbtpkZOK1FV+CgTOWgvsRtoIsT7kuRGXnCyu3FREYkuhfyEvVmttRYyzft20kfJxhD +1NA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:content-language :in-reply-to:mime-version:user-agent:date:message-id:organization :autocrypt:from:references:cc:to:subject; bh=Ji7iWyv9mWgc8Gl/FtSOfvDYYdGlS65P+y4DFFi3508=; b=mqzbbbEXjbtQMlmMUtlawv9NqiEjfNtP0V7tH0MER7wYtfCCColkZxK60cH8eFOeB5 QltKiDRy+1Run969rn3Ixgsrt4H0aHhtoI4CTSyBuUoElpyZrJ/MqEcd1eq2toSPOAke z9Vq+q/WyDxynuCOaHlqUyZZ9cFLJt/6e6z314daoVo4sfBKJedQKPuMhXjeTwBHopod PdA0kE3MQvMS1Cy+knTpaynw4bzU/KOpPCQOtmUIoQb9ZpnyqxlZRTiuUavI3opHTZyv RpawD0bb+g+TTT+Rt5KOQl+QgEhH0wvBy08oTlTd58wfOwzHip55td128vFN09AfeDF4 x0SQ== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id f14si1430556edc.358.2020.10.02.10.03.59; Fri, 02 Oct 2020 10:04:22 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S2387602AbgJBRCT (ORCPT + 99 others); Fri, 2 Oct 2020 13:02:19 -0400 Received: from zimbra.cs.ucla.edu ([131.179.128.68]:49148 "EHLO zimbra.cs.ucla.edu" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726051AbgJBRCT (ORCPT ); Fri, 2 Oct 2020 13:02:19 -0400 Received: from localhost (localhost [127.0.0.1]) by zimbra.cs.ucla.edu (Postfix) with ESMTP id 6C874160052; Fri, 2 Oct 2020 09:53:26 -0700 (PDT) Received: from zimbra.cs.ucla.edu ([127.0.0.1]) by localhost (zimbra.cs.ucla.edu [127.0.0.1]) (amavisd-new, port 10032) with ESMTP id IzUKaIsyecQU; Fri, 2 Oct 2020 09:53:25 -0700 (PDT) Received: from localhost (localhost [127.0.0.1]) by zimbra.cs.ucla.edu (Postfix) with ESMTP id AA237160065; Fri, 2 Oct 2020 09:53:25 -0700 (PDT) X-Virus-Scanned: amavisd-new at zimbra.cs.ucla.edu Received: from zimbra.cs.ucla.edu ([127.0.0.1]) by localhost (zimbra.cs.ucla.edu [127.0.0.1]) (amavisd-new, port 10026) with ESMTP id 8rffufaipKAM; Fri, 2 Oct 2020 09:53:25 -0700 (PDT) Received: from [192.168.1.9] (cpe-23-243-218-95.socal.res.rr.com [23.243.218.95]) by zimbra.cs.ucla.edu (Postfix) with ESMTPSA id 439C2160052; Fri, 2 Oct 2020 09:53:25 -0700 (PDT) Subject: Re: [PATCH v4 1/2] system_data_types.7: Add 'void *' To: Alejandro Colomar Cc: mtk.manpages@gmail.com, linux-man@vger.kernel.org, gcc-patches@gcc.gnu.org, libc-alpha@sourceware.org, linux-kernel@vger.kernel.org, jwakely.gcc@gmail.com, David.Laight@ACULAB.COM References: <20201002121645.23646-1-colomar.6.4.3@gmail.com> <20201002151419.32053-2-colomar.6.4.3@gmail.com> From: Paul Eggert Autocrypt: addr=eggert@cs.ucla.edu; prefer-encrypt=mutual; keydata= mQINBEyAcmQBEADAAyH2xoTu7ppG5D3a8FMZEon74dCvc4+q1XA2J2tBy2pwaTqfhpxxdGA9 Jj50UJ3PD4bSUEgN8tLZ0san47l5XTAFLi2456ciSl5m8sKaHlGdt9XmAAtmXqeZVIYX/UFS 96fDzf4xhEmm/y7LbYEPQdUdxu47xA5KhTYp5bltF3WYDz1Ygd7gx07Auwp7iw7eNvnoDTAl KAl8KYDZzbDNCQGEbpY3efZIvPdeI+FWQN4W+kghy+P6au6PrIIhYraeua7XDdb2LS1en3Ss mE3QjqfRqI/A2ue8JMwsvXe/WK38Ezs6x74iTaqI3AFH6ilAhDqpMnd/msSESNFt76DiO1ZK QMr9amVPknjfPmJISqdhgB1DlEdw34sROf6V8mZw0xfqT6PKE46LcFefzs0kbg4GORf8vjG2 Sf1tk5eU8MBiyN/bZ03bKNjNYMpODDQQwuP84kYLkX2wBxxMAhBxwbDVZudzxDZJ1C2VXujC OJVxq2kljBM9ETYuUGqd75AW2LXrLw6+MuIsHFAYAgRr7+KcwDgBAfwhPBYX34nSSiHlmLC+ KaHLeCLF5ZI2vKm3HEeCTtlOg7xZEONgwzL+fdKo+D6S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2ITZUGtrEjESlE6Dscx734HKd r5ORIocLUUKEOGeiU6DGhGFdb5Twu0Sn+u1mUPDN0M++CdMvClIE8klo4G91EOImu1Upb8xc OPQwxh1jwqSrU5QwoNmSYegQSHLpIUurFz1iQUh1vpPXzKinkWEqv4IqA1ciL+LyySuLkp7M sJpVRMbWJCNWOOSbaH4oDBJ5dHMGc35x5mosCk90PXknuFDDsYHfDo5smf9lo6YXx7N9 Organization: UCLA Computer Science Department Message-ID: <3941e130-df05-778b-dc76-90cd58400192@cs.ucla.edu> Date: Fri, 2 Oct 2020 09:53:25 -0700 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: <20201002151419.32053-2-colomar.6.4.3@gmail.com> Content-Type: text/plain; charset=utf-8; format=flowed Content-Language: en-US Content-Transfer-Encoding: 7bit Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 10/2/20 8:14 AM, Alejandro Colomar wrote: > +.I void * GNU style is a space between "void" and "*", so this should be '.I "void\ *"', both here and elsewhere. The backslash prevents a line break. > +Conversions from and to any other pointer type are done implicitly, > +not requiring casts at all. > +Note that this feature prevents any kind of type checking: > +the programmer should be careful not to cast a Change "cast" to "convert", since the point is that no cast is needed. > +.PP > +The conversion specifier for > +.I void * > +for the > +.BR printf (3) > +and the > +.BR scanf (3) > +families of functions is > +.BR p ; > +resulting commonly in > +.B %p > +for printing > +.I void * > +values. %p works with any object pointer type (or in POSIX, any pointer type), not just void *. Should also mention "void const *", "void volatile *", etc. Plus it really should talk about plain "void", saying that it's a placeholder as a return value for functions, for casting away values, and as a keyword in C11 for functions with no parameters (though this is being changed in the next C version!). I sent comments about most of this stuff already.