Single UNIX Specification explained

The Single UNIX Specification (SUS) is a standard for computer operating systems,[1] [2] compliance with which is required to qualify for using the "UNIX" trademark. The standard specifies programming interfaces for the C language, a command-line shell, and user commands. The core specifications of the SUS known as Base Specifications are developed and maintained by the Austin Group, which is a joint working group of IEEE, ISO/IEC JTC 1/SC 22/WG 15 and The Open Group. If an operating system is submitted to The Open Group for certification, and passes conformance tests, then it is deemed to be compliant with a UNIX standard such as UNIX 98 or UNIX 03.

Very few BSD and Linux-based operating systems are submitted for compliance with the Single UNIX Specification, although system developers generally aim for compliance with POSIX standards, which form the core of the Single UNIX Specification.

The latest SUS consists of two parts: the base specifications technically identical to POSIX, and X/Open Curses specification.[3]

Some parts of the SUS are optional.

History

1980s: Motivation

The SUS emerged from multiple 1980s efforts to standardize operating system interfaces for software designed for variants of the Unix operating system. The need for standardization arose because enterprises using computers wanted to be able to develop programs that could be used on the computer systems of different manufacturers without reimplementing the programs. Unix was selected as the basis for a standard system interface partly because it was manufacturer-neutral.

In 1984, the UNIX user group called /usr/group published the results of their standardization effort for programming interfaces in their 1984 /usr/group standard, which became basis for what would become the POSIX.1-1988 standard.[4] [5]

In 1985, AT&T published System V Interface Definition (SVID), a specification of UNIX System V programming interfaces.[6]

1988: POSIX

In 1988, standardization efforts resulted in IEEE 1003 (also registered as ISO/IEC 9945), or POSIX.1-1988, which loosely stands for Portable Operating System Interface.

1980s and 1990s: X/Open Portability Guide

The X/Open Portability Guide (XPG) was a precursor to the SUS, published by the X/Open Company, a consortium of companies established in 1984. The guides were published in the following years.

XPG4 Base included the following documents:

1990s: Spec 1170

In the early 1990s, a separate effort known as the Common API Specification or Spec 1170 was initiated by several major vendors,[9] who formed the COSE alliance in the wake of the Unix wars. In 1993, Spec 1170 was assigned by COSE to X/Open for fasttrack.[10] In October 1993, a planned transfer of UNIX trademark from Novell to X/Open was announced;[11] it was finalized in 2nd quarter of 1994.[12] Spec 1170 would eventually become the Single Unix Specification.[9]

1994: Single UNIX Specification

In 1994, the X/Open Company released the Single UNIX Specification.[9] The SUS was made up of documents that were part of the X/Open Common Applications Environment (CAE):[9]

This was a repackaging of the X/Open Portability Guide (XPG), Issue 4, Version 2.

Sources differ on whether X/Open Curses, Issue 4, Version 2 was part of this SUS;[9] [17] its copyright date is given as 1996.[18] X/Open Curses, Issue 4 was published in 1995.[19]

In October 1994, X/Open indicated they were going to refer to Spec 1170 as '"Single-Unix" specification'.[20]

The SUS was at the core of the UNIX 95 brand.[21]

This version had 1168 programming interfaces.

This version of SUS was drawn from the following sources:[9]

1997: Single UNIX Specification, version 2

In 1996, X/Open merged with Open Software Foundation (OSF) to form The Open Group.[22] [23]

In 1997, the Open Group released the Single UNIX Specification, Version 2.[24] [25]

This specification consisted of:[26]

and was at the core of the UNIX 98 brand.[32]

This version had 1434 programming interfaces.

2001: Single UNIX Specification, version 3, POSIX.1-2001

Beginning in 1998, a joint working group of IEEE, ISO JTC 1 SC22 and The Open Group known as the Austin Group began to develop the combined standard that would be known as the core of Single UNIX Specification, Version 3 and as POSIX.1-2001. It was released on January 30, 2002.[33]

This SUS consisted of:[34]

