| Commit message (Expand) | Author | Age | Files | Lines |
| * | complex: add C11 CMPLX macros and replace cpack with them | Szabolcs Nagy | 2012-11-13 | 1 | -0/+9 |
| * | report support of TPS option in unistd.h and sysconf•••also update another newish feature in sysconf, stackaddr
| Rich Felker | 2012-11-11 | 1 | -0/+1 |
| * | add support for thread scheduling (POSIX TPS option)•••linux's sched_* syscalls actually implement the TPS (thread
scheduling) functionality, not the PS (process scheduling)
functionality which the sched_* functions are supposed to have.
omitting support for the PS option (and having the sched_* interfaces
fail with ENOSYS rather than omitting them, since some broken software
assumes they exist) seems to be the only conforming way to do this on
linux.
| Rich Felker | 2012-11-11 | 3 | -0/+12 |
| * | fix numerous mips abi constant definition mismatches | Rich Felker | 2012-11-05 | 1 | -0/+7 |
| * | mips cache flush/ctl syscall support and header | Rich Felker | 2012-11-04 | 1 | -0/+22 |
| * | avoid breakage if somebody wrongly defines empty feature test macros | Rich Felker | 2012-11-01 | 2 | -3/+3 |
| * | add dl_iterate_phdr interface•••patches by Alex Caudill (npx). the dynamic-linked version is almost
identical to the final submitted patch; I just added a couple missing
lines for saving the phdr address when the dynamic linker is invoked
directly to run a program, and removed a couple to avoid introducing
another unnecessary type. the static-linked version is based on npx's
draft. it could use some improvements which are contingent on the
startup code saving some additional information for later use.
| Rich Felker | 2012-10-31 | 1 | -0/+27 |
| * | fix issues with wait constants in stdlib.h•••the W* namespace is not reserved, so the nonstandard ones must be
moved under extension features. also WNOHANG and WUNTRACED were
missing.
| Rich Felker | 2012-10-21 | 2 | -6/+5 |
| * | complex: make _Complex_I work with gcc -std=c99 -pedantic-errors | nsz | 2012-10-21 | 1 | -0/+4 |
| * | assert() is supposed to have type void | Rich Felker | 2012-10-17 | 1 | -1/+1 |
| * | add memmem function (gnu extension)•••based on strstr. passes gnulib tests and a few quick checks of my own.
| Rich Felker | 2012-10-15 | 1 | -0/+1 |
| * | microblaze TLS relocation support, completely untested | Rich Felker | 2012-10-15 | 1 | -1/+8 |
| * | add getopt reset support•••based on proposed patches by Daniel Cegiełka, with minor changes:
- use a weak symbol for optreset so it doesn't clash with namespace
- also reset optpos (position in multi-option arg like -lR)
- also make getopt_long support reset
| Rich Felker | 2012-09-30 | 1 | -1/+1 |
| * | define some _POSIX_* macros that were omitted; required for XSI conformance | Rich Felker | 2012-09-30 | 1 | -0/+3 |
| * | always expose accept4•••it will be in the next version of POSIX
| Rich Felker | 2012-09-29 | 1 | -4/+1 |
| * | always expose dup3 and pipe2•••they will be in the next version of POSIX
| Rich Felker | 2012-09-29 | 1 | -2/+2 |
| * | microblaze port•••based on initial work by rdp, with heavy modifications. some features
including threads are untested because qemu app-level emulation seems
to be broken and I do not have a proper system image for testing.
| Rich Felker | 2012-09-29 | 1 | -0/+24 |
| * | LFS64 alias for prlimit•••issue reported/requested by Justin Cormack
| Rich Felker | 2012-09-21 | 1 | -0/+1 |
| * | add clock_adjtime, remap_file_pages, and syncfs syscall wrappers•••patch by Justin Cormack, with slight modification
| Rich Felker | 2012-09-16 | 3 | -0/+11 |
| * | fix stupid bug in updating of O_ACCMODE for O_SEARCH support•••this could cause major bugs, and warrants a fix release right away.
| Rich Felker | 2012-09-15 | 1 | -1/+1 |
| * | strsep is BSD|GNU, not GNU-only; it's originally from BSD | Rich Felker | 2012-09-13 | 1 | -1/+4 |
| * | add O_PATH/O_SEARCH support to fcntl.h•••I'm not 100% sure that Linux's O_PATH meets the POSIX requirements for
O_SEARCH, but it seems very close if not perfect. and old kernels
ignore it, so O_SEARCH will still work as desired as long as the
caller has read permissions to the directory.
| Rich Felker | 2012-09-13 | 1 | -1/+1 |
| * | add setdomainname syscall, fix getdomainname (previously a stub) | Rich Felker | 2012-09-09 | 1 | -0/+1 |
| * | mincore syscall wrapper | Rich Felker | 2012-09-09 | 1 | -0/+1 |
| * | fix up lfs64 junk for preadv/pwritev | Rich Felker | 2012-09-09 | 1 | -0/+5 |
| * | add preadv/pwritev syscall wrappers | Rich Felker | 2012-09-09 | 1 | -0/+9 |
| * | fix typo introduced in poll.h | Rich Felker | 2012-09-09 | 1 | -1/+1 |
| * | add linux ppoll syscall wrapper | Rich Felker | 2012-09-09 | 1 | -0/+10 |
| * | syscall organization overhaul•••now public syscall.h only exposes __NR_* and SYS_* constants and the
variadic syscall function. no macros or inline functions, no
__syscall_ret or other internal details, no 16-/32-bit legacy syscall
renaming, etc. this logic has all been moved to src/internal/syscall.h
with the arch-specific parts in arch/$(ARCH)/syscall_arch.h, and the
amount of arch-specific stuff has been reduced to a minimum.
changes still need to be reviewed/double-checked. minimal testing on
i386 and mips has already been performed.
| Rich Felker | 2012-09-08 | 1 | -18/+0 |
| * | add acct, accept4, setns, and dup3 syscalls (linux extensions)•••based on patch by Justin Cormack
| Rich Felker | 2012-09-08 | 4 | -0/+82 |
| * | add IPPROTO_HOPOPTS to in.h | Rich Felker | 2012-09-08 | 1 | -0/+1 |
| * | add IPPROTO_MAX to in.h | Rich Felker | 2012-09-08 | 1 | -0/+1 |
| * | fix redundant _Noreturn def in err.h•••not sure why this was missed in the earlier commit.
| Rich Felker | 2012-09-08 | 1 | -7/+1 |
| * | remove all remaining redundant __restrict/__inline/_Noreturn defs | Rich Felker | 2012-09-08 | 14 | -76/+14 |
| * | sysmacros major/minor: result should have type unsigned int, not dev_t | Rich Felker | 2012-09-08 | 1 | -2/+2 |
| * | add linux tee syscall | Rich Felker | 2012-09-08 | 1 | -0/+1 |
| * | add linux sync_file_range syscall | Rich Felker | 2012-09-08 | 1 | -0/+4 |
| * | add linux readahead syscall | Rich Felker | 2012-09-08 | 1 | -0/+1 |
| * | add fallocate (nonstandardized) function•••this is equivalent to posix_fallocate except that it has an extra
mode/flags argument to control its behavior, and stores the error in
errno rather than returning an error code.
| Rich Felker | 2012-09-08 | 1 | -0/+3 |
| * | add timerfd interfaces (untested) | Rich Felker | 2012-09-08 | 1 | -0/+18 |
| * | add stdnoreturn.h (C11)•••features.h contains the fallback logic for pre-C11 compilers
| Rich Felker | 2012-09-08 | 1 | -0/+5 |
| * | TCP_* is in the reserved namespace for tcp.h; make use of that | Rich Felker | 2012-09-07 | 1 | -3/+4 |
| * | remove unneeded judgemental commentary from ftw.h | Rich Felker | 2012-09-07 | 1 | -4/+0 |
| * | default features: make musl usable without feature test macros•••the old behavior of exposing nothing except plain ISO C can be
obtained by defining __STRICT_ANSI__ or using a compiler option (such
as -std=c99) that predefines it. the new default featureset is POSIX
with XSI plus _BSD_SOURCE. any explicit feature test macros will
inhibit the default.
installation docs have also been updated to reflect this change.
| Rich Felker | 2012-09-07 | 47 | -116/+100 |
| * | provide loff_t for splice syscall•••so far, this is the only actual use of loff_t i've found. some
software, including glib, assumes loff_t must exist if splice exists;
this is a reasonable assumption since the official prototype for
splice uses loff_t, as it always works with 64-bit offsets regardless
of the selected libc off_t size. i'm using #define for now rather than
a typedef to make it easy to define in other headers if necessary
(like the LFS64 ugliness), but it may be necessary to add it to
alltypes.h eventually if other functions end up needing it.
| Rich Felker | 2012-09-06 | 1 | -0/+1 |
| * | further use of _Noreturn, for non-plain-C functions•••note that POSIX does not specify these functions as _Noreturn, because
POSIX is aligned with C99, not the new C11 standard. when POSIX is
eventually updated to C11, it will almost surely give these functions
the _Noreturn attribute. for now, the actual _Noreturn keyword is not
used anyway when compiling with a c99 compiler, which is what POSIX
requires; the GCC __attribute__ is used instead if it's available,
however.
in a few places, I've added infinite for loops at the end of _Noreturn
functions to silence compiler warnings. presumably
__buildin_unreachable could achieve the same thing, but it would only
work on newer GCCs and would not be portable. the loops should have
near-zero code size cost anyway.
like the previous _Noreturn commit, this one is based on patches
contributed by philomath.
| Rich Felker | 2012-09-06 | 5 | -9/+37 |
| * | add _Noreturn function attribute, with fallback for pre-C11 GNUC | Rich Felker | 2012-09-06 | 2 | -5/+19 |
| * | dladdr should be available under _BSD_SOURCE as well as _GNU_SOURCE | Rich Felker | 2012-09-06 | 1 | -1/+1 |
| * | use restrict everywhere it's required by c99 and/or posix 2008•••to deal with the fact that the public headers may be used with pre-c99
compilers, __restrict is used in place of restrict, and defined
appropriately for any supported compiler. we also avoid the form
[restrict] since older versions of gcc rejected it due to a bug in the
original c99 standard, and instead use the form *restrict.
| Rich Felker | 2012-09-06 | 28 | -184/+353 |
| * | avoid "inline" in public headers for strict c89 compatibility•••while musl itself requires a c99 compiler, some applications insist on
being compiled with c89 compilers, and use of "inline" in the headers
was breaking them. much of this had been avoided already by just
skipping the inline keyword in pre-c99 compilers or modes, but this
new unified solution is cleaner and may/should result in better code
generation in the default gcc configuration.
| Rich Felker | 2012-09-02 | 4 | -27/+22 |