C library and Unix发展扫盲

原创 2012年03月21日 17:50:07

接触linux C有些时间了,一直对于libcglibcunix/like unix的发展不是很了解,学习这么久还不知道他的详细发展,所以整理了此文。



1.C standard library

C standard library,IEEE,ANSIC,POSIX,C POSIX library,ISOSingle UNIXSpecification


GNU C Library,Linux Standard Base,GLib

3.UNIX and like UNIX

Solaris (operating system),SunOSBSD,UNIX System V,System V Interface Definition,X/Open


C standard library


C standard library

The C Standard Library is the standard library for the programming language C, as specified in the ANSI Cstandard.[1] It was developed at the same time as the C POSIX library, which is basically a superset of it[citation needed]. Since ANSI C was adopted by the International Organization for Standardization,[2] the C standard library is also called the ISO C library.

Informally, the terms C standard library or C library or libc are also used to designate a particular implementation on a given system. In the Unix environment, such an implementation is usually shipped with the operating system and its presence is assumed by many applications. For instance, GNU/Linux comes with the GNUimplementation glibc.

The C standard library provides macros, type definitions, and functions for tasks like string handling, mathematical computations, input/output processing, memory allocation and several other operating systemservices.



The Institute of Electrical and Electronics Engineers (IEEE, read I-Triple-E) is a non-profitprofessional association headquartered in New York City that is dedicated to advancing technological innovation and excellence. It has more than 400,000 members in more than 160 countries, about 55% of whom reside in theUnited States.[2][3]



ANSI C refers to the family of successive standards published by the American National Standards Institute (ANSI) for the C programming language. Software developers writing in C are encouraged to conform to the standards, as doing so aids portability between compilers.



POSIX ( /ˈpɒzɪks/ poz-iks), an acronym for "Portable Operating System Interface", is a family of standards specified by the IEEE for maintaining compatibility between operating systems. POSIX defines the application programming interface (API), along with command line shells and utility interfaces, for software compatible with variants of Unix and other operating systems.[1][2]


C POSIX library

The C POSIX library is a specification of a C standard library for POSIX systems. It was developed at the same time as the ANSI C standard. Some effort was made to make POSIX compatible with standard C; POSIX includes additional functions to those introduced in standard C.



The International Organization for Standardization (FrenchOrganisation internationale de normalisationRussian: Международная организация по стандартизации, tr.Mezhdunarodnaya organizaciya po standartizacii),[1] widely known as ISO, is an international standard-setting body composed of representatives from various national standards organizations. Founded on February 23, 1947, the organization promulgates worldwide proprietary, industrial, and commercial standards. It has its headquarters in GenevaSwitzerland.[2]


Single UNIX Specification

The Single UNIX Specification (SUS) is the collective name of a family of standards for computer operating systems to qualify for the name "Unix". The SUS is developed and maintained by the Austin Group, based on earlier work by the IEEE and The Open Group.




GNU C Library

The GNU C Library, commonly known as glibc, is the C standard library released by the GNU Project. Originally written by the Free Software Foundation (FSF) for the GNU operating system, the library's development has been overseen by a committee since 2001,[2] with Ulrich Drepper fromGoldman Sachs as the lead contributor and maintainer.

Released under the GNU Lesser General Public License, glibc is free software.


Linux Standard Base

The Linux Standard Base (LSB) is a joint project by several Linux distributions under the organizational structure of the Linux Foundation to standardize the software system structure, including the filesystem hierarchy, used with Linux operating system. The LSB is based on the POSIXspecification, the Single UNIX Specification, and several other open standards, but extends them in certain areas.

According to the LSB:

The goal of the LSB is to develop and promote a set of open standards that will increase compatibility among Linux distributions and enable software applications to run on any compliant system even in binary form. In addition, the LSB will help coordinate efforts to recruit software vendors to port and write products for Linux Operating System.

The LSB compliance may be certified for a product by a certification procedure.[1]

The LSB specifies for example: standard libraries, a number of commands and utilities that extend the POSIX standard, the layout of the file system hierarchyrun levels, the printing system, including spoolers such as CUPS and tools like Foomatic and several extensions to the X Window System.



