Mac OS X 是 POSIX 操作系统吗?
是什么使操作系统成为 POSIX 系统?所有版本的 Linux 都是 POSIX,对吧? Mac OS X 怎么样?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
是什么使操作系统成为 POSIX 系统?所有版本的 Linux 都是 POSIX,对吧? Mac OS X 怎么样?
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
接受
或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
发布评论
评论(5)
是的。
POSIX 是一组标准,用于确定 类 Unix 操作系统。 Mac OS X 是基于 Unix 的(并且已经过此类认证),并且根据此符合 POSIX 标准。 POSIX 保证某些系统调用可用。
本质上,Mac 满足了 POSIX 兼容所需的 API,这使其成为 POSIX 操作系统。
Linux 的所有版本都不兼容 POSIX。 2.6 之前的内核版本不兼容,而今天的 Linux 也没有正式兼容 POSIX,因为它们没有竭尽全力获得认证(这可能永远不会发生)。无论如何,出于几乎所有的意图和目的,Linux 都可以被视为 POSIX 系统。
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.
是的,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.
不,事实并非如此。 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.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 useUNIX
mark.Portable Operating System Interface(POSIX)
- it is a subset ofSUS
. It defines API between OS and application as long as others tools and utilities. It includes such parts as Process, IO, Threads, security, ShellUNIX 03
is a Product Standard mark which conformsSUS 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
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