mrweasel 6 hours ago

So for those who, like me, wonders why Apple keeps getting macOS Unix certified, it's to avoid a lawsuit. Apple misused the Unix trademark when they first launched MacOS, so to avoid legal trouble with The Open Group, Terry Lambert was put in charge of getting MacOS Unix compliant and certified: https://www.quora.com/What-goes-into-making-an-OS-to-be-Unix...

It's basically the only relevance the Unix trademark has these days. I can't imagine many companies choosing macOS because it's a real Unix, nor would anyone really opt out of z/OS, AIX og HPUX, if they where not certified.

  • ajdude 5 hours ago

    > I can't imagine many companies choosing macOS because it's a real Unix, nor would anyone really opt out of z/OS, AIX og HPUX, if they where not certified.

    While Unix compliancy isn't what's keeping me on macOS, the Unix tools it has under the hood still is. I've opted to use it over Linux because I still get everything that I need from a "Unix like" standpoint while having some serious enterprise level support and compatibility with work software that's often only available for windows or Mac.

    If Apple stopped caring about being Unix compliant, I wouldn't be surprised to see the tools and infrastructure that make it Unix (and useful to me) slowly be removed. Then I'd stop using it.

    • mdasen 5 hours ago

      I'd say that you care about it being UNIX-like, not UNIX®. You don't care that Linux isn't UNIX. You don't care that GNU versions of things like ed and awk are slightly off-spec.

      In some ways, Apple's adherence to UNIX specifications probably makes macOS less useful for you. For example, I wish that grep on macOS was closer to GNU grep. When I look up commands online, I often find answers based on the GNU implementations. Those often work on macOS, but sometimes don't (or have subtly different behavior) because macOS is adhering to the UNIX specification rather than to what those utilities do on the vast majority of systems out there.

      I don't think Apple would be removing UNIX-like tools from macOS even without certification. They know how valuable it is that most developers use their systems. Even Microsoft went so far as to implement the Windows Subsystem for Linux for developers. At this point, I think that UNIX certification makes macOS less compatible with the tools and help out there which generally targets Linux. Usually the differences are small, but they certainly can be meaningful.

      • lucideer 4 hours ago

        > I don't think Apple would be removing UNIX-like tools from macOS even without certification. They know how valuable it is that most developers use their systems.

        I hope you're right but I'm not as confident. Corporations - Apple included - have been guilty of some surprising ignorance when it comes to things like this. I'm thankful for this certification circus to continue so that we don't need to test your theory.

        • selimnairb 38 minutes ago

          Yeah, except Apple dogfoods macOS to build most of the software for Macs and everything else they make. Presumably they rely on UNIX-like tools and would have to retool as well. So why mess with what’s working for them and others?

      • Avamander 4 hours ago

        Built-in grep is thankfully not as odd as the builtin find is. Might be the first one I replace on my systems.

        • pseudocomposer 4 hours ago

          Given that both grep and find are weird/inconsistent between BSD/GNU versions, and I typically use them piped together for the same things anyway, I’ve found that ripgrep is a nice/faster/universal alternative that is pretty unproblematic to install in whatever environment I want: https://github.com/BurntSushi/ripgrep

          • bawana 38 minutes ago

            But isnt that what AI is for? Writing syntactically correct regexes?

      • zeckalpha 2 hours ago

        Some Linux distros have gotten certified. I assume they have released necessary patches as required by GPL.

        • pxc 2 hours ago

          I don't think any patches are required. It's literally just a matter of going through the certification dance for the average distro.

          • mdasen 31 minutes ago

            There are patches required. Many GNU utilities are very close to the UNIX spec, but not quite the UNIX spec - including glibc. But making a Linux distro that is UNIX certified would likely make it a worse Linux distro for most people since it would be less compatible with what everyone is assuming for a Linux distro. A lot of the differences are subtle edge cases, but do you really want that in your distro?

            It's not just about going through a song-and-dance. It's about making an OS that has different behavior - often very tiny differences, but differences that would make the distro worse for most users.

          • swiftcoder an hour ago

            Don't you have to ship the BSD-compatible versions of grep et al?

            • pxc an hour ago

              I'm not sure why you would. I don't think POSIX generally specifies the behavior of command line tools in such a level of detail. FWIW, the regex type used by default by GNU Grep is already POSIX's Basic Regular Expressions. (It also supports POSIX Extended Regular Expressions and PCRE2.)

              Afaik, EulerOS and other Unix-certified Linux distros just ship the usual GNU userland.

              • mdasen 31 minutes ago

                The Single UNIX Specification does specify the behavior of many command line tools like ed, grep, awk, etc. OpenBSD sometimes notes where their tools vary from the UNIX spec. It's usually very small ways that don't matter to most people, but it does put them outside of the UNIX spec.

      • mechanicum 4 hours ago

        > because macOS is adhering to the UNIX specification

        Isn’t it rather that Darwin was based on BSD 4.4? I’d imagine GPL 3.0 is a bigger impediment to them ever migrating to GNU tools than any desire to be UNIX certified.

      • cesaref 5 hours ago

        brew install grep?

        • latchkey 4 hours ago

          brew is such a treasure.

          • eric_h 3 hours ago

            and kind of a counter point to the GGGP's "Unix compliancy isn't what's keeping me on macOS, the Unix tools it has under the hood still is."

            I certainly replace a large chunk of the "unix tools under the hood" with tools installed via homebrew.

    • makeitdouble 3 hours ago

      It's not for everyone, but at some point I got tired of the FreeBSD layer being there but not cared for, and WSL+git for windows kinda provides a decent compromise in that regard.

      The thing I hated the most was spending time building installation scripts or running images for the prod environment, and then go fight macos to replicate the same setup locally. Especially having parralel installs for the system and my user account was a PITA.

      One would argue I could just dev on the docker image as well, but then being on a somewhat unixy OS doesn't matter much anymore.

      WSL let's the Windows side live it's life (shell level tools can still be injected for convenience), and the linux side be genuinely Linux, not some ersatz, and duplicable to one's heart content. It's still less pain and better perfs than straight docker, and just extremely well integrated in general.

    • zitterbewegung 4 hours ago

      While macOS only really gets Unix certified they design of the flavor of unix from FreeBSD. Homebrew is also the best port system and package manager I have ever used because it requires no thinking. I actually dislike using Linux because now I have to learn the replacement from ifconfig, the creation of launchd IMHO is way better than init.d and systemd, and the command line diskutil and other additions still feel like its more Unix like while Linux feels like its moving toward its own thing. Before I was using macOS I was using OpenBSD as my daily driver since high school. I still don't understand though why Ubuntu has the ability to break /boot because there isn't enough space to add another kernel to there...

      • StopDisinfo910 4 hours ago

        I’m going to comment on the homebrew part because well that’s your tastes but I personally think it’s the worst package manager I have ever used and is not really a port system so opinions do vary here.

        > I have to learn the replacement from ifconfig

        MacOs switched to networksetup and ipconfig a long time ago. Ifconfig is not recommended so the situation is exactly the same than on Linux here.

        > launchd IMHO is way better than init.d and systemd

        Systemd is basically a more complete and better designed launchd. Having used both I have trouble thinking of anything launchd does better.

        > the command line diskutil and other additions still feel like its more Unix like

        Diskutil is a MacOS only tool. I’m a bit lost about what your argument is here.

        Linux still use fdisk and dedicated tools to create file systems exactly like on FreeBSD or any other Unix. It’s MacOs doing its own thing here.

        • zitterbewegung 4 hours ago

          Thank you for correcting me I appreciate it I will use those new commands.

      • pxc 44 minutes ago

        How is launchd better than systemd? I find the commands much more verbose and the documentation more obscure

    • StopDisinfo910 4 hours ago

      Considering the core utils have even been ported to Windows, I don’t really see what you would lose.

      The Unix don’t really share much between each other apart from a small core.

      • pjmlp 4 hours ago

        While true, there are still speed bumps on Windows.

        One is better using the Windows alternatives.

        • StopDisinfo910 4 hours ago

          The initial argument was that MacOS is nice because it has the core Unix tool. I find this baffling because MacOS has very little to do with a traditional Unix apart from the certification and the core utils are literally usable on approximately anything.

          Speed bumps regarding what?

          I’m mostly using Linux nowadays but when I have to use Windows, the experience is fairly ok. The tooling when you want to manage it is imho superior to what Apple provides. I’m not used to develop on it but I have seen people do and it didn’t seem particularly worse than Linux-like environment.

          Not that I really have anything against MacOS. I think it’s neglected by Apple and not as enjoyable as it used to be. I dislike Apple and the policies it’s pushing for. Nevertheless, it’s ok to use. Everything pretty much is nowadays.

          • yndoendo an hour ago

            When producing cross-platform software I find creating it on Linux first to be the most cost effective. Porting it to macOS has the least resistance. Windows is where it cost more time and code to release.

            macOS, Linux, and BSD treat CMD and GUI applications the same while Windows separates applications. Window's two type of application approach brakes the ability to use STDIN and STDOUT for logging and other useful means. Simple debugging of `./app > app.log` does not work on Windows with `app.exe > app.log` with GUI applications. The Windows variant needs a specialized logging system and more boilerplate code.

            Windows also has one of the worst automation system when it comes to solution deployment. One needs to create custom mouse and keyboard emulation scripts to automate the installation of 3rd party applications when their installer does not support silent mode. AutoIT helps me with this greatly.

            • kid64 34 minutes ago

              Windows does have quirks: MSI installers, Inno Setup, NSIS, and custom EXEs may or may not support silent mode. When they don’t, automation is ugly (AutoIt, AutoHotKey).

              But Windows also has strong automation tooling: PowerShell, WinRM, Chocolatey, Winget, MSIX packaging. These provide far more than “mouse and keyboard emulation.”

              So your statement ignores the modern ecosystem and overstates the weakness.

          • pjmlp 3 hours ago

            If you mean UNIX System V via green phosphor text terminals, thankfully not.

            Speed bumps regarding compilation of tooling written with UNIX semantics in mind, without taking into consideration Windows development culture and OS semantics.

            • StopDisinfo910 3 hours ago

              What are these mythical Unix semantics?

              Linking to Glibc? Sharing a roughly similar file system structure? Expecting bash to be there?

              Because from where I stand the people that care about BSD have spent the past decade complaining it’s getting more and more complicated to port Linux software so I’m very curious to know what the common DNA is supposed to be.

              • pjmlp an hour ago

                Everything that UNIX has and Windows doesn't.

    • mickael-kerjean 4 hours ago

      There are some infuriating issues though, I have wiped out a couple files on OSX using sed with the -i option to replace a text within a file only to realised OSX would wipe it out instead ....

    • qmr 4 hours ago

      > I still get everything that I need from a "Unix like" standpoint

      Everything except a package manager!

      • philistine 4 hours ago

        With the way Apple is running its App stores, do you honestly believe that we would benefit from an Apple package manager?

        I'm convinced the devs inside Apple know what I'm saying as well, and are giving as much help as possible to Homebrew to keep it independent. There is some small proof, Homebrew was considered very highly during the DTK rollout for Apple Silicon.

      • zitterbewegung 4 hours ago

        Majority of people use homebrew. There is also macports.

      • pjmlp 4 hours ago

        UNIX never had a package manager.

        Those that have one, it is not standard.

  • pjmlp 4 hours ago

    It is also relevant, that as proven on FOSDEM corridors full of Apple laptops, most folks only care about some sort of POSIX experience, and couldn't care less about Linux/BSD religion.

    So that target audience gets a cool modern experience, without fighting with driver issues and such.

    It is also the reason why Microsoft ended up bringing Project Astoria from the ashes into WSL.

    UNIX has won, but not as Richard Stallman would have liked to.

    • kasabali an hour ago

      AFAIK Stallman didn't care about UNIX, considering he is more of a LISP guy. GNU targeted UNIX because it was the popular OS at the time.

    • bigyabai 2 hours ago

      I don't think Richard Stallman much cares. The first thing every programmer does on a Mac is install GNU software.

      • pjmlp an hour ago

        Not really.

        • bigyabai an hour ago

          Sure, I guess. I'd love to meet this "real developer" who doesn't git pull anything to their Mac.

          Me, I live in the real world and got dotfiles to clone.

          • pxc 36 minutes ago

            Git's not a GNU project.

            Fwiw, though, I personally do use a ton of GNU software on any Mac I touch: coreutils, grep, sed, find, parallel, GCC, autotools, make, gdb, Emacs, and maybe some GNU Java stuff for LibreOffice, Bash. Most developers on macOS probably use at least a couple of those.

          • pjmlp 36 minutes ago

            Hello.

            Install everything XCode and use proper UNIX tools already installed.

  • mdasen 5 hours ago

    That explains why they got it UNIX certified back then, but couldn't they stop advertising macOS as UNIX and stop getting it certified? They even changed the name from Mac OS X to macOS since then.

    • crazygringo 5 hours ago

      That's my question too, why continue to bother? Apple doesn't even have any separate "Server" OS anymore. I can't find anything mentioning UNIX on any apple.com marketing pages.

      I guess it's just, might as well keep it going, as an option for future marketing if ever needed. Maybe it helps the salespeople in some enterprise deals? I mean, if it doesn't really cost anything to keep it.

      • pjmlp 34 minutes ago

        Workstations, although I wouldn't consider the existing alternatives much of a proper workstation.

        • jen20 32 minutes ago

          How exactly would you define a workstation?

          • pjmlp 19 minutes ago

            A Mac Pro, with the same extension capabilities.

    • kstrauser 4 hours ago

      My (wholly unsupported) guess is that there are government or megacorp bids somewhere for Unix systems for employees, and this checks that box. The buyer could update their requirements, but why do that when you can just make your vendor jump through the hoop?

      • drob518 3 hours ago

        Probably a government contract.

    • btown an hour ago

      Not at Apple and don't have any knowledge here, but I'd imagine that the UNIX test suite, ever since it began passing, has been a useful set of additional regression tests even outside the certification context.

      Does anyone want to be the person that removes regression tests from active use, only to be responsible when something breaks that would have been caught by that test? Far easier to just fix your code so the test passes.

      (And for many years, OS X then macOS had a reputation for being rock-solid, capable of going much longer betwen restarts, going into BSOD much less frequently than Windows would. Having a set of third-party tests certainly didn't hurt this!)

    • mrweasel an hour ago

      I obviously don't know, but I could easily imagine that Apples legal team has flagged it as a potential risk and the cost of keep the certification up to date is minimal, compared to some imagined risk. Safer to pay the fee, and not having to worry about someone at Apple accidentally calling macOS a Unix system in public.

      Also, Apple is a huge company, there's the question of who's going to make the call the not update a certification that's negligible within the scope of macOS development. Better to not be that person and just rubberstamp the invoice from The Open Group. If management disagree, they can make the call, but they won't because the cost is to small for them to deal with.

    • randall 5 hours ago

      there’s no downside as far as i’m aware.

      • mdasen 5 hours ago

        There isn't much downside, but it probably involves a small amount of money (paid for the certification) and it means spending time making sure that everything remains 100% within spec. There's lots of little edge cases where BSDs differ from the spec and it means that Apple needs to take care not to drift from the spec.

        • al_borland 4 hours ago

          Apple remaining in spec sounds like a good thing from a compatibility point of view.

          Am I missing something? I’m not sure why it’s coming off like people are complaining about this?

          • Analemma_ 4 hours ago

            It’s a spec that doesn’t really matter in practice. Like some other comments said, Linux, BSD and Solaris are “Unix but not Unix(tm)”, and nobody cares.

      • bawolff 5 hours ago

        Presumably certification costs money (?)

        • monkeyelite 4 hours ago

          Probably a small amount especially when they just need to tell them what changed

    • jeremiemyhren 4 hours ago

      I think it’s a quiet but deliberate strategy to keep macOS the spiritual successor to NeXTSTEP. While many of Jobs principles are under pressure at current day Apple, his ghost lives on.

      • hollandheese 3 hours ago

        I think you mean literal successor. It's descended from NeXT's codebase. Mac OS X 10.0 was basically NeXTSTEP 6 with Apple logos, Carbon and a Mac OS 9 VM.

      • monkeyelite 4 hours ago

        This also doesn’t explain anything? Is getting Unix certified a jobs principle or a requirement to be a “spiritual successor”?

      • pjmlp 4 hours ago

        Jobs was very much anti-UNIX and is relatively easy to find it out.

        NeXTSTEP had to support UNIX, because that was the workstation market they were after.

        However notice how everything relevant for NeXT products was based on Objective-C userspace tooling and frameworks.

  • blablabla123 2 hours ago

    Literally the only reason that kept me on the platform until recently despite becoming increasingly hostile to developers...

  • cramcgrab 4 hours ago

    You forgot solarius, well, so did oracle.

    • mrweasel an hour ago

      I don't think Solaris is Unix certified anymore. It was previously, but the current supported versions are not.

  • igravious 4 hours ago

    Used to work with UNIX servers in the early 2000s but out of that sector for coming up on two decades -- are z/OS, AIX and HPUX (and other old big iron enterprisey UNIXen) still around? I would have thought that Linux had killed them all of by now. Excuse my ignorance!

    • pjmlp 3 hours ago

      They definitely are, not all though, HP-UX is on life support.

      However Aix, Solaris (and Open Solaris derivatives), z/OS, IBM i (AS/400), ClearPath MCP, OS 2200, are still being updated and sold.

      That list is not only UNIX systems.

      • drob518 3 hours ago

        Exactly. They exist but just barely.

        • pjmlp an hour ago

          Enough to pay salaries of those making them go.

alberth 5 hours ago

There’s an interesting story from the lead engineer to make OS X originally compliant:

> I was asked if I could lead a team to do #1. I said “Yes, under the condition that I could use the compliance project as a hammer to force other parts of the organization to make changes in their own code base, and that I could play it rather loose with commit rules regarding what it said in the bugs database for a given code change, and what the given code change actually did, in addition to what it said in the bugs database”.

> We were promised 1/10th of the $200 million, or $20 million in stock, on completion. $10 million to me, $5 million to Ed, and $5 million to Karen Crippes, who was looking for a home in Mac OS X development, I knew was an amazing engineer, and who could be roped into being technical liaison and periodically kicking off the tests and complaining to Ed and I about things not passing.

—-

Source: https://www.quora.com/What-goes-into-making-an-OS-to-be-Unix...

HN discussion: https://news.ycombinator.com/item?id=29984016

  • sgerenser 5 hours ago

    And if you read further in the comments, he never got the stock. The executive who promised it to him “took it for himself.”

    • Jcampuzano2 4 hours ago

      And left his wife for an HR person, can't forget that. Lol sounds like a shitshow all around when it comes to execs but wouldn't be surprised.

      Guess it shows that when it comes to compensation promises always get it in writing.

      • yard2010 3 hours ago

        That's always true but especially when working with so many psychopaths

    • crazygringo 2 hours ago

      Damn. Don't ever agree to something like this without getting it in writing.

      If they balk, it's precisely because they want to be able to be free to cheat you out of it once the work is done.

    • alberth 4 hours ago

      Where do you see that?

      Sorry, I’m probably missing the obvious.

      • mikestew 4 hours ago

        It’s in there:

        “The executive who agreed to the deal left his wife for an HR person, and took the stock for himself.

        Never every make a handshake deal with a person you trust, because that trust will not last.”

  • nicce 4 hours ago

    Further below:

    > Also, the tech lead has to fix anything no one else fixes, or no one else can fix, because they are the DRI (Directly Responsible Individual).

    How many tech lead/project manager can say that they are capable for this in these days? It feels like based on my observations that other skills are taking priority on management/lead side.

  • 0xFEE1DEAD 4 hours ago

    Thank you for sharing, what an interesting read.

homebrewer 5 hours ago

Two general-purpose Linux distributions used to pay for Unix certification, although they don't do it anymore since hardly anyone is interested in it these days.

https://www.opengroup.org/openbrand/register/brand3617.htm

https://www.opengroup.org/openbrand/register/brand3622.htm

Save these links for the next time someone moans that Linux "is not a real Unix".

  • mdasen 4 hours ago

    It's not just about paying for certification. You also have to replace a lot of things like ed, awk, grep, etc. with versions that are compatible with the UNIX specification. GNU utilities didn't target 100% UNIX compatibility and they have differences that mean that a command that works on UNIX might not work (or might not work the same) on a Linux distro using GNU utilities. glibc has slight differences from the spec too.

    In order to get a Linux distro certified, you'd have to make changes which would make it less compatible with all the other Linux distros out there.

    The reason why RedHat doesn't pay for UNIX certification is that their distros wouldn't be compliant. The reason why they don't make their distros compliant is that their customers would vastly prefer that RedHat use "standard Linux" tools than replace them with UNIX-compliant ones. Customers don't want a Linux distro that's subtly different/incompatible compared to what everyone expects in a Linux system. They'd rather it be not-UNIX.

    Yes, you can modify a Linux distro to be UNIX. However, most Linux systems are not real UNIX - and you wouldn't want it to be real UNIX.

    • arccy 4 hours ago

      this talk of GNU being "standard" is toxic, as if anything that doesn't use it is weird or off spec.

      the GNU userland might be common for user facing systems, but it's nowhere close to standard.

      • oguz-ismail 4 hours ago

        It's the de facto standard. No one knows how to use other flavors of tools like date, find, grep, sed etc.

        • pjmlp 3 hours ago

          Some of us do, but we are old enough to know that Linux is not a synonym for UNIX, and to have installed it from floppies.

          • bigyabai 2 hours ago

            For all the good that does you running modern software. "UNIX support" in a post k8s age is considered optional.

            • arccy 14 minutes ago

              actually with docker and K8s we see Alpine used more and more, and that doesn't come with a GNU userland.

            • pjmlp an hour ago

              Thankfully not everything needs Kubernetes.

              If you are going there, I also consider Kubernetes optional.

              When I have the option to push for specific cloud deployments, I usually push for serverless or managed containers.

              You might argue that still depends on Kubernetes, for me Kubernetes just like Linux, is mostly an implementation detail, that we get to open support tickets when it doesn't go as planned.

              No one needs to hurt themselves running a local Kubernetes cluster.

    • dwheeler 3 hours ago

      Citation needed.

      I'm not sure what you mean by "Unix specification". But if you mean the international standard POSIX, yes, people care. Red Hat routinely participates in POSIX spec revision.

      There are a very few deviations where you have to enable "POSIXLY_CORRECT". If that's what you mean, then you can turn that on. But in every area that matters, Linux distros implement the POSIX spec by default, and you can even turn on the POSIXLY_CORRECT mode to exactly follow it. They extend beyond it, but that is allowed and expected.

      The people who build the tools in Linux distros care a lot. I know the implementors of dash and GNU make routinely refer to POSIX. The Linux distros don't have to as much with POSIX because that is generally a conpleted work and it's the maintainers of the tools who must address the updates to POSIX.

      • mdasen 20 minutes ago

        The UNIX specification is not the same as POSIX: https://en.wikipedia.org/wiki/Single_UNIX_Specification.

        You might say "their exact view of what UNIX is isn't important and POSIX is," but POSIX is not the UNIX spec. You might think the Unix spec isn't important - and it really isn't today. Linux generally targets what is important and what users care about - and that isn't the UNIX spec. It is often the same as the UNIX spec, but not always and there are deviations.

      • swiftcoder an hour ago

        Posix is a subset of the Unix standard - it's necessary, but not sufficient to pass Unix certification.

jonathaneunice 3 hours ago

There was a time when “open standards” were treated as the definition of Unix. At least that's what we aspired to. POSIX, X/Open, and others competed to be the standard that mattered. Formal standards were hoped to be a sounder, fairer basis for compatibility and interoperability than the earlier era of “Unix is whatever this release says it is" for some subset of 7th Edition, System III, System V, BSD, or one's favorite commercial derivative (SunOS/Solaris, HP/UX, AIX, Xenix, UnixWare, ...).

That window window of optimism—roughly mid-1980s to mid-1990s—closed fast. Open source projects and _de facto_ standards proved far more powerful in deciding where applications would run, where investments would be made, and which variants survived. Today, the real baseline isn’t POSIX in a binder or some Open Group brand certificate, but Linux + GNU + the APIs everyone codes to. In some ways we've regressed—or more charitably, we shifted back to a more pragmatic form of standardization.

  • em-bee an hour ago

    the big difference is that the Linux + GNU standard is not controlled by a corporation whose only motive is profit, and that the reference implementation is Free Software that everyone can potentially contribute to.

    i would not call that a regression. compare that to the browser standard which is largely controlled by google.

  • drob518 3 hours ago

    The best “standards” just ratify what people are already doing.

amiga386 5 hours ago

OK, great.

Can I call poll(2) on a terminal device's file descriptor?

Requirement for certification: https://pubs.opengroup.org/onlinepubs/9799919799.2024edition...

> The poll() and ppoll() functions shall support regular files, terminal and pseudo-terminal devices, FIFOs, pipes, and sockets.

Apple (last time I checked): https://developer.apple.com/library/archive/documentation/Sy...

> BUGS: The poll() system call currently does not support devices.

I asked the same question of Sequoia: https://news.ycombinator.com/item?id=41822308

  • shiomiru 2 hours ago

    I had to work around this recently - it involved reimplementing my poll wrapper on top of select(), with the proprietary macOS extension that makes it support unlimited fds. (Of course -D_DARWIN_UNLIMITED_SELECT is completely unportable, so I still need poll too.)

    Meanwhile poll() just works on Linux and the BSDs, certified or not.

  • johnisgood 5 hours ago

    And someone said:

    > It's not simply that certification costs money. It's that a lot of modern UNIX-like operating systems don't adhere to the UNIX spec. For example, the OpenBSD man pages specify the ways in which they diverge from POSIX and UNIX in the Standards section: https://man.openbsd.org/sh.1#STANDARDS, https://man.openbsd.org/awk.1#STANDARDS. Often times these are small deviations that might not matter to most people, but it means that they aren't UNIX.

    Except it seems like macOS diverges, too, yet it is certified. I wonder in what other ways it diverges.

  • veggieroll 5 hours ago

    I don't think it's that surprising that the Open Group would cut corners certifying Unix compatibility.

  • qhwudbebd 4 hours ago

    I came here to mention this too, but saw you'd beaten me to it. It's remarkable how bad non-free OSes are at maintaining basic infrastructure in their kernel and userspace compared to Linux and the BSDs isn't it? Basic bugs get neglected for decades in favour of rearranging the cosmetics - in this case, it's been more than 20 years since I first reported this to Apple's /dev/null service, and I'm sure I wasn't first and I'm only one of many.

  • mamcx 4 hours ago

    Also, the weird `fsync` behaviors is not part of it?

jcalvinowens 3 hours ago

And here I just want pthread_condattr_setclock() on Darwin. Is there some other interface to set monotonic expiries? I tried to port netconsd to Darwin and that's the sole hang up (well and recvmmsg() but that's trivial...)

