简体   繁体   English

Mac OS X 是 POSIX 操作系统吗?

[英]Is Mac OS X a POSIX OS?

What is it that makes an OS a POSIX system?是什么让操作系统成为 POSIX 系统? All versions of Linux are POSIX, right?所有版本的 Linux 都是 POSIX,对吧? What about Mac OS X? Mac OS X 呢?

Is Mac OS X a POSIX OS? Mac OS X 是 POSIX 操作系统吗?

Yes.是的。

POSIX is a group of standards that determine a portable API for Unix-like operating systems. POSIX是一组标准,为类 Unix操作系统确定可移植 API。 Mac OS X is Unix-based (and has been certified as such), and in accordance with this is POSIX compliant. Mac OS X是基于 Unix 的(并已通过此类认证),因此符合 POSIX。 POSIX guarantees that certain system calls will be available. POSIX 保证某些系统调用可用。

Essentially, Mac satisfies the API required to be POSIX compliant, which makes it a POSIX OS.本质上,Mac 满足 POSIX 兼容所需的 API,这使其成为 POSIX 操作系统。

All versions of Linux are not POSIX-compliant.所有版本的Linux都不是 POSIX 兼容的。 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). 2.6 之前的内核版本不兼容,而今天的 Linux 还没有正式兼容 POSIX,因为它们还没有竭尽全力获得认证(这可能永远不会发生)。 Regardless, Linux can be treated as a POSIX system for almost all intents and purposes.无论如何,几乎所有意图和目的都可以将 Linux 视为 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.是的,OS X 基于Darwin BSD ,并且从 10.5(Leopard - 2007 年 5 月 18 日)开始,所有 Intel/AMD 版本都已被官方认证为符合 Unix 03 / POSIX 标准,例如。

No, it is not.不它不是。 MacOS is missing a whole bunch of features of POSIX, like clock_nanosleep() . MacOS 缺少 POSIX 的一大堆功能,例如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.它可能符合 POSIX 的一个子集或一个非常旧版本的 POSIX,但它绝对不符合 POSIX.1-2017。 See http://pubs.opengroup.org/onlinepubs/9699919799/functions/clock_nanosleep.html .请参阅http://pubs.opengroup.org/onlinepubs/9699919799/functions/clock_nanosleep.html

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

OSX POSIX OSX POSIX

SUS - Single UNIX Specification. SUS - 单一 UNIX 规范。 It is a set of standards to use UNIX mark.使用UNIX标记是一套标准。

POSIX - Portable Operating System Interface. POSIX - 便携式操作系统接口。 It is a subset of SUS .它是SUS的一个子集。 It defines API between OS and application as long as others tools and utilities.它定义了操作系统和应用程序之间的 API,就像其他工具和实用程序一样。 It includes such parts as Process, IO, Threads, security, Shell包括Process、IO、Threads、security、Shell等部分

UNIX 03 is a Product Standard mark which conforms SUS version 3 UNIX 03是符合SUS version 3的产品标准标志

Latest Apple Inc UNIX products最新的 Apple Inc UNIX 产品

MAC OS(since 10.5 Leopard) is a UNIX 03 compliant OS which is certified by The Open Group. MAC OS(自 10.5 Leopard 起)是符合UNIX 03的操作系统,已获得 The Open Group 的认证。

Linux is a general name of a core for others operating system. Linux是其他操作系统内核的总称。

Linux is not POSIX-certified(except some of them like Huawei EulerOS - UNIX 03 ). Linux 不是 POSIX 认证的(除了一些像Huawei EulerOS - UNIX 03 )。 But Linux is mostly POSIX-compliant because they try to stick to these standards and even more但 Linux 大多是 POSIX 兼容的,因为他们试图坚持这些标准,甚至更多

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM