The gethostsex() function has moved from the standard C library to the libmld.a library. Programs that need to use gethostsex() must be linked with the -lmld flag.
The gethostsex function returns one of two constants BIGENDIAN or LITTLEENDIAN for the sex of the host machine. These constants are in sex.h. delim off