On 09.07.2012 21:53, Joel Sherrill wrote:
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.
Yes, it is board specific. I run a
./configure target=arm-elf
in the projects root for targeting arm architecture. Furthermore I
implemented the syscalls.c in the folder mentioned earlier but did not
yet consider to do my stuff in the libgloss folder. So thanks for that
hint.
But anyhow, in <pathtonewlib>/libgloss/arm/syscalls.c there is no
function stub for fork() as well.
A grep for fork in the same folder shows no function stub.
Do I have to add this stub to syscalls.c ?!? Other kinds of architecture
do have a fork.c inside.