From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 107659 invoked by alias); 5 Oct 2017 03:24:25 -0000 Mailing-List: contact libc-help-help@sourceware.org; run by ezmlm Precedence: bulk List-Subscribe: List-Post: List-Help: , Sender: libc-help-owner@sourceware.org Received: (qmail 107472 invoked by uid 89); 5 Oct 2017 03:24:05 -0000 Authentication-Results: sourceware.org; auth=none X-Virus-Found: No X-Spam-SWARE-Status: No, score=-2.1 required=5.0 tests=BAYES_00,RCVD_IN_DNSWL_LOW,RCVD_IN_SORBS_SPAM autolearn=ham version=3.3.2 spammy=ilya, libc_hidden_*, skapenko, Ilya X-HELO: mail-qt0-f178.google.com Received: from mail-qt0-f178.google.com (HELO mail-qt0-f178.google.com) (209.85.216.178) by sourceware.org (qpsmtpd/0.93/v0.84-503-g423c35a) with ESMTP; Thu, 05 Oct 2017 03:24:03 +0000 Received: by mail-qt0-f178.google.com with SMTP id o52so23044929qtc.9 for ; Wed, 04 Oct 2017 20:24:03 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:subject:to:references:from:organization :message-id:date:user-agent:mime-version:in-reply-to :content-language:content-transfer-encoding; bh=btC8sw2g5zOTZFmCnY0KhsQEbca2b+2cQsmVE+q/qSc=; b=J9o4Q39Xg4jWH4/khJ4nkKBN2wfE1fPnVY+A1lgY+PyM29SQNOxvoWGtDbOB5LA7sS tI6OrEuRfPrur4GcKdPG96qL1bPde/jRkp39bBNp+WIHtgOvOp6YnvWuXmqRrKT7N+Cj LnAq9HLmGEpioPg6/scI/ykTrPkSVUdtN+CvGfR4g6jxeLiGVJ6PBGE/rtvwkKLTTCQZ 5YaYrZt2wMcU4WI5OEB6oiZgn+l/JXAUB1PzMEdjvzbaL7Xc8VYdTFO4bsD0rrddwyDr uOgQShbob4g8xd/V1Icobp4LOEVi8EzlpWsuL3p1olbL5BhPkjSxOAuTdekPIL8uknfh GfXw== X-Gm-Message-State: AMCzsaXUFNU4wrXtDzGfFDTGUeb71Bcl97nJtZxZqZmW13UVYeo0pL5K PjEf8tI6E4toFiiHOlwF1fIuLorGF9M= X-Google-Smtp-Source: AOwi7QAZZfkeFLiUcT376VhTYFblxTktntVnFrz1XQLS1fMszRKYOt7xEmSOsDloXrVSYWYOimYy6A== X-Received: by 10.237.61.49 with SMTP id g46mr17722010qtf.233.1507173841968; Wed, 04 Oct 2017 20:24:01 -0700 (PDT) Received: from [10.150.73.190] ([184.151.231.74]) by smtp.gmail.com with ESMTPSA id f126sm10353703qkd.37.2017.10.04.20.24.00 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Wed, 04 Oct 2017 20:24:01 -0700 (PDT) Subject: Re: libc_hidden_* for public functions To: Ilya Skapenko , libc-help@sourceware.org References: From: Carlos O'Donell Message-ID: <67525ec4-1cb9-8942-cedb-50c0e4858102@redhat.com> Date: Thu, 05 Oct 2017 03:24:00 -0000 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:52.0) Gecko/20100101 Thunderbird/52.3.0 MIME-Version: 1.0 In-Reply-To: Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-IsSubscribed: yes X-SW-Source: 2017-10/txt/msg00007.txt.bz2 On 10/04/2017 04:21 PM, Ilya Skapenko wrote: > Hello! > Please, help me to understand, why and when do you use macroses like > libc_hidden_(proto, def)? > As I understood, you use them, when using this symbol by library itself. > But you could do it without these macroses, what's the purpose of them? > What for do they create __GI_*function_name* alias for function? https://sourceware.org/glibc/wiki/Style_and_Conventions#Double-underscore_names_for_public_API_functions -- Cheers, Carlos.