This is the mail archive of the
newlib@sourceware.org
mailing list for the newlib project.
Questions about porting newlib
- From: Simone Crestani <ilpippo at gmail dot com>
- To: newlib at sourceware dot org
- Date: Fri, 17 Aug 2007 17:19:22 +0200
- Subject: Questions about porting newlib
Hello everybody,
I'm currently trying to port newlib to another OS.
I've got a few questions, mainly about reentrancy (who doesn't have
questions about reentrancy?):
- I'd like to use the __getreent() macro. Is it fine to add
__DYNAMIC_REENT__ to newlib_cflags in configure.host? I don't need to
define REENTRANT_SYSCALLS_PROVIDED nor MISSING_SYSCALL_NAMES, do I? And
should I set syscall_dir to syscalls?
- Am I correct thinking that I just need to implement the stubs of
_open, _exit, ... and not _open_r, _exit_r, ...? If I want to use
another implementation of malloc, do I need to implement malloc or also
_malloc_r?
- What's makedoc for? Can I disable its compilation? I ask this because
I'm using a native gcc (I'm not cross-compiling) and I don't see the
point of installing another C library just to compile makedoc (which
requires stdio.h and ctype.h)
Thanks,
Simone