| Commit message (Expand) | Author | Age | Files | Lines |
| * | 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 Felker | 2012-09-07 | 31 | -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 Felker | 2012-09-06 | 1 | -4/+4 |
| * | handle null arguments to legacy bsd err.h functions | Rich Felker | 2012-08-15 | 1 | -2/+2 |
| * | add missing xattr functions•••not sure why these were originally omitted..
| Rich Felker | 2012-08-15 | 1 | -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 Felker | 2012-08-09 | 2 | -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 Felker | 2012-07-23 | 2 | -0/+18 |
| * | add splice and vmsplice syscalls•••based on patches by orc and Isaac Dunham.
| Rich Felker | 2012-07-23 | 2 | -0/+16 |
| * | add extended attributes syscalls•••based on patch by orc and Isaac Dunham, with some fixes.
| Rich Felker | 2012-07-23 | 1 | -0/+47 |
| * | add pipe2 syscall•••based on patch by orc and Isaac Dunham, with some details fixed.
| Rich Felker | 2012-07-23 | 1 | -0/+8 |
| * | add process_vm_readv and process_vm_writev syscall wrappers•••based on a patch submitted by Kristian L. <email@thexception.net>
| Rich Felker | 2012-06-23 | 1 | -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 Felker | 2012-06-19 | 1 | -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 Felker | 2012-06-13 | 1 | -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 Felker | 2012-06-13 | 1 | -0/+11 |
| * | fix typo in utimes function that made it mess up file times | Rich Felker | 2012-05-21 | 1 | -1/+1 |
| * | add linux-specific unshare syscall wrapper | Rich Felker | 2012-04-29 | 1 | -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 Felker | 2012-04-18 | 1 | -0/+1 |
| * | remove junk sincos implementations in preparation to merge nsz's real ones | Rich Felker | 2012-03-16 | 3 | -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 Felker | 2012-03-15 | 2 | -0/+16 |
| * | add linux setfs[ug]id syscall wrappers•••patch by Jeremy Huntwork
| Rich Felker | 2012-01-28 | 2 | -0/+16 |
| * | fix broken reboot wrapper (syscall needs extra silly magic arguments...) | Rich Felker | 2011-12-23 | 1 | -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 Felker | 2011-09-28 | 1 | -2/+1 |
| * | improve error handling in mntent stuff...•••not sure if this is correct/ideal. it needs further attention.
| Rich Felker | 2011-09-27 | 1 | -2/+9 |
| * | fix missing va_end in prctl syscall wrapper | Rich Felker | 2011-09-27 | 1 | -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 Felker | 2011-09-26 | 1 | -2/+2 |
| * | fix stubbed-out reboot call | Rich Felker | 2011-08-02 | 1 | -3/+2 |
| * | fix brk/sbrk behavior to match the real legacy functions | Rich Felker | 2011-05-22 | 2 | -2/+4 |
| * | eventfd syscall wrapper and read/write wrappers | Rich Felker | 2011-05-08 | 3 | -0/+21 |
| * | fix initgroups (uninitialized count passed to getgrouplist) | Rich Felker | 2011-04-20 | 1 | -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 Felker | 2011-04-13 | 1 | -0/+7 |
| * | fix bug whereby getopt_long allowed mismatch in last char of option name | Rich Felker | 2011-04-13 | 1 | -1/+1 |
| * | fix prototypes/signature for setgroups, etc. | Rich Felker | 2011-04-13 | 1 | -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 Felker | 2011-04-06 | 1 | -1/+1 |
| * | implement the adjtime and adjtimex functions (nonstandard) | Rich Felker | 2011-04-05 | 2 | -0/+34 |
| * | add getmntent_r interface (all of mntent is nonstandard anyway) | Rich Felker | 2011-04-05 | 1 | -12/+17 |
| * | add pivot_root syscall wrapper | Rich Felker | 2011-04-05 | 1 | -0/+6 |
| * | support the nonstandard err.h interfaces•••note that unlike the originals, these do not print the program
name/argv[0] because we have not saved it anywhere. this could be
changed in __libc_start_main if desired.
| Rich Felker | 2011-04-05 | 1 | -0/+60 |
| * | global cleanup to use the new syscall interface | Rich Felker | 2011-03-20 | 27 | -32/+27 |
| * | overhaul syscall interface•••this commit shuffles around the location of syscall definitions so
that we can make a syscall() library function with both SYS_* and
__NR_* style syscall names available to user applications, provides
the syscall() library function, and optimizes the code that performs
the actual inline syscalls in the library itself.
previously on i386 when built as PIC (shared library), syscalls were
incurring bus lock (lock prefix) overhead at entry and exit, due to
the way the ebx register was being loaded (xchg instruction with a
memory operand). now the xchg takes place between two registers.
further cleanup to arch/$(ARCH)/syscall.h is planned.
| Rich Felker | 2011-03-19 | 1 | -0/+19 |
| * | depends on settimeofday which needs _GNU_SOURCE feature test | Rich Felker | 2011-03-01 | 1 | -0/+1 |
| * | workaround gcc bug 46926 by providing a dumb sincos implementation•••note that this library itself is built with -ffreestanding so sincos.c
should not be miscompiled even if the gcc used to compile musl has
this bug.
| Rich Felker | 2011-02-19 | 1 | -0/+8 |
| * | add syscall wrappers for inotify | Rich Felker | 2011-02-19 | 4 | -0/+28 |
| * | cleanup cruft left from when kernel and user time_t disagreed | Rich Felker | 2011-02-19 | 2 | -12/+3 |
| * | make daemon try the operations that might fail before fork rather than after | Rich Felker | 2011-02-17 | 1 | -12/+10 |
| * | daemon should check for failures and return -1 | Rich Felker | 2011-02-17 | 1 | -5/+8 |
| * | remove standalone syscall cruft•••this was originally written for an early draft of the library where
non-standard functions would reside in a static library separate from
the shared libc.so, which would implement a pure standard. the idea
was not to depend on an implementation-dependent __syscall_ret
function in the main libc. but it turned out to be better to put
everything in a single library for both static and dynamic linking
uses, and thus the (incomplete) remnants of this feature were just
enlarging the source and binary.
| Rich Felker | 2011-02-15 | 10 | -10/+0 |
| * | cleaning up syscalls in preparation for x86_64 port•••- hide all the legacy xxxxxx32 name cruft in syscall.h so the actual
source files can be clean and uniform across all archs.
- cleanup llseek/lseek and mmap2/mmap handling for 32/64 bit systems
- alternate implementation for nice if the target lacks nice syscall
| Rich Felker | 2011-02-13 | 1 | -3/+1 |
| * | syscall cleanup for umount2 | Rich Felker | 2011-02-13 | 1 | -1/+0 |
| * | use umount2 syscall for umount (new targets lack old 1-arg umount) | Rich Felker | 2011-02-13 | 1 | -2/+1 |
| * | initial check-in, version 0.5.0 | Rich Felker | 2011-02-12 | 34 | -0/+438 |