GLib is a cross-platform software utility library that began as part of the GTK+ project. However, before releasing version 2 of GTK+, the project's developers decided to separate non-GUI-specific code from the GTK+ platform, thus creating GLib as a separate product. GLib was released as a separate library so other developers, those who did not make use of the GUI-related portions of GTK+, could make use of the non-GUI portions of the library without the overhead of depending on a full-blown GUI library.

Since GLib is a cross-platform library, applications using it to interface with the operating system are usually portable across different operating systems without major changes.[1]



UNIX and like UNIX




Solaris (operating system)

Solaris is a Unix operating system originally developed by Sun Microsystems. It superseded their earlier SunOSin 1993. Oracle Solaris, as it is now known, has been owned by Oracle Corporation since Oracle's acquisition of Sun in January 2010.[2]

Solaris is known for its scalability, especially on SPARC systems, and for originating many innovative features such as DTraceZFS and Time Slider.[3][4] Solaris supports SPARC-based and x86-based workstations and serversfrom Sun and other vendors, with efforts underway to port to additional platforms. Solaris is registered as compliant with the Single Unix Specification.

Solaris was historically developed as proprietary software, then in June 2005 Sun Microsystems released most of the codebase under the CDDL license, and founded the OpenSolaris open source project.[5] With OpenSolaris Sun wanted to build a developer and user community around the software. After the acquisition of Sun Microsystems in January 2010, Oracle decided to discontinue the OpenSolaris distribution and the development model.[6][7] As a result, the OpenSolaris community forked as the OpenIndiana project,[8] a part of the Illumos Foundation.[7][9] In August 2010, Oracle discontinued providing public updates to the source code of the Solaris Kernel, effectively turning Solaris 11 into a closed source proprietary operating system. However, through the Oracle Technology Network (OTN), industry partners can still gain access to the in-development Solaris source code.[7]. The Open source portion of Solaris 11 is available for download from Oracle.[10]



SunOS is a version of the Unix operating system developed by Sun Microsystems for their workstation and servercomputer systems. The SunOS name is usually only used to refer to versions 1.0 to 4.1.4 of SunOS. These versions were based on BSD, while SunOS version 5.0 and later are based on UNIX System V Release 4, and are marketed under the brand name Solaris.




Berkeley Software Distribution

Berkeley Software Distribution (BSD, sometimes called Berkeley Unix) is a Unix operating system derivative developed and distributed by the Computer Systems Research Group (CSRG) of the University of California, Berkeley, from 1977 to 1995. Today the term "BSD" is often non-specifically used to refer to any of the BSD descendants which together form a branch of the family of Unix-like operating systems. Operating systems derived from the original BSD code remain actively developed and widely used.

Historically, BSD has been considered a branch of UNIX—"BSD UNIX", because it shared the initial codebase and design with the original AT&T UNIX operating system. In the 1980s, BSD was widely adopted by vendors ofworkstation-class systems in the form of proprietary UNIX variants such as DEC ULTRIX and Sun Microsystems SunOS. This can be attributed to the ease with which it could be licensed, and the familiarity it found among the founders of many technology companies of this era.

Though these proprietary BSD derivatives were largely superseded by the UNIX System V Release 4 and OSF/1 systems in the 1990s (both of which incorporated BSD code and are the basis of other modern Unix systems), later BSD releases provided a basis for several open source development projects, e.g. FreeBSDNetBSDOpenBSD orDragonFly, that are ongoing. These, in turn, have been incorporated in whole or in part in modern proprietary operating systems, e.g the TCP/IP (IPv4 only) networking code in Microsoft Windows or the foundation of Apple'sMac OS X.


UNIX System V

Unix System V, commonly abbreviated SysV (and usually pronounced—though rarely written—as "System Five"), is one of the first commercial versions of the Unix operating system. It was originally developed by American Telephone & Telegraph (AT&T) and first released in 1983. Four major versions of System V were released, termed Releases 1, 2, 3 and 4. System V Release 4, or SVR4, was commercially the most successful version, being the result of an effort, marketed as Unix System Unification, which solicited the collaboration of the major Unix vendors. It was the source of several common commercial Unix features.

While AT&T sold their own hardware that ran System V (see AT&T Computer Systems), most customers ran a version from a reseller, based on AT&T's reference implementation. A standards document called the System V Interface Definition outlined the default features and behavior of implementations. The most widely used versions of System V today are IBM's AIX, based on System V Release 3, and Sun's Solaris and Hewlett-Packard's HP-UX, both based on System V Release 4.

