Page 1 of 1

Writing a truly UNIX OS

Posted: Sun Jul 03, 2022 1:50 pm
by PavelChekov
Pretty much everything "unix" these days is actually Unix-like, but would it be possible to write an actual UNIX system, that is based off the original codebase, that would be a truly "modern" OS (e.g., 64-bit, multi-processing)?

Re: Writing a truly UNIX OS

Posted: Sun Jul 03, 2022 2:39 pm
by iansjack
What, like Solaris? Or the various BSDs?

Re: Writing a truly UNIX OS

Posted: Sun Jul 03, 2022 2:42 pm
by PavelChekov
iansjack wrote:What, like Solaris?
Yes, I guess I should be more clear: would it be possible to make an open-source hobby OS, not a commercial one, that is actually UNIX?

Re: Writing a truly UNIX OS

Posted: Sun Jul 03, 2022 2:44 pm
by iansjack
What, like FreeBSD?

Re: Writing a truly UNIX OS

Posted: Sun Jul 03, 2022 2:50 pm
by PavelChekov
iansjack wrote:What, like FreeBSD?
BSD has (to my knowledge) been rewritten to the point of not containing a single line of AT&T code.

Re: Writing a truly UNIX OS

Posted: Sun Jul 03, 2022 2:58 pm
by iansjack
But the original AT&T code is copyright. You couldn’t use it in an open source OS.

Re: Writing a truly UNIX OS

Posted: Sun Jul 03, 2022 5:24 pm
by nexos
illumos is a fork of when Solaris was open source. That is about as close as you can get to an open source true Unix.. TBH though, I'm sure there isn't any AT&T code left.

Re: Writing a truly UNIX OS

Posted: Mon Jul 04, 2022 12:14 pm
by iansjack
Just as an aside, if we are talking about the original Unix code base, it was written in PDP11 assembly language. It’s difficult to think that that code would be very relevant today.

Re: Writing a truly UNIX OS

Posted: Mon Jul 04, 2022 1:44 pm
by linguofreak
iansjack wrote:Just as an aside, if we are talking about the original Unix code base, it was written in PDP11 assembly language. It’s difficult to think that that code would be very relevant today.
The very most original Unix code base was in PDP-7 assembly language, but that and the early PDP-11 releases were completely internal to Bell Labs and only ran on a few machines ever. By the time Unix was unleashed upon the world, it was written mostly in C.

Re: Writing a truly UNIX OS

Posted: Mon Jul 04, 2022 1:49 pm
by linguofreak
iansjack wrote:But the original AT&T code is copyright. You couldn’t use it in an open source OS.
v6, v7, (PDP-11) and 32v (the VAX port of v7) are now under BSD-style licenses. System III and later are still proprietary.

Re: Writing a truly UNIX OS

Posted: Tue Jul 05, 2022 3:57 pm
by Voldemort
Hi Pavel,
Yes, I guess I should be more clear: would it be possible to make an open-source hobby OS, not a commercial one, that is actually UNIX?
The tuhs project might be of some interest to you. https://minnie.tuhs.org/cgi-bin/utree.pl

xv6 is something you may find interesting as well.

RetroBsd might interest you too.
https://github.com/RetroBSD/retrobsd

Another interesting approach might be to get old unix'es working on new risc v boards as a proof of concept.
See this project for instance.
https://github.com/mit-pdos/xv6-riscv


~Voldemort~