[klibc] asprintf/vasprintf in stdlib.h
Thayne Harbaugh
tharbaugh at lnxi.com
Thu Oct 21 17:53:33 PDT 2004
On Thu, 2004-10-21 at 15:09 -0700, H. Peter Anvin wrote:
> Thayne Harbaugh wrote:
> > Add asprintf()/vasprintf() to [stdio.h]
Err, stdio.h, yeah . . ..
Occasionally I forget how to tie my shoelaces . . . or even where
they're located.
> >
> > diff -uNr klibc-0.188/include/stdio.h udev-040/klibc-0.188/include/stdio.h
> > --- klibc-0.188/include/stdio.h 2004-10-19 12:16:48.000000000 -0600
> > +++ udev-040/klibc-0.188/include/stdio.h 2004-10-21 14:25:02.725984816 -0600
> > @@ -120,4 +120,11 @@
> >
> > __extern int rename(const char *, const char *);
> >
> > +
> > +#ifdef _GNU_SOURCE
> > +__extern int asprintf(char **, const char *, ...);
> > +__extern int vasprintf(char **, const char *, va_list);
> > +#endif /* GNU_SOURCE */
> > +
>
> Please drop the #ifdefs :)
I guess I was trying too hard.
Does that mean you want another patch, then? :)
FWIW, with the minor patches I just submitted (asprintf, syslog, system,
elf), stock module-init-tools compiles with minor exceptions:
getopt_long(): these calls can be removed or done with compat magic.
fnmatch(): this is a bit of a pain and I haven't dealt with it very
well.
autoconf: needs some magic so that the build can be pointed at klibc
dir.
--
Thayne Harbaugh
Linux Networx
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 189 bytes
Desc: This is a digitally signed message part
Url : http://www.zytor.com/pipermail/klibc/attachments/20041021/12b2ac45/attachment.bin
More information about the klibc
mailing list