This is the mail archive of the
elfutils-devel@sourceware.org
mailing list for the elfutils project.
Re: [PATCH] Check for existence of asprintf and vasprintf
- From: Ulf Hermann <ulf dot hermann at qt dot io>
- To: elfutils-devel at sourceware dot org
- Date: Wed, 22 Feb 2017 18:43:25 +0100
- Subject: Re: [PATCH] Check for existence of asprintf and vasprintf
- Authentication-results: sourceware.org; auth=none
- Authentication-results: sourceware.org; dkim=none (message not signed) header.d=none;sourceware.org; dmarc=none action=none header.from=qt.io;
- Dkim-signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=qtcompany.onmicrosoft.com; s=selector1-qt-io; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version; bh=nnTx15cZcx+dCMQq1eJ4oWQ2q+pS9E+92UAHzXgjNTc=; b=KPduKkyh1CpaNvgg37p5p3Il7tMIqTJN9lsB84tB0EQS3dP0zkpBmgbDaU9VhEw8mCuqvO/YgIW05lArrWMRr3N30usrRvM2HOxqoZ24pv7TNWt9YBNLoiyoZb80+rNcHJYXTwWZPdEUyWp/Qg9vlt84xpE66DLS5zqIi75e9tg=
- References: <4efb45a7-3035-67eb-d61e-62e795afd881@qt.io> <20170222144004.GV28432@vapier> <3716c28b-6478-ee4d-50cf-0ef43e8196f3@qt.io> <20170222163249.GW28432@vapier> <59040cc2-f681-7610-5115-9a7c6c94b6c9@qt.io> <20170222170356.GX28432@vapier>
- Spamdiagnosticmetadata: NSPM
- Spamdiagnosticoutput: 1:99
> sorry, but i don't know what you're talking about. you don't read the
> gnulib code/modules directly, you just run gnulib-tool and tell it which
> modules to import. it does all the rest for you.
>
> you want asprintf ? then add it to the list.
> modules=(
> asprintf
> glob
> vasprintf
> ...whatever else you want...
> )
> gnulib-tool --import "${modules[@]}"
I see. Some of the functions are not available from gnulib, though. In particular, GNU-style basename abd GNU-style strerror_r. There might be more.
Ulf