enricozb 4 hours ago

I recently learned that macOS has a (by default) case insensitive filesystem. How does this line up with the certification?

  • lapsed_lisper 3 hours ago

    I don't know about the Unix certification process itself, but the Single Unix Specification explicitly mentions case-insensitivity among non-conforming file system behaviors that are allowed as extensions (in 2.1.1 item 4, third-to-last bullet):

    https://pubs.opengroup.org/onlinepubs/9799919799/

    So a conforming OS has to make case-sensitive file systems available (which MacOS does: you can create case-sensitive HFS or APFS volumes). But I'm not sure if a conforming OS instance (i.e., running system) has to have any case-sensitive mount points, and either way, AFAIK there's no practical and race-free way for a conforming application to detect whether any particular mount point behaves case-sensitively.

    So I believe that as far as the standard goes, a conforming application might run on a conformingly-extended OS where no portion of the the file namespace behaves case-sensitively. IOW, a conforming application cannot rely on case-sensitivity for file names.

  • Analemma_ 4 hours ago

    There’s a specific “Unix mode” you have to turn on to be in the compliant state, it’s not the default. Presumably among other changes this puts APFS into case-sensitive mode.

    • Steltek 2 hours ago

      How much stuff breaks when you do that?

      • p_ing 2 hours ago

        There's commercial software that will not run on a case-sensitive file system, such as Photoshop.

        If you're using 3rd party software, you don't want to format your default volume with case-sensitivity enabled.

