Perhaps this is what you are looking for:
http://src.opensolaris.org/source/xref/onnv/onnv-gate/usr/src/lib/libc/port/thr eads/scalls.c#_private_forkx
> ... after downloading the source file ...
You can browse the source code online through the following URL:
http://src.opensolaris.org/source/
Hello.
No. The first answer was what you are looking for:
scalls.c contains the following lines:
#pragma weak fork = _fork
pid_t
_fork(void)
{
return (_private_forkx(0));
}
The "#pragma weak fork = _fork" means:
If there is no other library defining a "fork" symbol then "fork" is equal to "_fork". This allows other libraries to "overwrite" "fork".
(This "overwriting" can be done when loading the executable and the .so files.)
Martin