fork on uClinux

Peter S. Mazinger ps.m at gmx.net
Wed May 24 20:45:04 UTC 2006


On Wed, 24 May 2006, Shaun Jackman wrote:

> On 5/24/06, Phil Wilshire <pwilshire at cox.net> wrote:
> ...
> > HI All,
> >
> > This is how it happens under uClinux..
> >
> >
> > #if defined(__UCLIBC__) && !defined(__UCLIBC_HAS_MMU__)
> > #define fork    vfork
> > #endif
> 
> I grepped the source from subversion of both uClibc and buildroot for
> the token __UCLIBC_HAS_MMU__ and found no hits. Where do these three
> lines come from?

its called ARCH_HAS_MMU nowadays

> 
> Is blindly defining fork as vfork even a good idea? It seems sketchy at best.
> 
> Cheers,
> Shaun

to find out how it works
libc/sysdeps/linux/
common/*fork.c generic versions, basically if fork syscall exists
arch/*fork.* architecture specific versions where available

Peter

-- 
Peter S. Mazinger <ps dot m at gmx dot net>           ID: 0xA5F059F2
Key fingerprint = 92A4 31E1 56BC 3D5A 2D08  BB6E C389 975E A5F0 59F2




More information about the uClibc mailing list