about summary refs log tree commit diff
path: root/include
Commit message (Collapse)AuthorAgeFilesLines
* fix breakage from introducing bits header for sys/io.hRich Felker2012-11-181-0/+3
| | | | | | apparently some other archs have sys/io.h and should not break just because they don't have the x86 port io functions. provide a blank bits/io.h everywhere for now.
* add port io functions to sys/io.hRich Felker2012-11-181-2/+3
| | | | | | | based on proposal by Isaac Dunham. nonexistance of bits/io.h will cause inclusion of sys/io.h to produce an error on archs that are not supposed to have it. this is probably the desired behavior, but the error message may be a bit unusual.
* fcntl.h: O_SEARCH was missing for powerpcrofl0r2012-11-181-0/+4
| | | | | | put some macros that do not differ between architectures in the main header and remove from bits. restructure mips header so it has the same structure as the others.
* add cleaned-up sys/mtio.hRich Felker2012-11-171-0/+188
| | | | | this is mostly junk, but a few programs with tape-drive support unconditionally include it, and it might be useful.
* add stub versions of some missing optional pthread interfacesRich Felker2012-11-171-0/+5
| | | | | | | | | | | | | priority inheritance is not yet supported, and priority protection probably will not be supported ever unless there's serious demand for it (it's a fairly heavy-weight feature). per-thread cpu clocks would be nice to have, but to my knowledge linux is still not capable of supporting them. glibc fakes them by using the _process_ cpu-time clock and subtracting the thread creation time, which gives seriously incorrect semantics (worse than not supporting the feature at all), so until there's a way to do it right, it will remain as a stub that always fails.
* disable SO_REUSEPORT in sys/socket.hRich Felker2012-11-151-1/+1
| | | | | | although a number is reserved for it, this option is not implemented on Linux and does not work. defining it causes some applications to use it, and subsequently break due to its failure.
* complex: add C11 CMPLX macros and replace cpack with themSzabolcs Nagy2012-11-131-0/+9
|
* report support of TPS option in unistd.h and sysconfRich Felker2012-11-111-0/+1
| | | | also update another newish feature in sysconf, stackaddr
* add support for thread scheduling (POSIX TPS option)Rich Felker2012-11-113-0/+12
| | | | | | | | | | 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.
* fix numerous mips abi constant definition mismatchesRich Felker2012-11-051-0/+7
|
* mips cache flush/ctl syscall support and headerRich Felker2012-11-041-0/+22
|
* avoid breakage if somebody wrongly defines empty feature test macrosRich Felker2012-11-012-3/+3
|
* add dl_iterate_phdr interfaceRich Felker2012-10-311-0/+27
| | | | | | | | | | 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.
* fix issues with wait constants in stdlib.hRich Felker2012-10-212-6/+5
| | | | | | the W* namespace is not reserved, so the nonstandard ones must be moved under extension features. also WNOHANG and WUNTRACED were missing.
* complex: make _Complex_I work with gcc -std=c99 -pedantic-errorsnsz2012-10-211-0/+4
|
* assert() is supposed to have type voidRich Felker2012-10-171-1/+1
|
* add memmem function (gnu extension)Rich Felker2012-10-151-0/+1
| | | | based on strstr. passes gnulib tests and a few quick checks of my own.
* microblaze TLS relocation support, completely untestedRich Felker2012-10-151-1/+8
|
* add getopt reset supportRich Felker2012-09-301-1/+1
| | | | | | | 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
* define some _POSIX_* macros that were omitted; required for XSI conformanceRich Felker2012-09-301-0/+3
|
* always expose accept4Rich Felker2012-09-291-4/+1
| | | | it will be in the next version of POSIX
* always expose dup3 and pipe2Rich Felker2012-09-291-2/+2
| | | | they will be in the next version of POSIX
* microblaze portRich Felker2012-09-291-0/+24
| | | | | | 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.
* LFS64 alias for prlimitRich Felker2012-09-211-0/+1
| | | | issue reported/requested by Justin Cormack
* add clock_adjtime, remap_file_pages, and syncfs syscall wrappersRich Felker2012-09-163-0/+11
| | | | patch by Justin Cormack, with slight modification
* fix stupid bug in updating of O_ACCMODE for O_SEARCH supportRich Felker2012-09-151-1/+1
| | | | this could cause major bugs, and warrants a fix release right away.
* strsep is BSD|GNU, not GNU-only; it's originally from BSDRich Felker2012-09-131-1/+4
|
* add O_PATH/O_SEARCH support to fcntl.hRich Felker2012-09-131-1/+1
| | | | | | | 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.
* add setdomainname syscall, fix getdomainname (previously a stub)Rich Felker2012-09-091-0/+1
|
* mincore syscall wrapperRich Felker2012-09-091-0/+1
|
* fix up lfs64 junk for preadv/pwritevRich Felker2012-09-091-0/+5
|
* add preadv/pwritev syscall wrappersRich Felker2012-09-091-0/+9
|
* fix typo introduced in poll.hRich Felker2012-09-091-1/+1
|
* add linux ppoll syscall wrapperRich Felker2012-09-091-0/+10
|
* syscall organization overhaulRich Felker2012-09-081-18/+0
| | | | | | | | | | | | 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.
* add acct, accept4, setns, and dup3 syscalls (linux extensions)Rich Felker2012-09-084-0/+82
| | | | based on patch by Justin Cormack
* add IPPROTO_HOPOPTS to in.hRich Felker2012-09-081-0/+1
|
* add IPPROTO_MAX to in.hRich Felker2012-09-081-0/+1
|
* fix redundant _Noreturn def in err.hRich Felker2012-09-081-7/+1
| | | | not sure why this was missed in the earlier commit.
* remove all remaining redundant __restrict/__inline/_Noreturn defsRich Felker2012-09-0814-76/+14
|
* sysmacros major/minor: result should have type unsigned int, not dev_tRich Felker2012-09-081-2/+2
|
* add linux tee syscallRich Felker2012-09-081-0/+1
|
* add linux sync_file_range syscallRich Felker2012-09-081-0/+4
|
* add linux readahead syscallRich Felker2012-09-081-0/+1
|
* add fallocate (nonstandardized) functionRich Felker2012-09-081-0/+3
| | | | | | 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.
* add timerfd interfaces (untested)Rich Felker2012-09-081-0/+18
|
* add stdnoreturn.h (C11)Rich Felker2012-09-081-0/+5
| | | | features.h contains the fallback logic for pre-C11 compilers
* TCP_* is in the reserved namespace for tcp.h; make use of thatRich Felker2012-09-071-3/+4
|
* remove unneeded judgemental commentary from ftw.hRich Felker2012-09-071-4/+0
|
* default features: make musl usable without feature test macrosRich Felker2012-09-0747-116/+100
| | | | | | | | | | 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.