What is GLIBC? What is it used for?
NickName:user1261015 Ask DateTime:2012-07-13T05:14:12

What is GLIBC? What is it used for?

I was searching for the source code of the C standard libraries. What I mean with it is, for example, how are cos, abs, printf, scanf, fopen, and all the other standard C functions written, I mean to see their source code.

So while searching for this, I came across with GLIBC, but I don't know what it actually is. It is GNU C Library, and it contains some source codes, but what are they actually, are they the source code of the standard functions or are they something else? And what is it used for?

Copyright Notice:Content Author:「user1261015」,Reproduced under the CC 4.0 BY-SA copyright license with a link to the original source and this disclaimer.
Link to original article:https://stackoverflow.com/questions/11460782/what-is-glibc-what-is-it-used-for

More about “What is GLIBC? What is it used for?” related questions

What is GLIBC? What is it used for?

I was searching for the source code of the C standard libraries. What I mean with it is, for example, how are cos, abs, printf, scanf, fopen, and all the other standard C functions written, I mean ...

Show Detail

What is the purpose of this code segment from glibc

I am trying to understand what the following code segment from tls.h in glibc is doing and why: /* Macros to load from and store into segment registers. */ # define TLS_GET_FS() \ ({ int __seg;...

Show Detail

What is glibc and POSIX exactly?

I am really confused. Please look at the following picture: I found out that there is a library in linux called glibc, which when we execute our c/c++ programs we use its functions and it calls the

Show Detail

What is the glibc GLRO macro?

I'm currently trying to understand how the glibc startup routines (__libc_start_main) process Elf Auxiliary vector types (auxv_t). Browsing through the source code for glibc, I find references to ...

Show Detail

glibc version used while building .a file

Is there a way to find out from .a file what version of glibc is expected or was used when building the .a?

Show Detail

How to tell if glibc is used

I am trying to implement backtrace functionality for a large framework, which is used for different platforms and OS'es. In some of them, it is linked against glibc, while in the other, something

Show Detail

Structure of glibc?

Since glibc automatically gets linked when you compile your program with gcc, many people including me don't know about it very much. So my question is, what is glibc composed of. What are the obje...

Show Detail

What scratch buffer means in glibc?

I found that below codes makes heap leak if I check it with tcmalloc heap checker with draconian mode but the leak is not found with LSan (I assume that internal allocation in glibc is suppressed i...

Show Detail

Bitbake how to downgrade version of glibc used?

I need to downgrade the version of glibc in the project that is built by bitbake. Currently, bitbake uses glibc2.28 for the project build. What do I need to do in order bitbake would use glibc2.24 ...

Show Detail

what is the difference between .o and .os objs in glibc

I am studying the source code of glibc. I found when compiling glibc I get some .o objs and some .os objs. E.g., there is a dl-load.o, as well as a dl-load.os. So, what is the difference between th...

Show Detail