Differences between glib and glibc

Source: Internet
Author: User
Tags posix

When I installed syslog-ng 3.0 today, I said that glib 2.12.3 or above is required. I think there is another glibc library, which seems to be different. I searched the internet for it:

Original article: http://hi.baidu.com/yuanfang/blog/item/85acd788af41c191a5c27208.html

Glib is GTK
+ The Basics of libraries and gnome. Glib can be used on multiple platforms, such as Linux, UNIX, and windows. Glib provides substitutes for many standard and common C language structures.
Glib defines a lot of useful data structures, such as single (dual) connected tables, variable length arrays, thread pools, and other useful things. Use the glib LibraryProgramShould contain the glib header file glib. h.

Glibc
Is a C library that provides system calls and basic functions, such as open, malloc, and printf. All programs with dynamic connections need to use it. Is the C library developed by GNU.

They do not have much to do with their purposes.

Glib is a general-purpose Utility library, which provides implements useful data
Types, macros, type conversions, string utilities, file utilities, a main loop
Invalid action, and so on. It works on customized Unix-like platforms, windows, OS/2 and
BEOs. glib is released under the GNU Library General Public License (GNU
Lgpl ).

The general policy of glib is that all functions are invisibly threadsafe
With the exception of Data Structure manipulation functions, where, if you have
Two threads manipulating the same data structure, they must use a lock
Synchronize their operation.

Glibc

The gnu c library is primarily designed to be a portable and High Performance
C library.

It follows all relevant standards (ISO c 99, posix.1c, posix.1j, posix.1d,
Unix98, single UNIX Specification). It is also internationalized and has one
The most complete internationalization interfaces known.

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.