Top "Libc" questions

The C standard library consists of a set of sections of the ISO C standard which describe a collection of headers and library routines used to implement common operations, such as input/output and string handling, in the C programming language.

gcc: Reduce libc required version

I am trying to run a newly compiled binary on some oldish 32bits RedHat distribution. The binary is compiled C (…

c linux gcc linker libc
signal 11 (SIGSEGV), code 1 (SEGV_MAPERR)

I am creating a 2D game on Android using OpenGL. Currently I am testing and debugging the game on several …

android opengl-es libc segmentation-fault
version GLIBC_PRIVATE not defined in file ld-linux-x86-64.so.2

if anyone could give a beginner some help on gcc version issue? I met the issue on "version GLIBCXX_3.4.20' …

gcc libc
How to build a static binary for GNU/Linux installations with old kernel?

$ printf 'int main(){}' | gcc -static -x c - -o hello $ scp hello vi-server.org:./ hello 100% 565KB 565.2KB/s 00:00 $ ssh …

linux gcc libc
Why the absolute value of the max negative integer -2147483648 is still -2147483648?

The result of abs(-2147483648) is -2147483648, isn't it? it seems unacceptable. printf("abs(-2147483648): %d\n", abs(-2147483648)); output: …

c libc
Apt-get can't install anything due to broken dependencies

Whenever I run apt-get install for any package I get this error ➜ ~ sudo apt-get install clang-5.0 Reading package lists... Done …

debian apt libc dpkg
Linux function to get mount points

Is there a function (or interface; ioctl, netlink etc) in the standard Linux libs that will return the current mounts …

c linux mount libc
Where can I browse the sourcecode for libc online (like doxygen)

Sometimes I want to look up the implementations of functions in the stdlib, I've downloaded the sourcecode, but it's quite …

documentation kernel libc
Fatal signal 11 (SIGSEGV) code=2 on genymotion emulator not using NDK

My application does not use NDK. I am testing it on the GenyMotion Nexus 7 emulator and the problem is quite …

android android-fragments android-ndk libc genymotion
How do I reimplement (or wrap) a syscall function on Linux?

Suppose I want to completely take over the open() system call, maybe to wrap the actual syscall and perform some …

c linux system-calls libc