From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail-wm1-x341.google.com (mail-wm1-x341.google.com [IPv6:2a00:1450:4864:20::341]) by sourceware.org (Postfix) with ESMTPS id F2D9C398C036 for ; Thu, 1 Oct 2020 16:38:55 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.3.2 sourceware.org F2D9C398C036 Received: by mail-wm1-x341.google.com with SMTP id t17so3829045wmi.4 for ; Thu, 01 Oct 2020 09:38: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=7p7McFU1Um+F/PunafficNL/+JG1lUi18PcAuWj3Hy0=; b=ej7x1pkyzbAH/qMbWC0YHwhQn96Ftw93vnDZYM9pn0G8hOc6Pij+bHwGuDMI5/7bqS 4Mb9lPd9CwKIvHRxvOZNSEiiEKVB+fiBWKK6a81hCkscOQ3ahEBPTjvDUwaunspxnPyQ ayVTVuYngft4rpVOpsi4M3bKip/LR35QOhK0Yoa5a4b6nOPqygOJ5puTaGMRvQhMIhhl R09kXoExKiAOvNXI7do/udai/xfDXA71NAHxoTSAFCElB07dFYMEho/F94ozRNAo3gei imATU3WQ3lRqJhtAd5Ei19LLWwCGWFH8f2RXTWU4E+XVFGiKbIdrXMLZXZTGzJMLexXF Q1cg== X-Gm-Message-State: AOAM530wTHMAxuHVGgjiqOKhZIDnN58/hWXvcIpMykT4kDdUSwwInrnI uYFNXUBqJR0yFV/3W46HRICzdRprJDI= X-Google-Smtp-Source: ABdhPJwEpIlwNWgI8vSGNS7o0wEIF63bzs9Ig65oiR8Y5Tmw995erLRJM1GmLL7dO9ZPHm4fz+H16A== X-Received: by 2002:a1c:4c05:: with SMTP id z5mr827637wmf.47.1601570334796; Thu, 01 Oct 2020 09:38: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 h17sm10384537wro.27.2020.10.01.09.38.53 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Thu, 01 Oct 2020 09:38:54 -0700 (PDT) Cc: mtk.manpages@gmail.com, linux-man@vger.kernel.org, gcc@gcc.gnu.org, libc-alpha@sourceware.org Subject: Re: [PATCH v2 1/2] system_data_types.7: Add 'void *' To: Alejandro Colomar References: <41affebd-3354-9420-0048-bffd14535e95@gmail.com> <20201001154946.104626-2-colomar.6.4.3@gmail.com> From: "Michael Kerrisk (man-pages)" Message-ID: Date: Thu, 1 Oct 2020 18:38:53 +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: <20201001154946.104626-2-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=-3.3 required=5.0 tests=BAYES_00, DKIM_SIGNED, DKIM_VALID, DKIM_VALID_AU, DKIM_VALID_EF, FREEMAIL_FROM, 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 16:38:57 -0000 Hi Alex, > +According to the C language standard, > +a pointer to any object type may be converted to a pointer to > +.I void > +and back. > +POSIX further requires that any pointer, > +including pointers to functions, > +may be converted to a pointer to > +.I void > +and back. I know you are correct about POSIX, but which part of the standard did you find this information in? The only reference that I find in POSIX is the dlsym() spec. Is it covered also somewhere else in the standrd? Thanks, Michael -- Michael Kerrisk Linux man-pages maintainer; http://www.kernel.org/doc/man-pages/ Linux/UNIX System Programming Training: http://man7.org/training/