Historical question: Why was the GNU userland chosen over BSD for early releases of the Linux kernel? reddit / BSD ---------------------------------------------------------------------- koavf · 2021-09-30 15:13 [But, wait… Why GNU? Why not use the BSD userland? Isn’t it like under a permissive license? And all BSDs predate GNU, so why didn’t that happen?](https://ariadnavigo.xyz/posts/what-the-gnu/) He gives an answer but I'm interested in alternative takes. ---------------------------------------------------------------------- FUZxxl · 2021-09-30 15:30 Back in the day, the BSD project was tangled up in a long law suit with AT&T and the legal status was unclear. This is the main reason why there was a vacuum for Linux to fill in the first place. The law suit was eventually resolved when the BSD project discovered that while they hadn't ripped off AT&T, AT&T had copied quite a bit from BSD without fulfilling the license conditions. They agreed to drop the clause in question (clause 4) from the license in exchange for AT&T dropping the suit and releasing their UNIX code to the general public under a free license. So for the same reason Linux people were probably hesitant to use any BSD code. ---------------------------------------------------------------------- daemonpenguin · 2021-09-30 15:51 I think you're mixing up the SCO vs IBM/Linux case with the ATT vs BSD case. ---------------------------------------------------------------------- daemonpenguin · 2021-09-30 15:54 The comment about BSDs predating GNU doesn't really fit history. Technically BSD existed before GNU, but the open source versions of BSD we know today didn't really come about until well after GNU was established. The Linux ecosystem was also probably better suited for GNU and similar style efforts. If you're already using the GNU compiler and pulling in one tool here and another tool there, then the GNU approach probably makes more sense. The BSD userland was tied to the BSD kernel. So Linus would have had the option of tying his kernel to match BSD and always needing to maintain compatibility with it, or slotting Linux into a new ecosystem where it could go wherever he wanted as long as it was POSIX compliant. ---------------------------------------------------------------------- FUZxxl · 2021-09-30 15:57 It is possible. ---------------------------------------------------------------------- LiamW · 2021-09-30 17:34 Yeah several lines of code were mistakenly not rewritten by BSDi and were AT&T copyright. ---------------------------------------------------------------------- LiamW · 2021-09-30 17:36 Linus said at one point he probably wouldn’t have made Linux if he knew 386bsd existed. Sneaker-net was not as connected back then as the internet us now. ---------------------------------------------------------------------- Tireseas · 2021-09-30 17:37 1. The BSD landscape was a legal minefield at the time and 2. the licensing terms were preferable for quite a good portion of the early adopters for philosophical reasons. Not that there was anything stopping anyone from doing a distro with whatever userland they wanted. The GNU side just won out through natural selection. ---------------------------------------------------------------------- [deleted] · 2021-09-30 17:43 [deleted] ---------------------------------------------------------------------- sehnsuchtbsd · 2021-09-30 19:06 - Minix 3 uses NetBSD's [userland](https://wiki.minix3.org/doku.php?id =developersguide:overviewofminixuserland) on their microkernel and pkgsrc as default packaging system - QNX uses NetBSD's [TCP/IP stack](https://www.qnx.com/developers/docs /6.4.1/neutrino/sys_arch/tcpip.html), as well as pkgsrc as default packaging system - [nbase](https://github.com/cheusov/nbase) is a port of NetBSD's userland to Linux - [lobase](https://github.com/Duncaen/lobase) is a port of OpenBSD's userland to Linux - XNU/Darwin (and similarly did OSF/1 and True64), includes [large portions](https://opensource.apple.com/source/xnu/xnu-7195.81.3/bsd/) of 4.3 BSD kernel upon the Mach microkernel, as well as a FreeBSD userland, and PF as firewall (even before they were using IPFW) - Haiku uses a network [compatibility layer](https://www.haiku- os.org/community/getting-involved/developing/system/) to make use of FreeBSD's network drivers - The TCP stack of Windows NT kernel is *supposedly* based on BSD's - illumos uses FreeBSD's [bootloader](https://illumos.org/man/5/loader), and bhyve as their main [hypervisor](https://omnios.org/info/bhyve). Solaris [uses](https://docs.oracle.com/cd/E53394_01/html/E54829/pftask- conf.html) OpenBSD's PF as their firewall. Zones were inspired by and designed around jails. - some commercial products, such as [TheRouter](https://github.com/alexk99/the_router), are using NetBSD's NPF on Linux ---------------------------------------------------------------------- [deleted] · 2021-09-30 19:16 [deleted] ---------------------------------------------------------------------- sehnsuchtbsd · 2021-09-30 19:42 I read over your initial comment and realized you were specifically referring to the portability of the userland and the fact it's tightly integrated with the kernel, so my apologies for having got you wrong. I don't know whether GNU was actually designed with portability in mind more than BSD was, but I'd dare question this statement. As a matter of fact, outside of GNU/k*BSD, I'm not aware of a GNU port with doesn't rely on some shim (e.g. WSL1). ---------------------------------------------------------------------- jmcunx · 2021-09-30 22:20 My memory may be flawed, but I remember a transition of libc to glibc in the 90s for Slackware. I believe libc came from BSD, I also think tcp came from BSD back then. Why the change to glibc, I do not remember. ---------------------------------------------------------------------- istarian · 2021-09-30 22:33 It's worth considering that this was ~30 years ago which is a very long time in the history of computing. A lot of early decisions in the context of Linux probably boiled down to the personal preferences of individuals and the least legally risky route. ---------------------------------------------------------------------- istarian · 2021-09-30 22:35 People were a lot less connected to far away places for sure. Someone could have been doing the same things as Torvalds an hours drive away and he might never have heard about it. ---------------------------------------------------------------------- [deleted] · 2021-09-30 22:44 Linus himself has said that he would have just used ~~FreeBSD~~ 386BSD instead of creating Linux if it had existed at the time. If only! ---------------------------------------------------------------------- rdcldrmr · 2021-10-01 01:38 Misquote. He said 386BSD, not FreeBSD. ---------------------------------------------------------------------- tcmart14 · 2021-10-01 03:27 The design and portability question is more of an opinion. To a degree, at least at the time, BSD would have been more portable since BSD user land and such adhered more to POSIX and UNIX unwritten rules. While POSIX doesn’t cover everything there were some unwritten standards non-enforced in how calls were made and function signatures. Also, some tools have different flags and could do different things. GNU adheres to this some, but not in all cases. They were not married to the UNIX status quo, but often times used it and made changes based on design opinion. At the time, would have made portability more difficult since people would have to learn the differences. Whether that is good or bad, up to the person. ---------------------------------------------------------------------- [deleted] · 2021-10-01 12:24 Indeed ---------------------------------------------------------------------- _alonely0 · 2021-10-04 11:27 this article is gold ---------------------------------------------------------------------- losthalo7 · 2021-10-06 01:10 Didn't he announce his project on Usenet? ---------------------------------------------------------------------- istarian · 2021-10-10 22:09 Maybe? I wasn't even alive at the time and it's been a little while since I did any reading. Still, while Usenet was undoubtedly popular, Torvalds would probably have been interacting with a comparatively niche group of people in 1991. Someone would have needed to both have regular network access and be subscribed to a particular group.