This is the mail archive of the elfutils-devel@sourceware.org mailing list for the elfutils project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: [PATCH] Check for existence of asprintf and vasprintf


On 22 Feb 2017 18:43, Ulf Hermann wrote:
> > 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.

you're probably looking at the raw module list.
you'll want to look at the full documentation instead:
	https://www.gnu.org/software/gnulib/MODULES.html

basename() is in the dirname module

you're correct that GNU strerror_r is not handled by gnulib.
that doesn't look like it's too hard to deal with, but it is
something that'd have to be considered.
-mike

Attachment: signature.asc
Description: Digital signature


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]