supplying _foo_r functions when -DREENTRANT_SYSCALLS_PROVIDED

Patrick Mansfield patmans@us.ibm.com
Fri Mar 28 00:30:00 GMT 2008


On Thu, Mar 27, 2008 at 12:55:28PM -0700, Patrick Mansfield wrote:

> > This would need to be documented 
> > in libc/include/reent.h as a new alternative.  
> 
> reent.h implies defining both is already OK, it has the "three ways", but
> then it says:
> 
>    Stubs of the reentrant versions of the syscalls exist in the libc/reent
>    source directory and are used if REENTRANT_SYSCALLS_PROVIDED isn't defined.
>    They use the native system calls: _open, _close, etc. if they're available
>    (MISSING_SYSCALL_NAMES is *not* defined), otherwise open, close, etc.
>    (MISSING_SYSCALL_NAMES *is* defined).  */

OK I misread the above ... I'll (try to) document having them both defined.

-- Patrick Mansfield



More information about the Newlib mailing list