Skip to content

Libraries

Stefan "Bebbo" Franke edited this page Jan 26, 2019 · 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 fair 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* 0 -
fcntl - -1 -
fnmatch - 9 -
fscanf - 27 -
fwscanf 18 - 27
mbc 0 - -
memstream 1 - -
popen - 2 -
pthread - - -
qsort 0 0 0
semaphore - - -
setjmp - - -
snprintf 0 5 29
sscanf 5 1 9
stat - 4 -
string 0 0 0
strtod 0 17 -
strtol 4 0 6
swprintf 5 - -
ungetc 0 0 6
wcstol 4 - 26

updates

2019-01-26:

  • libnix snprintf and sscanf were improved.
  • stat test links and runs with libnix
  • fix strtol
Clone this wiki locally