This is the mail archive of the newlib@sources.redhat.com mailing list for the newlib 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: Why __getline and not just getline?


On Jul  7 18:48, Brian Dessent wrote:
> Corinna Vinschen wrote:
> 
> > can anybody tell me why the getline and getdelim functions are
> > double-underscored (__getline, __getdelim) and not just exported
> > as getline and getdelim as in glibc?  Would it hurt to change this?
> 
> Perhaps the intent was for there to be a "#define getline __getline" (as
> in libc/sys/linux/sys/stdio.h) only on certain platforms, so that it's
> only selectively available as getline() on those platforms?

Oh sure.  Doh.  Thanks for noticing.  I'll do the same in Cygwin's
sys/stdio.h.


Corinna

-- 
Corinna Vinschen
Cygwin Project Co-Leader
Red Hat, Inc.


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