Steve Gonczi wrote:
> Here is another, interesting wrinkle:
> 
> Looking at /usr/bin and /usr/sbin,  I notice that a whole bunch of seemingly 
> unrelated
> utilities appear to be just hard links to a shared file.  ( ls -il reveals a 
> shared
> inode number, same size, and the same link count to groups of them).
> 
> I am guessing that some groups of these utilities go through common front end 
> code, 
> that then dispatches to the correct bits based on argv0.  Could someone 
> confirm this?
> 
> This would explain why recompiling ztest and zdb and copying the new bits 
> into /usr/bin 
> and /usr/sbin respectively resulted in a whole bunch of my utilities 
> "becoming zdb".

They are links to isaexec, which is a wrapper executable that runs the most 
appropriate version for the current machines.

So zdb points to isaexec which then runs, for example, i86/zdb or amd64/zdb 
depending on the machine's architecture.

-tim


Reply via email to