musl - an implementation of the standard library for Linux-based systems
Go to file
Rich Felker b64539ae06 fix printf alt-form octal with value 0 and no explicit precision
commit 78897b0dc0 wrongly simplified
Dmitry Levin's original submitted patch fixing alt-form octal with the
zero flag and field width present, omitting the special case where the
value is zero. as a result, printf("%#o",0) wrongly prints "00" rather
than "0".

the logic prior to this commit was actually better, in that it was
aligned with how the alt-form flag (#) for printf is specified ("it
shall increase the precision"). at the time there was no good way to
avoid the zero flag issue with the old logic, but commit
167dfe9672 added tracking of whether an
explicit precision was provided.

revert commit 78897b0dc0 and switch to
using the explicit precision indicator for suppressing the zero flag.
2018-01-10 20:45:02 -05:00
arch fix x32 unistd macros to report as ILP32 not LP64 2017-12-14 21:22:51 -05:00
crt add s390x port 2016-11-11 23:06:21 -05:00
dist add another example option to dist/config.mak 2012-04-24 16:49:11 -04:00
include add additional uapi guards for Linux kernel header files 2018-01-09 13:08:25 -05:00
ldso fix malloc state corruption when ldso rejects loading a second libc 2017-11-13 15:27:10 -05:00
src fix printf alt-form octal with value 0 and no explicit precision 2018-01-10 20:45:02 -05:00
tools add CFI generation script for x86_64 2015-10-13 18:09:46 -04:00
.gitignore remove obsolete gitignore rules 2016-07-06 00:21:25 -04:00
COPYRIGHT update COPYRIGHT file to clarify that permissions apply for all files 2016-04-28 20:41:45 -04:00
INSTALL add powerpc64 and s390x to list of supported archs in INSTALL file 2017-08-29 20:48:02 -04:00
Makefile remove unused explicit dependency rules for crti/crtn 2017-12-14 23:19:34 -05:00
README update version reference in the README file 2014-06-25 14:16:53 -04:00
VERSION release 1.1.18 2017-10-31 15:13:58 -04:00
WHATSNEW release 1.1.18 2017-10-31 15:13:58 -04:00
configure disable global visibility override hack (vis.h) by default 2017-08-11 00:17:00 -04:00

README

    musl libc

musl, pronounced like the word "mussel", is an MIT-licensed
implementation of the standard C library targetting the Linux syscall
API, suitable for use in a wide range of deployment environments. musl
offers efficient static and dynamic linking support, lightweight code
and low runtime overhead, strong fail-safe guarantees under correct
usage, and correctness in the sense of standards conformance and
safety. musl is built on the principle that these goals are best
achieved through simple code that is easy to understand and maintain.

The 1.1 release series for musl features coverage for all interfaces
defined in ISO C99 and POSIX 2008 base, along with a number of
non-standardized interfaces for compatibility with Linux, BSD, and
glibc functionality.

For basic installation instructions, see the included INSTALL file.
Information on full musl-targeted compiler toolchains, system
bootstrapping, and Linux distributions built on musl can be found on
the project website:

    http://www.musl-libc.org/