musl - an implementation of the standard library for Linux-based systems
Go to file
Rich Felker a603a75a72 remove attribute((const)) from pthread_self and errno location decls
this attribute was applied to pthread_self and the functions providing
the locations for errno and h_errno as an optimization; however, it is
subtly incorrect. as specified, it means the return value will always
be the same, which is not true; it varies per-thread.

this attribute also implies that the function does not depend on any
state, and that calls to it can safely be reordered across any other
code. however such reordering is unsafe for these functions: they
break when reordered before initialization of the thread pointer. such
breakage was actually observed when compiled by libfirm/cparser.

to some extent the reordering problem could be solved with strong
compiler barriers between the stages of early startup code, but the
specified meaning of of attribute((const)) is sufficiently strong that
a compiler would theoretically be justified inserting gratuitous calls
to attribute((const)) const functions at random locations (e.g. to
save the value in static storage for later use).

this reverts commit cbf35978a9.
2015-09-17 04:45:01 +00:00
arch reindent powerpc's bits/termios.h to be consistent with other archs 2015-09-15 14:30:08 -04:00
crt make sh crti/crtn init/fini fragments setup proper stack frame 2015-09-12 02:50:28 +00:00
dist add another example option to dist/config.mak 2012-04-24 16:49:11 -04:00
include remove attribute((const)) from pthread_self and errno location decls 2015-09-17 04:45:01 +00:00
lib new solution for empty lib dir (old one had some problems) 2011-02-17 17:12:52 -05:00
src provide arch-generic fdpic self-relocation code for crt1 to use 2015-09-12 03:10:44 +00:00
tools Build process uses script to add CFI directives to x86 asm 2015-08-26 14:55:13 +00:00
.gitignore add musl-clang, a wrapper for system clang installs 2015-07-06 23:52:16 +00:00
configure add sh fdpic subarch variants 2015-09-12 03:23:49 +00:00
COPYRIGHT update authors/contributors list 2015-03-16 18:43:54 -04:00
INSTALL update notice on broken gcc versions in INSTALL file 2014-07-31 19:02:54 -04:00
Makefile remove use of buggy .SECONDARY special target in makefile 2015-08-30 18:44:58 +00:00
README update version reference in the README file 2014-06-25 14:16:53 -04:00
VERSION release 1.1.11 2015-08-30 04:15:56 +00:00
WHATSNEW release 1.1.11 2015-08-30 04:15:56 +00:00

    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/