and is at the core of the UNIX 03 brand.[35]

The Base Specifications are technically identical to POSIX.1-2001, which is IEEE Std 1003.1-2001.[34]

This version had 1742 programming interfaces.[36]

An authorized guide is available for the version.[37]

2004 Edition

In 2004, a new edition of the POSIX.1-2001 standard was released, incorporating two technical corrigenda.[38] [39] It is called IEEE Std 1003.1, 2004 Edition.[39] Some informally call it POSIX.1-2004,[40] [41] [42] but this is not an official identification.

2008: Single UNIX Specification, version 4, POSIX.1-2008

In December 2008, the Austin Group published a new major revision of SUS and POSIX.[43] [44] [45] This is the Single UNIX Specification, Version 4 (SUSv4).[46]

This SUS consists of:[47]

The Base Specifications are technically identical to POSIX.1-2008, which is IEEE Std 1003.1-2008.[47]

This version had 1833 interfaces, of which 1191 were in the System Interfaces section.[48]

2013 Edition

Technical Corrigendum 1 mostly targeted internationalization, and also introduced a role-based access model. A trademark UNIX V7 (not to be confused with V7 UNIX, the version of Research Unix from 1979) was created to mark compliance with SUS Version 4.[49]

2016 Edition

Technical Corrigendum 2 was published in September 2016, leading into IEEE Std 1003.1-2008, 2016 Edition and Single UNIX Specification, Version 4, 2016 Edition.

2018 Edition, POSIX.1-2017

In January 2018, an "administrative rollup" edition was released. It incorporates Single UNIX Specification version 4 TC1 and TC2, and is technically identical to the 2016 edition.[50]

The Base Specifications are technically identical to POSIX.1-2017, which is IEEE Std 1003.1-2017.[51]

Specification

SUSv3 totals some 3700 pages, which are divided into four main parts:

The standard user command line and scripting interface is the POSIX shell, an extension of the Bourne Shell based on an early version of the Korn Shell. Other user-level programs, services and utilities include awk, echo, ed, vi, and hundreds of others. Required program-level services include basic I/O (file, terminal, and network) services. A test suite accompanies the standard. It is called PCTS or the POSIX Certification Test Suite.

Additionally, SUS includes CURSES (XCURSES) specification, which specifies 372 functions and 3 header files. All in all, SUSv3 specifies 1742 interfaces.

Note that a system need not include source code derived in any way from AT&T Unix to meet the specification. For instance, IBM OS/390, now z/OS, qualifies as UNIX despite having no code in common.[52]

Marks for compliant systems

There are five official marks for conforming systems:[53] [54]

Compliance

ProductVendorArchitectureUNIX V7UNIX 03UNIX 98UNIX 95UNIX 93
AIXIBM CorporationPOWER processors
HP-UXHewlett Packard EnterpriseIA-64, PA-RISC
macOSApplex86-64, ARM64
OpenServerXinuosIA-32
UnixWareXinuosIA-32
z/OSIBM Corporationz/Architecture

Currently registered UNIX systems

AIX

AIX version 7, at either 7.1 TL5 (or later) or 7.2 TL2 (or later) are registered as UNIX 03 compliant.[61] AIX version 7, at 7.2 TL5 (or later) are registered as UNIX V7 compliant.[62] Older versions were previously certified to the UNIX 95 and UNIX 98 marks.[63]

HP-UX

HP-UX 11i V3 Release B.11.31 is registered as UNIX 03 compliant. Previous releases were registered as UNIX 95.[64]

macOS

Apple macOS (formerly known as Mac OS X and OS X) is registered as UNIX 03 compliant.[65] The first version registered was Mac OS X 10.5 Leopard, certified on October 26, 2007 (on x86 systems).[66] [67] All versions of macOS from Mac OS X Leopard to macOS 10.15 Catalina, except for OS X Lion,[68] have been registered on Intel-based systems, and all versions from macOS 11 Big Sur, the successor to macOS Catalina, to macOS 14 Sonoma have been registered on both x86-64 and ARM64 systems.[69]

