From mboxrd@z Thu Jan 1 00:00:00 1970 Message-ID: <775b8d190706192248r6116f386v96e2083cdfc08d45@mail.gmail.com> Date: Wed, 20 Jun 2007 15:48:05 +1000 From: "Bruce Ellis" To: "Fans of the OS Plan 9 from Bell Labs" <9fans@cse.psu.edu> Subject: Re: [9fans] equivalent of fstat | grep $portnumber ? In-Reply-To: <20070620004640.4A0111E8C4C@holo.morphisms.net> MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Content-Disposition: inline References: <568bd746aa51d85f82f65c08e17dbdc9@plan9.bell-labs.com> <20070620004640.4A0111E8C4C@holo.morphisms.net> Topicbox-Message-UUID: 828b3f82-ead2-11e9-9d60-3106f5b1d025 i have dark memories of updating a sunos machine many years ago. the disk got kinda full and we were in "WTF do i do mode". my blender broke down so i had to send brian out to get a new one 'cause we needed more cocktails. we could only use static linked progs because the libraries weren't their yet. many shell scripts were involved. "rm" was dynamically linked, very handy when you want to clean things up. ed worked and shell script "rm" which did an "echo > $i" and a few others got us thru the rum & fruit based twilight zone. (yes - it's not the same but it frees stuff.) brucee On 6/20/07, Russ Cox wrote: > > 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 > >