summaryrefslogtreecommitdiff
path: root/include
AgeCommit message (Collapse)AuthorFilesLines
2012-11-21add back NSIG, removed from powerpc in last commit, but for all archsRich Felker1-0/+1
unlike the previous definition, NSIG/_NSIG is supposed to be one more than the highest signal number. adding this will allow simplifying libc-internal code that makes signal-related syscalls, which can be done as a later step. some apps might use it too; while this usage is questionable, it's at least not insane.
2012-11-18fix breakage from introducing bits header for sys/io.hRich Felker1-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.
2012-11-18add port io functions to sys/io.hRich Felker1-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.
2012-11-18fcntl.h: O_SEARCH was missing for powerpcrofl0r1-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.
2012-11-17add cleaned-up sys/mtio.hRich Felker1-0/+188
this is mostly junk, but a few programs with tape-drive support unconditionally include it, and it might be useful.
2012-11-17add stub versions of some missing optional pthread interfacesRich Felker1-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.
2012-11-15disable SO_REUSEPORT in sys/socket.hRich Felker1-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.
2012-11-13complex: add C11 CMPLX macros and replace cpack with themSzabolcs Nagy1-0/+9
2012-11-11report support of TPS option in unistd.h and sysconfRich Felker1-0/+1
also update another newish feature in sysconf, stackaddr
2012-11-11add support for thread scheduling (POSIX TPS option)Rich Felker3-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.
2012-11-05fix numerous mips abi constant definition mismatchesRich Felker1-0/+7
2012-11-04mips cache flush/ctl syscall support and headerRich Felker1-0/+22
2012-11-01avoid breakage if somebody wrongly defines empty feature test macrosRich Felker2-3/+3
2012-10-31add dl_iterate_phdr interfaceRich Felker1-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.
2012-10-21fix issues with wait constants in stdlib.hRich Felker2-6/+5
the W* namespace is not reserved, so the nonstandard ones must be moved under extension features. also WNOHANG and WUNTRACED were missing.
2012-10-21complex: make _Complex_I work with gcc -std=c99 -pedantic-errorsnsz1-0/+4
2012-10-17assert() is supposed to have type voidRich Felker1-1/+1
2012-10-15add memmem function (gnu extension)Rich Felker1-0/+1
based on strstr. passes gnulib tests and a few quick checks of my own.
2012-10-15microblaze TLS relocation support, completely untestedRich Felker1-1/+8
2012-09-30add getopt reset supportRich Felker1-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
2012-09-30define some _POSIX_* macros that were omitted; required for XSI conformanceRich Felker1-0/+3
2012-09-29always expose accept4Rich Felker1-4/+1
it will be in the next version of POSIX
2012-09-29always expose dup3 and pipe2Rich Felker1-2/+2
they will be in the next version of POSIX
2012-09-29microblaze portRich Felker1-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.
2012-09-21LFS64 alias for prlimitRich Felker1-0/+1
issue reported/requested by Justin Cormack
2012-09-16add clock_adjtime, remap_file_pages, and syncfs syscall wrappersRich Felker3-0/+11
patch by Justin Cormack, with slight modification
2012-09-15fix stupid bug in updating of O_ACCMODE for O_SEARCH supportRich Felker1-1/+1
this could cause major bugs, and warrants a fix release right away.
2012-09-13strsep is BSD|GNU, not GNU-only; it's originally from BSDRich Felker1-1/+4
2012-09-13add O_PATH/O_SEARCH support to fcntl.hRich Felker1-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.
2012-09-09add setdomainname syscall, fix getdomainname (previously a stub)Rich Felker1-0/+1
2012-09-09mincore syscall wrapperRich Felker1-0/+1
2012-09-09fix up lfs64 junk for preadv/pwritevRich Felker1-0/+5
2012-09-09add preadv/pwritev syscall wrappersRich Felker1-0/+9
2012-09-09fix typo introduced in poll.hRich Felker1-1/+1
2012-09-09add linux ppoll syscall wrapperRich Felker1-0/+10
2012-09-08syscall organization overhaulRich Felker1-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.
2012-09-08add acct, accept4, setns, and dup3 syscalls (linux extensions)Rich Felker4-0/+82
based on patch by Justin Cormack
2012-09-08add IPPROTO_HOPOPTS to in.hRich Felker1-0/+1
2012-09-08add IPPROTO_MAX to in.hRich Felker1-0/+1
2012-09-08fix redundant _Noreturn def in err.hRich Felker1-7/+1
not sure why this was missed in the earlier commit.
2012-09-08remove all remaining redundant __restrict/__inline/_Noreturn defsRich Felker14-76/+14
2012-09-08sysmacros major/minor: result should have type unsigned int, not dev_tRich Felker1-2/+2
2012-09-08add linux tee syscallRich Felker1-0/+1
2012-09-08add linux sync_file_range syscallRich Felker1-0/+4
2012-09-08add linux readahead syscallRich Felker1-0/+1
2012-09-08add fallocate (nonstandardized) functionRich Felker1-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.
2012-09-08add timerfd interfaces (untested)Rich Felker1-0/+18
2012-09-08add stdnoreturn.h (C11)Rich Felker1-0/+5
features.h contains the fallback logic for pre-C11 compilers
2012-09-07TCP_* is in the reserved namespace for tcp.h; make use of thatRich Felker1-3/+4
2012-09-07remove unneeded judgemental commentary from ftw.hRich Felker1-4/+0