Mac OS X 是 POSIX 操作系统吗?

发布于 2024-11-03 08:05:59 字数 65 浏览 0 评论 0 原文

是什么使操作系统成为 POSIX 系统?所有版本的 Linux 都是 POSIX,对吧? Mac OS X 怎么样?

What is it that makes an OS a POSIX system? All versions of Linux are POSIX, right? What about Mac OS X?

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(5

花想c 2024-11-10 08:05:59

Mac OS X 是 POSIX 操作系统吗?

是的。

POSIX 是一组标准,用于确定 类 Unix 操作系统。 Mac OS X 是基于 Unix 的(并且已经过此类认证),并且根据此符合 POSIX 标准。 POSIX 保证某些系统调用可用。

本质上,Mac 满足了 POSIX 兼容所需的 API,这使其成为 POSIX 操作系统。

Linux 的所有版本都不兼容 POSIX。 2.6 之前的内核版本不兼容,而今天的 Linux 也没有正式兼容 POSIX,因为它们没有竭尽全力获得认证(这可能永远不会发生)。无论如何,出于几乎所有的意图和目的,Linux 都可以被视为 POSIX 系统。

Is Mac OS X a POSIX OS?

Yes.

POSIX is a group of standards that determine a portable API for Unix-like operating systems. Mac OS X is Unix-based (and has been certified as such), and in accordance with this is POSIX compliant. POSIX guarantees that certain system calls will be available.

Essentially, Mac satisfies the API required to be POSIX compliant, which makes it a POSIX OS.

All versions of Linux are not POSIX-compliant. Kernel versions prior to 2.6 were not compliant, and today Linux isn't officially POSIX-compliant because they haven't gone out of their way to get certified (which will likely never happen). Regardless, Linux can be treated as a POSIX system for almost all intents and purposes.

缘字诀 2024-11-10 08:05:59

是的,OS X 基于 Darwin BSD,自 10.5 (Leopard - 18- 2007 年 5 月)所有 Intel/AMD 版本均已正式认证为符合 Unix 03 / POSIX 标准,例如。

Yes, OS X is based on Darwin BSD, and since 10.5 (Leopard - 18-May-2007) all Intel/AMD versions have been officially certified as compliant with the Unix 03 / POSIX standard eg.

盛夏已如深秋| 2024-11-10 08:05:59

不,事实并非如此。 MacOS 缺少 POSIX 的一大堆功能,例如 clock_nanosleep()。它可能符合 POSIX 的子集或非常旧的 POSIX 版本,但它绝对不符合 POSIX.1-2017。请参阅http://pubs.opengroup.org/onlinepubs/9699919799/functions/clock_nanosleep。 html

No, it is not. MacOS is missing a whole bunch of features of POSIX, like clock_nanosleep(). It might be compliant with a subset of POSIX or with a really really old version of POSIX, but it's definitely not compliant with POSIX.1-2017. See http://pubs.opengroup.org/onlinepubs/9699919799/functions/clock_nanosleep.html.

橘和柠 2024-11-10 08:05:59

OSX POSIX

单一 UNIX 规范 (SUS)。它是一组使用 UNIX 标记的标准。

可移植操作系统接口(POSIX) - 它是SUS的子集。它定义了操作系统和应用程序之间的 API 以及其他工具和实用程序。它包括进程、IO、线程、安全、Shell等部分

UNIX 03是符合SUS v3的产品标准标记

opengroup.org/openbrand/register/apple.htm" rel="nofollow noreferrer">最新 Apple Inc UNIX 产品

MAC 操作系统(自 10.5 Leopard 起)是一个兼容 UNIX 03 的操作系统,经 The Open Group 认证。

Linux是其他操作系统核心的总称。

Linux 未经过 POSIX 认证(除了其中一些,例如 Huawei EulerOS - UNIX 03)。但 Linux 大多符合 POSIX 标准,因为它们试图遵守这些标准,甚至更多

OSX POSIX

Single UNIX Specification(SUS). It is a set of standards to use UNIX mark.

Portable Operating System Interface(POSIX) - it is a subset of SUS. It defines API between OS and application as long as others tools and utilities. It includes such parts as Process, IO, Threads, security, Shell

UNIX 03 is a Product Standard mark which conforms SUS v3

Latest Apple Inc UNIX products

MAC OS(since 10.5 Leopard) is a UNIX 03 compliant OS which is certified by The Open Group.

Linux is a general name of a core for others operating system.

Linux is not POSIX-certified(except some of them like Huawei EulerOS - UNIX 03). But Linux is mostly POSIX-compliant because they try to stick to these standards and even more

っ〆星空下的拥抱 2024-11-10 08:05:59

POSIX 是一个规范: http://www.unix.org/what_is_unix/single_unix_specation.html
AFAIK,Linux 遵守规范,但尚未经过认证

POSIX is a specification: http://www.unix.org/what_is_unix/single_unix_specification.html
AFAIK, Linux adheres to the spec, but hasn't certified yet

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文