Go to file
Rich Felker 0d418ce688 correctly handle write errors encountered by printf-family functions
previously, write errors neither stopped further output attempts nor
caused the function to return an error to the caller. this could
result in silent loss of output, possibly in the middle of output in
the event of a non-permanent error.

the simplest solution is temporarily clearing the error flag for the
target stream, then suppressing further output when the error flag is
set and checking/restoring it at the end of the operation to determine
the correct return value.

since the wide version of the code internally calls the narrow fprintf
to perform some of its underlying operations, initial clearing of the
error flag is suppressed when performing a narrow vfprintf on a
wide-oriented stream. this is not a problem since the behavior of
narrow operations on wide-oriented streams is undefined.

(cherry picked from commit d42269d7c8)
2015-03-30 01:41:33 -04:00
arch fix regression that negated some mips syscall error returns 2014-07-28 00:28:01 -04:00
crt superh port 2014-02-23 16:15:54 -06:00
dist add another example option to dist/config.mak 2012-04-24 16:49:11 -04:00
include fix CPU_EQUAL macro in sched.h 2015-03-30 01:15:43 -04:00
lib new solution for empty lib dir (old one had some problems) 2011-02-17 17:12:52 -05:00
src correctly handle write errors encountered by printf-family functions 2015-03-30 01:41:33 -04:00
tools fix system breakage window during make install due to permissions 2014-01-15 22:29:13 -05:00
.gitignore add version.h to .gitignore; it is a generated file 2014-01-21 01:06:42 -05:00
configure work around constant folding bug 61144 in gcc 4.9.0 and 4.9.1 2014-07-28 00:27:59 -04:00
COPYRIGHT update COPYRIGHT file with additional contributor information 2014-03-20 00:34:19 -04:00
INSTALL update INSTALL file with new information and better advice 2014-03-20 00:55:28 -04:00
Makefile remove dependency of version.h on .git/* to avoid errors 2013-12-04 18:00:19 -05:00
README remove claim of XSI coverage from README 2014-03-20 04:15:47 -04:00
VERSION release 1.0.4 2014-08-01 01:30:56 -04:00
WHATSNEW release 1.0.4 2014-08-01 01:30:56 -04: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.0 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/