Mac OS X is based on Unix and BSD operating systems. At its core, Mac OS X uses Darwin, which consists of the Unix kernel and associated programs and files. Darwin originated from NeXTStep, which was directly descended from BSD Unix. While Mac OS X shares a common ancestry with Linux and other Unix variants through BSD, it contains proprietary Apple code as well. The use of open source BSD code allowed Apple to build upon an established foundation and developer community while reducing development time.