Quote:
Originally Posted by smanu
But could you tell me what are those other number of ways in which we can check if our system is BSD derived or V derived?
Off the top of my head the three main differences for a programmer are:
1. STREAMS
if has #include <sys/stream.h> it's SYS V
2. signals
if it has sigblock & sigsetmask it's BSD, if sighold & sigrelse it's SYS V
3. terminal handling
check prototype for "setpgrp()", if takes two args it's BSD
But as systems have all adopted BSD sockets and merging to standardisation on posix compatibility it is more important to check the actual feature you are trying to use.