So what's the copyright on this book? Does it allow free distribution of the code under a different product (Linux vs Unix?)
It doesn't matter. The code in question was released twice under the BSD license by AT&T and subsequently Caldera (a previous incarnation of today's SCO).
Of course, that was in the part of my posting that you snipped out.