> actually, seriously, i'd like a verison of ps in rc.
> for the minimal boot fs on the compute nodes i have things like
> fn cat {
>       sed '' $*
> }
> where's fn ps?

apologies for continuing this awful discussion.

i used to do this on the single-floppy boot image
but i tired of making up clever things like that.

the last time the single-floppy boot image filled
i wrote a few programs to combine many
binaries into a single one.  this saves space
because they all end up using the same instance
of libc, libbio, etc instead of having multiple ones.
this sort of thing is very common on unix for
embedded systems.  the binary looks at argv0
to figure out which main function to run.

/sys/lib/dist/cmd/multi/mkfile takes care of
combining a rather large number of binaries
that the boot floppy needed.  the final binary
is 1300k compared with 4200k for the collection
of the others.

you can't mix in programs that use libthread.

russ

Reply via email to