<div dir="ltr"><div dir="ltr">On Fri, Jan 28, 2022 at 5:25 AM <<a href="mailto:rempas@tutanota.com">rempas@tutanota.com</a>> wrote:<br></div><div class="gmail_quote"><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">When it comes to the core of the operating systems themselves (mostly the kernel), how much difference these two operating systems have? I know that DragonFlyBSD was a fork of FreeBSD so I suppose that they have most things in common. But what are different? For example, has DragonFlyBSD changed the numbers (or even the functionality) for the basic system calls? Or maybe changed some other stuff? Hence I wonder if there is a lot of works that has to been done to port FreeBSD binaries to DragonFlyBSD. Sorry if this question sounds too n00by but I want to know how much compatibility there is with FreeBSD.<br>
</blockquote></div><br clear="all"><div>DragonFlyBSD is a fork/continuation of FreeBSD 4.x. A lot has changed in FreeBSD between 5.0 and 13.0, just as a lot has changed in DFly from 1.0 to 6.x.</div><div><br></div><div>When it comes to porting userland binaries there's usually not a lot of work required. They're both POSIX-compatible and provide a lot of the same functionality. For example, the DFly ports tree is mostly a clone of the FreeBSD ports tree, with just minor changes/patches here and there to make certain things run on DFly.</div><div><br></div><div>When it comes to porting kernel level drivers and applications that user kernel services directly, there's a lot of work required. The biggest differences are in the storage and network subsystems, as FreeBSD 5+ uses GEOM for accessing devices and DFly uses something completely different. Many of the locking primitives and multithreading support are very different between the two, and the DFly methods appear to be better in many cases. The IPFW packet filter on DFly is very different from the IPFW packet filter on FreeBSD (different syntax, different features, almost entirely different codebases now). And so on. DF;y has the HAMMER1 and HAMMER2 filesystems and volume managers, while FreeBSD has ZFS; they both support UFS, although I'm not sure if DFly still supports SoftUpdates.</div><div><br></div><div>It really depends what you want to port, and how deep into the kernel it goes. The deeper you go, the more differences you'll find.</div>-- <br><div dir="ltr" class="gmail_signature">Freddie Cash<br><a href="mailto:fjwcash@gmail.com" target="_blank">fjwcash@gmail.com</a></div></div>