aboutsummaryrefslogtreecommitdiff
path: root/src/linux (follow)
Commit message (Expand)AuthorAgeFilesLines
* 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
* 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 Felker2011-04-051-0/+60
* global cleanup to use the new syscall interfaceRich Felker2011-03-2027-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 Felker2011-03-191-0/+19
* depends on settimeofday which needs _GNU_SOURCE feature testRich Felker2011-03-011-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 Felker2011-02-191-0/+8
* add syscall wrappers for inotifyRich Felker2011-02-194-0/+28
* cleanup cruft left from when kernel and user time_t disagreedRich Felker2011-02-192-12/+3
* make daemon try the operations that might fail before fork rather than afterRich Felker2011-02-171-12/+10
* daemon should check for failures and return -1Rich Felker2011-02-171-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 Felker2011-02-1510-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 Felker2011-02-131-3/+1
* syscall cleanup for umount2Rich Felker2011-02-131-1/+0
* use umount2 syscall for umount (new targets lack old 1-arg umount)Rich Felker2011-02-131-2/+1
* initial check-in, version 0.5.0Rich Felker2011-02-1234-0/+438