aboutsummaryrefslogtreecommitdiff
path: root/src/linux (follow)
Commit message (Expand)AuthorAgeFilesLines
* move accept4, dup3, and pipe2 to non-linux-specific locations•••these interfaces have been adopted by the Austin Group for inclusion in the next version of POSIX. Rich Felker2012-09-293-27/+0
* fix some indention-with-spaces that crept inRich Felker2012-09-292-4/+4
* LFS64 alias for prlimit•••issue reported/requested by Justin Cormack Rich Felker2012-09-211-0/+3
* add clock_adjtime, remap_file_pages, and syncfs syscall wrappers•••patch by Justin Cormack, with slight modification Rich Felker2012-09-163-0/+25
* fix another ppoll issue (missing sigset_t size argument)Rich Felker2012-09-101-1/+1
* fix ppoll with null timeout argumentRich Felker2012-09-101-2/+2
* add linux ppoll syscall wrapperRich Felker2012-09-091-0/+9
* reenable sync_file_range; should no longer break on mipsRich Felker2012-09-091-2/+2
* disable sync_file_range for now•••something is wrong with the logic for the argument layout, resulting in compile errors on mips due to too many args to syscall... further information on how it's supposed to work will be needed before it can be reactivated. Rich Felker2012-09-081-2/+3
* add acct, accept4, setns, and dup3 syscalls (linux extensions)•••based on patch by Justin Cormack Rich Felker2012-09-083-0/+28
* add linux tee syscallRich Felker2012-09-081-0/+8
* add linux sync_file_range syscallRich Felker2012-09-081-0/+16
* move fallocate syscall wrapper to linux-specific syscalls dirRich Felker2012-09-081-0/+9
* add linux readahead syscallRich Felker2012-09-081-0/+8
* add timerfd interfaces (untested)Rich Felker2012-09-081-0/+17
* cleanup src/linux and src/misc trees, etc.•••previously, it was pretty much random which one of these trees a given function appeared in. they have now been organized into: src/linux: non-POSIX linux syscalls (possibly shard with other nixen) src/legacy: various obsolete/legacy functions, mostly wrappers src/misc: still mostly uncategorized; some misc POSIX, some nonstd src/crypt: crypt hash functions further cleanup will be done later. Rich Felker2012-09-0731-404/+107
* 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 Felker2012-09-061-4/+4
* handle null arguments to legacy bsd err.h functionsRich Felker2012-08-151-2/+2
* add missing xattr functions•••not sure why these were originally omitted.. Rich Felker2012-08-151-0/+15
* fix (hopefully) all hard-coded 8's for kernel sigset_t size•••some minor changes to how hard-coded sets for thread-related purposes are handled were also needed, since the old object sizes were not necessarily sufficient. things have gotten a bit ugly in this area, and i think a cleanup is in order at some point, but for now the goal is just to get the code working on all supported archs including mips, which was badly broken by linux rejecting syscalls with the wrong sigset_t size. Rich Felker2012-08-092-2/+2
* add ioperm/iopl syscalls•••based on patches by orc and Isaac Dunham, with some fixes. sys/io.h exists and contains prototypes for these functions regardless of whether the target arch has them; this is a bit unorthodox but I don't think it will break anything. the function definitions do not exist unless the appropriate SYS_* syscall number macro is defined, which should make sure configure scripts looking for these functions don't find them on other systems. presently, sys/io.h does not have the inb/outb/etc. port io macros/functions. I'd be surprised if ioperm/iopl are useful without them, so they probably need to be added at some point in appropriate bits/io.h files... Rich Felker2012-07-232-0/+18
* add splice and vmsplice syscalls•••based on patches by orc and Isaac Dunham. Rich Felker2012-07-232-0/+16
* add extended attributes syscalls•••based on patch by orc and Isaac Dunham, with some fixes. Rich Felker2012-07-231-0/+47
* add pipe2 syscall•••based on patch by orc and Isaac Dunham, with some details fixed. Rich Felker2012-07-231-0/+8
* add process_vm_readv and process_vm_writev syscall wrappers•••based on a patch submitted by Kristian L. <email@thexception.net> Rich Felker2012-06-231-0/+13
* add vhangup syscall wrapper•••request/patch by william haddonthethird, slightly modifed to add _GNU_SOURCE feature test macro so that the compiler can verify the prototype matches. Rich Felker2012-06-191-0/+8
* add init_module/delete_module syscall wrappers•••these are not exposed publicly in any header, but the few programs that use them (modutils/kmod, etc.) are declaring the functions themselves rather than making the syscalls directly, and it doesn't really hurt to have them (same as the capset junk). Rich Felker2012-06-131-0/+11
* add deprecated capabilities functions•••these were left in glibc for binary compatibility after the public part of the interface was removed, and libcap kept using them (with its own copy of the header files) rather than just making the syscalls directly. might as well add them since they're so small... Rich Felker2012-06-131-0/+11
* fix typo in utimes function that made it mess up file timesRich Felker2012-05-211-1/+1
* add linux-specific unshare syscall wrapperRich Felker2012-04-291-0/+8
* legacy junk compatibility grab-bag•••- add the rest of the junk traditionally in sys/param.h - add prototypes for some nonstandard functions - add _GNU_SOURCE to their source files so the compiler can check proto Rich Felker2012-04-181-0/+1
* remove junk sincos implementations in preparation to merge nsz's real onesRich Felker2012-03-163-24/+0
* implement sincosf and sincosl functions; add prototypes•••presumably broken gcc may generate calls to these, and it's said that ffmpeg makes use of sincosf. Rich Felker2012-03-152-0/+16
* add linux setfs[ug]id syscall wrappers•••patch by Jeremy Huntwork Rich Felker2012-01-282-0/+16
* fix broken reboot wrapper (syscall needs extra silly magic arguments...)Rich Felker2011-12-231-1/+1
* make getmntent_r discard long lines when it returns error, not seek back•••seeking back can be performed by the caller, but if the caller doesn't expect it, it will result in an infinite loop of failures. Rich Felker2011-09-281-2/+1
* improve error handling in mntent stuff...•••not sure if this is correct/ideal. it needs further attention. Rich Felker2011-09-271-2/+9
* fix missing va_end in prctl syscall wrapperRich Felker2011-09-271-0/+1
* cleanup various minor issues reported by nsz•••the changes to syscall_ret are mostly no-ops in the generated code, just cleanup of type issues and removal of some implementation-defined behavior. the one exception is the change in the comparison value, which is fixed so that 0xf...f000 (which in principle could be a valid return value for mmap, although probably never in reality) is not treated as an error return. Rich Felker2011-09-261-2/+2
* fix stubbed-out reboot callRich Felker2011-08-021-3/+2
* fix brk/sbrk behavior to match the real legacy functionsRich Felker2011-05-222-2/+4
* eventfd syscall wrapper and read/write wrappersRich Felker2011-05-083-0/+21
* fix initgroups (uninitialized count passed to getgrouplist)Rich Felker2011-04-201-1/+1
* add syscall wrapper for flock•••it should be noted that flock does not mix well with standard fcntl locking, but nonetheless some applications will attempt to use flock instead of fcntl if both exist. options to configure or small patches may be needed. debian maintainers have plenty of experience with this unfortunate situation... Rich Felker2011-04-131-0/+7
* fix bug whereby getopt_long allowed mismatch in last char of option nameRich Felker2011-04-131-1/+1
* fix prototypes/signature for setgroups, etc.Rich Felker2011-04-131-1/+1
* fix completely bogus loop condition in getmntent_r•••somehow this worked on my simple fstab, but horribly broke in general, leading to use of uninitialized offset array and crashes. Rich Felker2011-04-061-1/+1
* implement the adjtime and adjtimex functions (nonstandard)Rich Felker2011-04-052-0/+34
* add getmntent_r interface (all of mntent is nonstandard anyway)Rich Felker2011-04-051-12/+17
* add pivot_root syscall wrapperRich Felker2011-04-051-0/+6