The relationship between libc, glibc and glib: http://blog.csdn.net/yasi_xi/article/details/9899599
GLIBC and libc are all C function libraries under Linux.
LIBC is the ANSI C function library under Linux, and GLIBC is the GUN C function library under Linux.
glibc. So files in the/lib directory are libc.so.6.
What is the difference between ANSI C and GNU c?
The ANSI C function library is the basic C language function library, which contains the most basic library functions of C language. This library can be divided into 15 sections based on the header file, which includes:
- <ctype.h>: A function prototype containing a function for testing a feature character, and a function prototype for converting uppercase and lowercase letters;
- <errno.h>: Defines the macro used to report error conditions;
- <float.h>: Contains the floating-point size limit of the system;
- <math.h>: A function prototype containing mathematical library functions;
- <stddef.h>: Contains the common function definitions used to perform some calculation C;
- <stdio.h>: function prototypes containing standard input and output library functions, and the information they use;
- <stdlib.h>: A function prototype that includes the conversion of numbers to text, and the conversion of text to numbers, as well as memory allocations, random numbers, and functional prototypes of other utility functions;
- <string.h>: A function prototype containing string processing functions;
- <time.h>: Function prototypes and types that contain time and date operations;
- <stdarg.h>: Contains function prototypes and macros, which are used to process the parameter lists of functions with unknown values and types;
- <signal.h>: Contains function prototypes and macros to handle various conditions that may occur during program execution;
- <SETJMP.H>: Contains a prototype of a function that bypasses a general function call and returns a sequence, that is, a non-local jump;
- <locale.h>: Contains function prototypes and other information that enables programs to be modified for the region in which they are running.
- Regional representations can enable computer systems to process different data expression conventions, such as the world's date, time, dollar number, and large numbers;
- <assert.h>: Contains macros and information for diagnostic purposes, to help debug the program.
The above library functions are available in various Ides that support the C language.
The main glibc are as follows:
(1) String processing
(2) signal, signal processing
(3) DLFCN, managing dynamic loading of shared libraries
(4) Direct, file directory operation
(5) Elf, shared library dynamic loader, also known as interpreter
(6) Iconv, encoding conversion of different character sets
(7) Implementation of Inet,socket interface
(8) Intl, internationalization, that is, the realization of GetText
(9) IO
(Ten) Linuxthreads
(one) locale, localization
Login, management of virtual terminal equipment, and secure access to the system
malloc, dynamic memory allocation and management
(+) NIS
(stdlib), other basic functions
glibc | The relationship with LIBC