[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: mntlib46: system(), sysconf()
Bjarne Pohlers writes:
> |>What's the aim of the MiNT lib? To be as close as possible to
> |>Unix-style libs? If so, system() breaks here! Why don't you
> |>simply fork(), child calls `/bin/sh -c' with the argument and
> |>parent waits (wait()) for termination?
>
> Please do not throw away the old system code. Call it _system or
> something like that. It is often useful uf you want to start a program
> and you do not have a /bin/sh installed!
well then there's still (v)fork/execv* or even (if you don't care
about portability) spawnv*...
but then why not, keeping the old one as _system() doesn't hurt.
i think. :) and its better than selecting the method at runtime...
>
> Bjarne
cheers
Juergen
--
J"urgen Lock / nox@jelal.hb.north.de / UUCP: ..!uunet!unido!uniol!jelal!nox
...ohne Gewehr
PGP public key fingerprint = 8A 18 58 54 03 7B FC 12 1F 8B 63 C7 19 27 CF DA