From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from lists.gentoo.org (pigeon.gentoo.org [208.92.234.80]) by finch.gentoo.org (Postfix) with ESMTP id EFE811382BD for ; Thu, 16 Jun 2016 12:47:17 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id 4CCC0E0AAC; Thu, 16 Jun 2016 12:47:15 +0000 (UTC) Received: from mail-oi0-f67.google.com (mail-oi0-f67.google.com [209.85.218.67]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by pigeon.gentoo.org (Postfix) with ESMTPS id D9E27E0AAC for ; Thu, 16 Jun 2016 12:47:14 +0000 (UTC) Received: by mail-oi0-f67.google.com with SMTP id a64so7899599oii.1 for ; Thu, 16 Jun 2016 05:47:14 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:in-reply-to:references:from:date:message-id:subject:to :cc; bh=vUCjiASssZG31vkATetzxh/wPp39aqopnIgcU8JcfWw=; b=nSIVK6tEHJ5VFZxZJK9nC7voCOJFcFybdS7EHbpPG+FVWSXmnCdKkYwitdgj7GzX1+ 08OuFOSR7IYmRGMnM/uXFafwbku4Xfa/wRQUyK93DyHpRv4HBMEVw5HXpxApjtnkFXww qBzKyPej8E01Sz8ZF6GVAQP0GTRFx3EyUe7me6TXGC1t4TFg77o2YUxtCCxOF0WtuVWE JojEEDLbxTHg9w2MMAf1A/tXqhul2+tCcWCq0IsRFofnJNkawQ18+sq71KQ9SHHF8ibp DdCFSnGlOWfW9Kc4pt4NzPjkk4CZLXwzM3VLlJCh6HCg0b+Qvt7yP/4NCA+vSEmGd8qD 6zEQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:mime-version:in-reply-to:references:from:date :message-id:subject:to:cc; bh=vUCjiASssZG31vkATetzxh/wPp39aqopnIgcU8JcfWw=; b=mvDlvZiECqSsjDbUwUAcr/wwfBf6UwWdEvuWHIAvC7SPwfrhV506quWMV4r40i1ISN qk4pUwGlxfbk7zxB3iBeg6o2kgswFSYcnibz3BPRHYWbxVx6BvqF25JSSvovbvjhtdVx +LtomCXS+y7Qj5pQzbrOIg3UjAsll8VW+knsZEk3IDPdOM/xkTmPIaTbyjY41XBizFIP fZR5hEMF/AT0W7tzMG3kaLgTQ4Z+RX7wfUf++Q3UlVOoROXVsNT0Mp+QDq8j4qqz5UMH MIZWv1aI6ZCa391EEWDINIIy5V4zQHstGXqzLt6zJEmHt8akZ3l6ZXP2V2WAg3VXkquQ JBWw== X-Gm-Message-State: ALyK8tK8MFZR4o4d3I5//2u2jILAg8O5WEzuvUK1zKktaac01heAThf1yTQ+Rd0AljbnY6wSISVDN2supyeqxQ== X-Received: by 10.157.46.121 with SMTP id c54mr2208426otd.14.1466081233947; Thu, 16 Jun 2016 05:47:13 -0700 (PDT) Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-Id: Gentoo musl list X-BeenThere: gentoo-musl@gentoo.org X-BeenThere: gentoo-musl@lists.gentoo.org MIME-Version: 1.0 Received: by 10.202.63.212 with HTTP; Thu, 16 Jun 2016 05:47:13 -0700 (PDT) In-Reply-To: <1c93fa87-e2c3-2737-1222-ae93003e21ad@gentoo.org> References: <20160614081043.GA364@nyan> <4228046b-02f1-1b65-f56d-6e79347e4390@gentoo.org> <20302d1d-92ff-1c4b-8939-08894c3589ca@gentoo.org> <8e7cafd9-97c7-6ca1-ad3f-95bdb0060ce0@gentoo.org> <19f9f66f-5dd4-786a-3b29-0a57c407548e@gentoo.org> <1c93fa87-e2c3-2737-1222-ae93003e21ad@gentoo.org> From: Lei Zhang Date: Thu, 16 Jun 2016 20:47:13 +0800 Message-ID: Subject: Re: [gentoo-musl] [GSoC] _GNU_SOURCE in C++ To: Luca Barbato Cc: gentoo-musl@lists.gentoo.org Content-Type: text/plain; charset=UTF-8 X-Archives-Salt: 0320cd74-a6e1-4932-ba71-2f0b4c32a34e X-Archives-Hash: 0b8a77426fcd45716dd9c2740cd2a418 2016-06-16 17:43 GMT+08:00 Luca Barbato : > On 16/06/16 05:36, Lei Zhang wrote: >> Attached is what I've got so far. >> >> Some of them are not documented in man pages, so I checked their >> declarations in musl's headers. Functions strtold_l, strtoll_l and >> strtoull_l are not available in musl, but libc++ is smart enough to >> not use them when linked against musl. I made a mistake. Actually strtold_l *is* available in musl, but hidden by _GNU_SOURCE. > beside vasprintf, the rest is covered by _XOPEN_SOURCE 700 > > Might be worth trying to do -U_GNU_SOURCES -D_XOPEN_SOURCE=700 and see > how it goes. So far vasprintf and strtold_l are not covered. vasprintf can be covered with -D_BSD_SOURCE. But _BSD_SOURCE is deprecated since glibc 2.20; I don't know if this has any impact on musl. > How vasprintf is used? It's used by . The code is kinda hard to read; I can't tell exactly what it's doing... Lei