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]

Re: vfscanf in newlib


Christopher Faylor wrote:
> 
> 
> I am not sure why the _r functions were created with an underscore.  I
> couldn't find anything in the Single Unix Specification which talked
> about a _r function for scanf.  It did seem inconsistent to export
> symbols with two leading underscores, though.
> 
> I just checked and see that there are a few functions defined that way
> now but I'm not sure what the rationale for doing things this way is.
> 
> Jeff, could you explain why the _r functions have a leading underscore?
> Is this because they are newlib-only functions, i.e., they don't seem to
> adhere to a standard?
> 

That is correct.  These functions are using the newlib reentrancy structure 
which is not standard.  These functions should not be confused with actual
standard _r functions like POSIX rand_r and strtok_r.


> cgf


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