Skip to content

Libraries

Stefan "Bebbo" Franke edited this page Nov 16, 2018 · 10 revisions

What libraries are provided?

At time of writing you may select one of 3 libraries to create your programs:

Library newlib libnix clib2
switch -noixemul or -mcrt=nix20 -mcrt=clib2
supports Kickstart 1.3 no yes -mcrt=nix13 no
code size larger smaller dunno
status quite new stable stable
-lsocket no yes yes

Quality of the libs

There is a project with tests for libc: git://git.musl-libc.org/libc-testsuite Here are some results of its tests.

A number is the count of errors, - is not built, -1 test does not run properly

Test newlib libnix clib2
basename 0 0 0
dirname 0 0 0
env 0* 6 -
fcntl - -1 -
fnmatch - 9 -
fscanf - -1 -
fwscanf 18 - 27
mbc 0 - -
memstream 1 - -
popen - 2 -
pthread - - -
qsort 0 0 0
semaphore - - -
setjmp - - -
snprintf 3 21 12
sscanf 7 7 10
stat - - -
string 0 0 0
strtod 19 101 101
strtol 4 3 5
swprintf 5 - -
ungetc 0 0 6
wcstol 4 - 26
Clone this wiki locally