MS-DOS is not open source, and also it is officially abandonware. However DR-DOS is not, and neither is FreeDOS. both are open source. FreeDOS is released under the GPL, and DR-DOS is released under either a free closed source licence or a paid for restricted open source licence.