In the 1980s and early-1990s, System V was considered one of the two major "flavors" of UNIX, the other being Berkeley Unix(BSD). During the period of the Unix wars System V was known for being the primary choice of manufacturers of large multiuser systems, in opposition to BSD's dominance of desktop workstations. However, with standardization efforts such as POSIX and the commercial success of Linux, this generalization is not as accurate as it once was.


System V Interface Definition

The System V Interface Definition (or SVID) is a standard that describes the AT&T UNIX System V behavior, including that of system callsC libraries, available programs and devices. While it was not the first attempt at a standardizations document (the industry trade association /usr/grouppublished a standard in 1984 based on System III with a few system call additions from BSD), it was an important effort of early standardization of UNIX in a period when UNIX variants were multiplying rapidly and portability was problematic at best. By 1986, AT&T required conformance with SVID issue 2 if vendors were to actually brand their products "System V R3"[1]. By the 1990s, however, its importance was largely eclipsed by POSIX and the Single UNIX Specification, which were based in part upon the SVID. Part of the reason for this was undoubtedly their vendor-independent approach (see Unix wars).



X/Open Company, Ltd. was a consortium founded by several European UNIX systems manufacturers in 1984 to identify and promote open standards in the field of information technology.

X/Open managed the UNIX trademark from 1993 to 1996, when it merged with the Open Software Foundation to form The Open Group.




















【概念的辨异】—— ISO C 与 POSIX C(C standard library 与 C POSIX library)

ISO C 表示 C Standard Library,也就是 C 标准库。二者的主要区别在于: POSIX 是 C 标准库的超集(也即是从内容上,C 标准库是 POSIX 库的一部分,POSIX 覆...
  • lanchunhui
  • lanchunhui
  • 2017年07月29日 23:10
  • 273


K&RC  1978年,丹尼斯·里奇(Dennis Ritchie)和BrianKernighan合作出版了《C程序设计语言》的第一版。书中介绍的C语言标准也被C语言程序设计师称作“K&RC”,第二...
  • Lina_ACM
  • Lina_ACM
  • 2016年07月18日 10:49
  • 2051

经典回顾 UNIX操作系统二十年发展史

原贴: [...
  • chinalinuxzend
  • chinalinuxzend
  • 2007年09月23日 02:29
  • 773


以下内容总结自《鸟哥的Linux私房菜 -- 基础学习篇(第三版)》 1965年前后,贝尔实验室、MIT、GE共同发起Multics项目,目的是让大型主机可以同时供300台以上的终端机连接使...
  • njchina
  • njchina
  • 2015年08月14日 14:08
  • 1036


首先说明本帖是转的,旨在让大家了解科技界的一些故事,每一种科技的进步都伴随开发者们不懈的努力! Unix是目前还在存活的操作系统的元老了,走过了40年的历程。由它引发的思想变革,对当今计算机文化...
  • Acmen99
  • Acmen99
  • 2016年04月14日 19:53
  • 2248


  • u012110719
  • u012110719
  • 2014年12月06日 12:50
  • 776


从系统来源的角度看,Linux是Unix的开源实现,思想也来源于Unix,但并没有包括Unix的源码,而且是免费的自由软件,源代码是公开的。 Linux所需的硬件要求也低于Unix,难度也小于Uni...
  • a89649997
  • a89649997
  • 2017年02月28日 22:28
  • 398


原文地址: https://www.spinellis.gr/blog/20170510/两个描绘Unix操作系统架构的图标,一个是1972年第一研究版,另一个是FreeBSD的嫡系。原图。。。 ...
  • huanglong8
  • huanglong8
  • 2017年05月11日 15:26
  • 962


  • iot_hept
  • iot_hept
  • 2015年11月04日 19:23
  • 495


Unix是IT世界仅存的几个神话之一,自1969年诞生以来,它就一直被人们使用着。它过去的历史,简直就像一个民族的历史。   我们应该庆幸,全体的Unix使用者终于安全渡过了它成长中的阵痛。那些曾经被...
  • A1345103
  • A1345103
  • 2005年09月11日 22:38
  • 2138
您举报文章:C library and Unix发展扫盲