Where to implement fork()
Joel Sherrill
joel.sherrill@oarcorp.com
Thu Jul 12 23:11:00 GMT 2012
On 07/09/2012 02:23 PM, Christian Haake wrote:
> Hi,
> while implementing newlib stubs I'm wondering where I should implement
> fork().
> I successfully implemented _sbrk in
> <pathtonewlib>/newlib/libc/sys/arm/syscalls.c but there is no function
> stub called _fork(void)
> Or can I simply add this function stub into this file?!?
> Can anybody give me a hint?
I suspect you are adding bare board specific code. This would
go in libgloss where there are already a number of stubs
for fork() and other methods.
IMO there are some unfortunately named directories in libc/sys which
appear to be generic CPU support but they are really for specific
"systems." The sys/arm directory is questionably named because
it is really support for the ARM Angel/RDI monitor. Mostly a
confusing historical artifact at this point.
> Thanks in advance...
> Chris
--
Joel Sherrill, Ph.D. Director of Research& Development
joel.sherrill@OARcorp.com On-Line Applications Research
Ask me about RTEMS: a free RTOS Huntsville AL 35805
Support Available (256) 722-9985
More information about the Newlib
mailing list