ksec 6 hours ago

Has there been any work for something post Unix 03?

  • quink 6 hours ago

    I may have mentioned on occasion, here or there, about how ludicrous it is that there appears to be no well-defined standard that user space shall have sqlite3 and git and gzip.

    So, for all intents and purposes, nothing that would be relevant in any reasonable end-user way in 2025. It’s all just: here’s defaults and here’s scripts to set up your environment and here’s a dozen things to run brew with. But no standard.

    • pjmlp 25 minutes ago

      C17 support is required in latest standard.

    • Pesthuf 3 hours ago

      I wish jq would be in the posix standard. JSON is EVERYWHERE nowadays. A system that can’t parse it is incomplete. Not having a standard way to write a script that does it and works across *nixes is a mistake.

  • Pet_Ant 5 hours ago

    Yes, there is "UNIX V7" in 2013... which apparently only IBM's AIX supports. This is ironic because the whole idea of UNIX is to create a common platform for interoperability, but only one platform actually supports. I really wonder why Apple just doesn't put a couple of FTEs on it and upgrade to V7. I'm sure it wouldn't take much. But it sort of reminds me of Java and HTML where there were standards to allow for independent implementations, but have collapsed to single implementations.

    https://en.wikipedia.org/wiki/Single_UNIX_Specification#Comp...

    • badgersnake 4 hours ago

      Solaris did support it, I guess it was more relevant when there were multiple vendors

