C code ported from SCO to Linux