当前位置:网站首页>The relationship between libc, glibc and glib
The relationship between libc, glibc and glib
2022-06-10 04:19:00 【sun007700】
glibc and libc All are Linux Under the C function library .libc yes Linux Under the ANSI C function library ;glibc yes Linux Under the GUN C function library .
ANSI C Function libraries are basic C Language function library , Contains C Language's most basic library functions . This library can be divided into... According to the header file 15 Parts of , These include :
<ctype.h>: A function prototype that contains a function used to test a characteristic character , And the function prototype used to convert uppercase and lowercase letters ;
<errno.h>: Define macros to report error conditions ;
<float.h>: Contains the floating point size limit of the system ;
<math.h>: Function prototype containing mathematical library functions ;
<stddef.h>: Includes performing some calculations C Common function definitions used ;
<stdio.h>: Function prototype containing standard input / output library functions , And the information they use ;
<stdlib.h>: Contains numbers converted to text , And a function prototype for converting text to numbers , And memory allocation 、 Function prototype of random numbers and other practical functions ;
<string.h>: Contains the function prototype of the string handler ;
<time.h>: Function prototype and type containing time and date operations ;
<stdarg.h>: Contains function prototypes and macros , Parameter list for functions that handle unknown values and types ;
<signal.h>: Contains function prototypes and macros , Used to handle various conditions that may occur during program execution ;
<setjmp.h>: Contains prototypes of functions that can bypass general function calls and return sequences , That is, nonlocal jump ;
<locale.h>: Contains function prototypes and other information , So that the program can be modified according to the region in which it is running .
The representation of regions enables the computer system to process different data expression conventions , Such as the date of the world 、 Time 、 Dollars and big numbers ;
<assert.h>: Contains macros and information , For diagnosis , Help program debugging .
The above library functions are supported in various ways C Linguistic IDE All of them have .
GNU C A function library is something like a third-party plug-in . because Linux Yes, it is C Written language , therefore Linux Some of the operations of the are done with C The realization of language , therefore ,GUN The organization has developed a C Language library so that we can make better use of C Language development is based on Linux Operating system programs . But now the difference is Linux The release of has a different approach to these two libraries , Some may have been integrated into the same library .
glibc yes linux below c Implementation of standard library , namely GNU C Library.glibc Itself is GNU Flag C Standard library , And it gradually became Linux Standards for c library , and Linux Under the original standard c library Linux libc Gradually no longer maintained .Linux The following criteria c The library doesn't just have this one , Such as uclibc、klibc, And the above mentioned Linux libc, however glibc It is undoubtedly the most used .glibc stay /lib In the catalog .so File for libc.so.6.
glib and glibc Basically there is not much connection , Perhaps the only thing in common is , All of them are C Programming needs to call the library .
glib yes Gtk+ Kuhe Gnome The basis of .glib It can be used on multiple platforms , such as Linux、Unix、Windows etc. .glib For many standard 、 frequently-used C Language structure provides a corresponding substitute [1] .
glib yes GTK+ The foundation of the library , It consists of the base type 、 Support for core applications 、 Practical functions 、 The data type and object system are composed of five parts , Can be in [http://www.gtk.orggtk Website ] Download its source code . It is a comprehensive, practical and lightweight C library , It provides C The definition of common data structure of language 、 Related processing functions , Interesting and useful macros , Portable packaging and some runtime functionality , Like an event loop 、 Threads 、 Dynamic invocation 、 Object system, etc API.GTK+ It's portable , Of course glib It's also portable , You can linux Next , It can also be in windows Use it under . Use gLib2.0(glib Of 2.0 edition ) Written applications , When compiling, you should add... To the compilation command pkg-config --cflags --libs glib-2.0, Such as :
1 |
|
Use glib The most famous is GNOME 了 .
边栏推荐
- On the night of the joint commissioning, I beat up my colleagues
- 外观设计产品用途
- [adaptive motion compensation] FPGA based adaptive motion compensation video image enhancement system
- MySQL - data type
- Leetcode weekly buckle race 296
- 作为软件测试工程师,给年轻时的自己的建议(上)
- [laser principle and application-1]: what is a laser and its common applications
- FastApi-14-文件上传-2
- 什么时候用@ComponentScan?与@MapperScan有什么区别?
- [机缘参悟-18]:儒释道,不同人生阶段,不同选择
猜你喜欢
随机推荐
Fleeing Beijing, Shanghai and Guangzhou at the age of 35, and giving away food when unemployed at the age of 40, the "dignity" of middle-aged people lies in investing in themselves
QT cannot connect to local MySQL
[激光器原理与应用-1]:什么是激光器以及激光器的常见应用
SSTI (template injection) - (7)
[机缘参悟-20]:鬼谷子-反应篇-动静之术、说听结合、沉默是金
Unity光照黑莫名其妙的偏色问题
[in depth study of 4g/5g/6g topic -25]: 5g NR startup process 4.3 - first scheduling of RRC connection request message msg3/rrcsetuprequest and Pusch uplink channel
[深入研究4G/5G/6G专题-29]: 5G NR开机流程5.1 - NR网络架构、基站的核心网相关配置
golang学习之五:error、painc、recover
[special introduction] round table forum -- the integration of AI and audio and video technology
SSTI (template injection) - (6)
Today, 19:30 | graphics special session - Gao Lin's team from Institute of computing technology, Chinese Academy of Sciences
[in depth study of 4g/5g/6g topic -31]: 5g NR startup process 5.2 - ue attach process (registration request/accept/complete)
3- programming language -- golang website learning
After working for 8 years, the monthly salary was 8000, but it didn't rise for 4 years. I got 15000 for job hopping. The former boss couldn't recruit anyone and begged to go back
Ammonium tech, a well-known network security hardware platform manufacturer, joined dragon lizard community
[learn FPGA programming from scratch -13]: quick start chapter - operation step 3 (functional simulation) -2-mentor HDL simulation tool introduction to Modelsim tool and basic principle of functional
How to view Scala source code in idea
Golang learning 6: file operation in
Golang learning 4: closures and defers
![[科技特长-3]:中考科技特长生知多少](/img/a6/f0a2f8dafffa28d2b2d2cd0431b739.jpg)

![[Error] anonymous type with no linkage used to declare function ‘bool InitSLinkList](/img/18/debeb3e1125de7f172a5cca3bd0d83.png)


![[机缘参悟-16]:金字塔层次结构符合天道自然](/img/d3/799e67b6dc825758927191d2ef8c4f.jpg)
![[Android L]SEAndroid增强Androd安全性背景概要及带来的影响](/img/cf/591fc78cdf158b31fac86a092adc49.png)