irusensei 4 hours ago

Think of it: it's a Unix system. Literally. A unix system with the usability that your grandma can use. It supports both commercial and open source applications. The year of the linux desktop folks have been trying this for decades.

EDIT: already downvoted to negatives. The Linux folks really don't like to be reminded of that.

  • jeroenhd an hour ago

    Sounds good, but grandma will need to disable SIP, run a few commands using sudo, and add a root account from the recovery system. It's Unix in the same way Windows 2000 was POSIX compliant, you just need to reconfigure the default system.

    The Linux desktop is widely used all across the world in the form of ChromeOS and, if you count touch screen devices, Android.

    • pjmlp 23 minutes ago

      Windows 2000/NT POSIX support was the bare minimum, it isn't comparable.

      It only got usable when SUA came to be.

  • yjftsjthsd-h 3 hours ago

    > The year of the linux desktop folks have been trying this for decades.

    Have they? I'm not aware that any of the desktop linux projects particularly care about POSIX or being a certified Unix™.

    • em-bee an hour ago

      the claim is that the linux community has been trying for decades to create a desktop with the usability that your grandma can use it. the implied claim is that they failed, which is of course nonsense. linux has caught up with the usability of mac os a decade ago, if not before that.

  • p_ing 3 hours ago

    Grandma doesn't use certified UNIX. She uses a UNIX-like system. Only the engineers who ran the conformance test use certified UNIX since it required what I would consider heavy modification to the shipped OS configuration.

  • em-bee an hour ago

    my grandma used linux. in 1995!

Keyframe 4 hours ago

Good thing to know when I go back to 1980s with a macbook!