Xinuos

UnixWare 7.1.3 and later is registered as UNIX 95 compliant.OpenServer 5 and 6 are registered as UNIX 93 compliant.

z/OS

IBM z/OS 1.2 and higher is registered as UNIX 95 compliant.z/OS 1.9, released on September 28, 2007, and subsequent releases "better align" with UNIX 03.[70]

Previously registered UNIX systems

EulerOS

EulerOS 2.0 for the x86-64 architecture was registered as UNIX 03 compliant.[71] [72] The UNIX 03 conformance statement shows that the standard C compiler is from the GNU Compiler Collection, and that the system is a Linux distribution of the Red Hat Enterprise Linux family.[73] The UNIX 03 certification expired in September 2022 and has not been renewed.

FTX

Stratus Technologies DNCP Series servers running FTX Release 3 were registered as UNIX 93 compliant.[74]

Inspur K-UX

Inspur K-UX 2.0 and 3.0 for the x86-64 architecture were certified as UNIX 03 compliant.[75] [76] The UNIX 03 conformance statement for Inspur K-UX 2.0 and 3.0 shows that the standard C compiler is from the GNU Compiler Collection, and that the system is a Linux distribution of the Red Hat family.[77]

IRIX

SGI IRIX 6.5 was registered as UNIX 95 compliant.[78]

OS/390

IBM OS/390 was registered as UNIX 95 compliant beginning with the V2R4 release.[79]

Reliant UNIX

The last Reliant UNIX versions were registered as UNIX 95 compliant (XPG4 hard branding).

Solaris

Solaris 11.4 was previously registered as UNIX v7 compliant in 2018.[80] Solaris 11 and Solaris 10 were registered as UNIX 03 compliant on 32-bit and 64-bit x86 (X86-64) and SPARC systems. Solaris 8 and 9 were registered as UNIX 98 compliant on 32-bit x86 and SPARC systems; 64-bit x86 systems were not supported. Solaris 2.4 and 2.6, on both x86 and SPARC, were certified to the UNIX 93 and UNIX 95 marks respectively.

Solaris 2.5.1 was also registered as UNIX 95 compliant on the PReP PowerPC platform in 1996, but the product was withdrawn before more than a few dozen copies had been sold.[81]

Tru64 UNIX

Tru64 UNIX V5.1A and later were registered as UNIX 98 compliant.[82]

Other

Other operating systems previously registered as UNIX 95 or UNIX 93 compliant:

Non-registered Unix-like systems

Developers and vendors of Unix-like operating systems such as Linux, FreeBSD, and MINIX typically do not certify their distributions and do not install full POSIX utilities by default.

For Linux, pax command is usually not installed; furthermore, pax command packages available for Linux often lack pax file format support required by POSIX.[83] Sometimes, SUS compliance can be improved by installing additional packages, but very few Linux systems can be configured to be completely conformant. The Linux Standard Base was formed in 2001 as an attempt to standardize the internal structures of Linux-based systems for increased compatibility. It is based on the POSIX specifications, the Single UNIX Specification, and other open standards, and also extends them in several areas; but there are some conflicts between the LSB and the POSIX standards.[84] [85] Few Linux distributions actually go through certification as LSB compliant.[86]

Darwin, the open source subset of macOS, has behavior that can be set to comply with UNIX 03.[87] [88] Darwin uses a 4.4BSD-derived pax command,[89] which lacks multibyte support for filenames.

FreeBSD previously had a "C99 and POSIX Conformance Project" which aimed for compliance with a subset of the Single UNIX Specification, and documentation where there were differences.[90] FreeBSD pax command, derived from 4.4BSD, does not fully support pax file format. pax and ustar in-archive format use the same with slightly different defaults (5120 block size vs 10240 block size);[91] however, FreeBSD's pax lacks the extended PAX headers used for extended character set support. FreeBSD man pages sometimes indicate deviations from POSIX and thus SUS in their STANDARDS sections.

