From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.1 (2015-04-28) on sa.local.altlinux.org X-Spam-Level: X-Spam-Status: No, score=-1.0 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,FREEMAIL_FROM,FSL_HELO_HOME autolearn=no autolearn_force=no version=3.4.1 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=subject:to:references:from:message-id:date:user-agent:mime-version :in-reply-to:content-language:content-transfer-encoding; bh=BjUnSuTEo5doB0GnBGpVzi1AXQhBjxkKfJphrKDchY0=; b=S4CbGg9s2ParAomajMjKacS7V8KkThHkrsQNa7kOy1gvHufE1PRjg6ZeawZrJXJC5w ks8Bk2fGcOwk/XPkNTLKTqDvcXHexAKJqYiP957pWxLOFlXcl+zzXrR/VXpIc6MCoGyf PH4XuR7Jh0A8ly8BBnm7XInMP6Wtrw3PGPu8crMDHGiWcb3kLN84rjF1dgXD2Hg2gnRp sdLdqczBvbZnlVGOmiHKR04k7wM+lJ0NM2Bdk2RlhaibsT+uURom97AxAe/Pv8saI2ic XqYKzRRl+j7wTI6+6td30uVuLr1hfvLK0LMGDCPD/CCcEVvHbkI78IuF5IutCKmfD4ET hKMw== 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:message-id:date :user-agent:mime-version:in-reply-to:content-language :content-transfer-encoding; bh=BjUnSuTEo5doB0GnBGpVzi1AXQhBjxkKfJphrKDchY0=; b=Ewcni5zcQ1hf24AsVnFq0Oe0YUru34yjAtkjCIZiw8nS5lQQo3rztMhs1gwaZtHlmJ vRhNsPxfaCgV3vGktXXvPI83G7xjAiRdGbnXWbwyEOHCEW9lTEJQKsdk0rKlkMmXuHzy vyKWk9c4cfGcHmVpiE5Q/gA7t1MUd13Q7kHdofbIvqkI3F6Q50hJL1qEHgv31AlXUiDh idWRbt8eBnIeiBszD+ogIPjM1TRMUtgYalgHoGVevmHxYrU04tw59awweysbb6fUOMJ4 7rJ5FqTDy1DPyIeLtiO0FRin3bpQgY0KirxmaNNapVYWzH23Og+oa2lk+ku/8D2KvNLC kzEQ== X-Gm-Message-State: AIVw110dGV8GFV0PE9ZYjEl5mpkne1jqREJ7j8fx/tqoKk56LaiBhgzu Rwp40yPkY8uZYiZH0YM= X-Received: by 10.25.20.226 with SMTP id 95mr5895314lfu.194.1501527293167; Mon, 31 Jul 2017 11:54:53 -0700 (PDT) To: devel@lists.altlinux.org References: <043c96a8-c577-6952-09be-2ed9f7e44845@gmail.com> <4539b76c-8dcc-5fbb-e4ca-4244cf4cc5f8@gmail.com> <20170731095807.GC29253@imap.altlinux.org> <20170731101547.GA5776@lks.home> <20170731105224.GA2854@altlinux.org> From: =?UTF-8?B?0JTQvNC40YLRgNC40Lkg0KXQsNC90LbQuNC9?= Message-ID: <382cf736-040a-ea18-4404-8835b2e26ec1@gmail.com> Date: Mon, 31 Jul 2017 21:56:02 +0300 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:52.0) Gecko/20100101 Thunderbird/52.1.1 MIME-Version: 1.0 In-Reply-To: <20170731105224.GA2854@altlinux.org> Content-Type: text/plain; charset=koi8-r; format=flowed Content-Language: en-US Content-Transfer-Encoding: 8bit Subject: Re: [devel] =?utf-8?b?0KfRgtC+INGN0YLQvj8g0J/QtdGA0LXQvtC/0YDQtdC0?= =?utf-8?b?0LXQu9C10L3QuNC1INGE0YPQvdC60YbQuNC5Pw==?= X-BeenThere: devel@lists.altlinux.org X-Mailman-Version: 2.1.12 Precedence: list Reply-To: ALT Linux Team development discussions List-Id: ALT Linux Team development discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 31 Jul 2017 18:54:56 -0000 Archived-At: List-Archive: List-Post: 31.07.2017 13:52, Dmitry V. Levin пишет: > Hi, > > > Текущее состояние по добавлению strlcpy и strlcat в glibc: > https://sourceware.org/ml/libc-alpha/2017-06/msg00703.html > На данный момент остался только один человек, препятствующий принятию > этого патча. Ну что же, подождём ещё немного. > Вот что мне ответили: > Thanks for your comment! > If we modify the prototype declaration will it then not conflict with other distributions? > __THROW is a preprocesor symbol which not all compilers may have? > Similar for __nonnull. > The declarations we have now originate from OpenBSD/FreeBSD. > ALT Linux wants to improve on them and so introduces differences? > Does ALT Linux have a preprocessor symbol by which we can identify it? > Is there a way we can avoid the ALT Linux declaration from string.h? > Could you perhaps attach the output of g++ -E /usr/include/string.h ? > What would be harmless is if you add a extern "C" linkage specification. > Would that suffice? Probably not. > What does the ALT Linux team say? > Sorry for all the questions. Прокомментируйте, пожалуйста, я так глубоко не интересовался. Вывод g++ -E /usr/include/string.h на предмет strlcpy и strlcat: extern size_t strlcpy (char *__restrict __dest, const char *__restrict __src, size_t __n) # 585 "string.h" 3 4 throw () __attribute__ ((__nonnull__ # 585 "string.h" (2) # 585 "string.h" 3 4 )) # 585 "string.h" ; extern size_t strlcat (char *__restrict __dest, const char *__restrict __src, size_t __n) # 591 "string.h" 3 4 throw () __attribute__ ((__nonnull__ # 591 "string.h" (2) # 591 "string.h" 3 4 )) # 591 "string.h" ; Ссылку выше прочитал, но тоже ничего не понял. :-( Прошу прощения.