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.

Installing a prebuilt binary on Android: "not found"

I'm trying to install a prebuilt binary in a custom Android image. For that I have copied it to a …

android linux arm emulation libc
Getting GCC to compile without inserting call to memcpy

I'm currently using GCC 4.5.3, compiled for PowerPC 440, and am compiling some code that doesn't require libc. I don't have any …

gcc compiler-construction memcpy libc
What does "f" stand for in C standard library function names?

What does f stand for in the name of C standard library functions? I have noticed that a lot of …

c naming libc
u-boot /lib/ld-linux-armhf.so.3: No such file or directory

My machine Ubuntu 16.04.3 LTS x86_64. I do compile u-boot-2017.11 and I got the error. u-boot-2017.11$ export ARCH=arm u-boot-2017.11$ export …

ubuntu ubuntu-16.04 libc u-boot
I need a list of Async-Signal-Safe Functions from glibc

Non syscall's wrappers but something like snprintf(), dprintf()

linux list libc async-safe
Where is stdarg.h?

On my system (Mac OS 10.6) /usr/include/stdarg.h is: /* This file is public domain. */ /* GCC uses its own copy …

c macos gcc freebsd libc
Overlapping pages with mmap (MAP_FIXED)

Due to some obscure reasons which are not relevant for this question, I need to resort to use MAP_FIXED …

c linux mmap libc
Unit testing for failed malloc()

What is the best way for unit testing code paths involving a failed malloc()? In most instances, it probably doesn't …

c unit-testing memory-management libc
What does the first "c" stand for in "calloc"?

A student asked the question and I didn't know for sure. Guesses include: "counted", "clearing", "chunked", "complete", ... The standard library …

c malloc libc calloc c-standard-library
What functions is the libm intended for?

As far as I know some math functions are contained in libc, while others are in libm. I've discovered that …

c linux glibc libc libm