OpenBSD man pages sometimes indicate deviations from POSIX and thus SUS in their STANDARDS sections.

MINIX pax command does not support pax file format[92] and thereby fails POSIX.1-2001.

See also

External links

Notes and References

  1. Web site: Questions & Answers. unix.org.
  2. Web site: The UNIX Standard. The Open Group. August 27, 2018 .
  3. Web site: Single UNIX Specification, Version 4, 2018 Edition. The Open Group.
  4. Web site: Conceiving Open Systems. Christopher M.. Kelty. kelty.org.
  5. Book: Standards Conformance Guide. SunSoft. November 1995.
  6. Book: System V Interface Definition. 1985. B000KF6SCE.
  7. Book: Raymond, Eric S.. The Art of UNIX Programming. Eric S. Raymond. September 19, 2003. Standards and the Unix Wars. http://www.catb.org/~esr/writings/taoup/html/ch17s02.html#id2994594.
  8. Book: Unix Network Programming, Volume 1: The Sockets Networking API . Addison-Wesley Professional . W. Richard . Stevens . W. Richard Stevens . Bill . Fenner . Andrew M. . Rudoff . 2003 . 978-0131411555 . 53867239 . 3rd.
  9. Web site: The Single UNIX Specification. unix.org.
  10. Web site: The UNIX System -- History and Timeline -- UNIX History. unix.org.
  11. The name "UNIX" is now the property of X/Open. Quentin. Fennessy. October 12, 1993. comp.std.unix.
  12. Web site: Frequently Asked Questions. unix.org.
  13. Book: X/Open CAE Specification System Interface Definitions, Issue 4, Version 2. 1994. X/Open Company.
  14. Book: X/Open CAE Specification System Interfaces and Headers, Issue 4, Version 2. 1994. X/Open Company.
  15. Book: X/Open CAE Specification Commands and Utilities, Issue 4, Version 2. 1994. X/Open Company.
  16. Book: X/Open CAE Specification Networking Services, Issue 4. 1994 . X/Open Company.
  17. Web site: Single UNIX® Specification, Version 1 Document Set (UNIX 95). May 25, 2021. opengroup.org.
  18. Book: X/Open Curses, Issue 4, Version 2. 1996. X/Open Company . 1-85912-171-3.
  19. Book: X/Open Curses, Issue 4. 1995. X/Open Company . 9781859120774 .
  20. X/Open test suites advance. Jean S.. Bozman. Computerworld. 28. 43. 49. October 24, 1994.
  21. Web site: Open Brand - UNIX 95. The Open Group.
  22. Formation of 'The Open Group'. Phil. McCrea. 17–18. AUGGN: The Journal of AUUG Inc.. 17. 2. April 1996.
  23. WebCrusader may blaze wider trail for DCE users. Sharon. Gaudin. Computerworld. 30. 22. 64. May 27, 1996.
  24. Web site: The Single UNIX Specification, Version 2. www.opengroup.org.
  25. The Open Group Announces Enhanced Single UNIX Specification . July 26, 2009 . March 12, 1997. The Open Group.
  26. Web site: What's New in the Single UNIX Specification, Version 2. unix.org.
  27. Book: System Interface Definitions Issue 5. The Open Group.
  28. Book: System Interfaces and Headers Issue 5. The Open Group.
  29. Book: Commands and Utilities Issue 5. The Open Group.
  30. Book: Networking Services (XNS) Issue 5. The Open Group. May 14, 1997 . 1-85912-165-9.
  31. Book: X/Open Curses, Issue 4, Version 2. 1996. The Open Group. 1-85912-171-3.
  32. Web site: Open Brand - UNIX 98. X/Open Company.
  33. The Open Group announces completion of the joint revision to POSIX and the Single UNIX Specification . July 26, 2009 . January 30, 2002. The Open Group.
  34. Web site: The Single UNIX Specification Version 3 - Overview. unix.org.
  35. Web site: Open Brand - UNIX 03. The Open Group.
  36. Web site: How many APIS are there?. unix.org.
  37. Book: The Single UNIX Specification: The Authorized Guide to Version 3, 2nd Edition. The Open Group.
  38. Web site: The Open Group Base Specifications Issue 6. The Open Group.
  39. Web site: IEEE Std 1003.1, 2004 Edition . July 26, 2009.
  40. Web site: POSIX.1(5). Oracle Solaris 11.2 Information Library.
  41. Book: https://www.gnu.org/software/libc/manual/html_node/Feature-Test-Macros.html. 1.3.4 Feature Test Macros. The GNU C Library manual. The GNU Project.
  42. POSIX Abstractions in Modern Operating Systems: The Old, the New, and the Missing. Eleventh European Conference on Computer Systems. 10.1145/2901318.2901350. free.
  43. Web site: The Open Group Base Specifications Issue 7, 2018 edition. www.opengroup.org.
  44. Web site: Base Specifications, Issue 7 . July 26, 2009 . The Open Group.
  45. Web site: The Austin Common Standards Revision Group . July 26, 2009 . The Open Group.
  46. Web site: Single UNIX Specification Version 4. The Open Group.
  47. Web site: The Single UNIX Specification Version 4 - Introduction. unix.org.
  48. Web site: Version 4 Interface Counts. unix.org.
  49. Web site: UNIX V7 Certification. unix.org.
  50. Web site: Base Specifications, Issue 7, 2018 Edition . The Open Group . July 6, 2018.
  51. Web site: IEEE SA - IEEE/Open Group 1003.1-2017. IEEE.
  52. Web site: Can GNU ever be Unix?. Jem. Matzan. July 30, 2004. linux.com.
  53. Web site: UNIX(R) Certified Products - The Open Group official register of UNIX Certified Products. The Open Group.
  54. Web site: The Open Brand - The full register of certified products. The Open Group.
  55. Web site: The Open Brand Register, UNIX 93. The Open Group.
  56. Web site: The Open Brand Register, UNIX 95. The Open Group.
  57. Web site: The Open Brand Register, UNIX 98. The Open Group.
  58. Web site: The Open Brand Register, UNIX 03. The Open Group.
  59. Web site: The Open Brand Register, UNIX V7. The Open Group.
  60. Web site: The UNIX System -- UNIX V7 Certification. unix.org.
  61. Web site: The Open Group. UNIX 03, AIX.
  62. Web site: The Open Group. UNIX V7, AIX.
  63. Web site: https://web.archive.org/web/20030802103246/http://www.opengroup.org/openbrand/register/. The Open Brand - Register of Certified Products. July 23, 2003. August 2, 2003. January 23, 2022. Open Group.
  64. Web site: UNIX 2003 Standard Profile conformance. July 22, 2014. Hewlett-Packard. https://web.archive.org/web/20140727044600/http://h21007.www2.hp.com/portal/download/files/unprot/STK/HPUX_STK/impacts/i1071.html. July 27, 2014.
  65. Web site: OS X for UNIX Users. July 2011.
  66. Web site: Apple Inc.. Mac OS X Leopard - Technology - UNIX. Leopard Technology Overview. June 11, 2007. Leopard is now an Open Brand UNIX 03 Registered Product, conforming to the SUSv3 and POSIX 1003.1 specifications for the C API, Shell Utilities, and Threads. . https://web.archive.org/web/20070823040630/http://www.apple.com/macosx/leopard/technology/unix.html . August 23, 2007.
  67. Web site: The Open Group. Mac OS X Version 10.5 Leopard on Intel-based Macintosh computers certification. June 12, 2007.
  68. Web site: Re: was OS X version 10.7 Lion UNIX 03 certified? . 2021-07-22 . www.mail-archive.com . April 29, 2020 . https://web.archive.org/web/20200429213555/https://www.mail-archive.com/austin-group-l@opengroup.org/msg02006.html . live .
  69. Web site: Open Brand . 2022-11-15 . www.opengroup.org.
  70. Book: z/OS Version 1 Release 9 Implementation . June 9, 2024 . December 2007 . 4-5,156-162 . IBM . SG24-7427-00 . First.
  71. Huawei KunLun EulerOS 2.0 Operating System Passes UNIX Certification. September 9, 2016. October 29, 2016. Huawei.
  72. Web site: The Open Group. UNIX 03, EulerOS.
  73. Web site: Huawei Conformance Statement: Commands and Utilities V4. Peng Shen. The Open Group. October 29, 2016.
  74. Web site: The Open Group. The Open Brand - Register of Certified Products - UNIX 93. https://web.archive.org/web/20161005132055/https://www.opengroup.org/openbrand/register/xt.htm. October 5, 2016.
  75. Web site: The Open Brand Register of Certified Products. May 29, 2014. The Open Group. May 29, 2014.
  76. Web site: Inspur Conformance Statement. Xie Ruohong. The Open Group. December 8, 2015.
  77. Web site: Inspur Conformance Statement: Commands and Utilities V4. Xie Ruohong. The Open Group. December 8, 2015.
  78. Web site: Silicon Graphics Inc - UNIX 95. Open Group. 2003-08-02. https://web.archive.org/web/20030802154406/http://www.opengroup.org/openbrand/register/xu013.htm. dead.
  79. Web site: Register of Open Branded Products (OS/390). https://web.archive.org/web/20030629093915/http://www.opengroup.org/openbrand/register/xu009.htm. 2003-06-29. 2003-06-19. Open Group. dead.
  80. Web site: UNIX V7 - The Open Brand Register, Oracle Corporation. The Open Group. https://web.archive.org/web/20200114100431/https://www.opengroup.org/openbrand/register/brand3642.htm. January 14, 2020. January 16, 2021.
  81. Web site: Solaris 2.5.1. https://web.archive.org/web/20050912194850/http://www.ocf.berkeley.edu/solaris/versions/solaris/2.5.1.html. September 12, 2005. dead.
  82. Web site: Compaq Computer Corporation - UNIX 95. Open Group. 2003-06-29. https://web.archive.org/web/20030629103042/http://www.opengroup.org/openbrand/register/xx001.htm.
  83. Web site: Bug #1329914 "No UNIX compatible pax implementation" : Bugs : RPM. Ubuntu bug tracker. June 13, 2014.
  84. 38825 . ISO/IEC TR 24715:2006 - Information technology -- Programming languages, their environments and system software interfaces -- Technical Report on the Conflicts between the ISO/IEC 9945 (POSIX) and the Linux Standard Base (ISO/IEC 23360) . October 15, 2011.
  85. Web site: Conflicts between ISO/IEC 9945 (POSIX) and the Linux Standard Base.. Andrew. Josey. Unapproved Draft. personal.opengroup.org. August 29, 2005.
  86. Web site: Certified Products Product Directory. December 9, 2015. The Linux Foundation. https://archive.today/20121220223126/https://www.linuxbase.org/lsb-cert/productdir.php?by_lsb. December 20, 2012.
  87. Web site: Mac OS X Manual Page for compat(5) - Mac OS X 10.3. October 23, 2005. developer.apple.com. https://web.archive.org/web/20090310143649/http://developer.apple.com/documentation/Darwin/Reference/Manpages/man5/compat.5.html. March 10, 2009. May 24, 2018.
  88. Web site: compat(5) Manual Page - macOS 10.9. June 30, 2010. developer.apple.com. May 24, 2018.
  89. Web site: Mac OS X Manual Page for pax(1) - Mac OS X 10.3. October 23, 2005. developer.apple.com. https://web.archive.org/web/20090310143649/http://developer.apple.com/documentation/Darwin/Reference/Manpages/man1/pax.1.html. March 10, 2009. November 25, 2023.
  90. Web site: FreeBSD C99 and POSIX conformance project. FreeBSD Project. https://web.archive.org/web/20131223025351/http://www.freebsd.org/projects/c99/. December 23, 2013. dead.
  91. Web site: pax - portable archive interchange. The Open Group.
  92. Web site: pax(1). man.minix3.org.