IRIX seems to use some variant of the "magic number" database to assign file type in Indigo Magic. The association between the file type and default application is, however, extremely involved and obscure. I like the use of FTR, though.