summaryrefslogtreecommitdiff
path: root/src/linux
AgeCommit message (Collapse)AuthorFilesLines
2011-04-06fix completely bogus loop condition in getmntent_rRich Felker1-1/+1
somehow this worked on my simple fstab, but horribly broke in general, leading to use of uninitialized offset array and crashes.
2011-04-05implement the adjtime and adjtimex functions (nonstandard)Rich Felker2-0/+34
2011-04-05add getmntent_r interface (all of mntent is nonstandard anyway)Rich Felker1-12/+17
2011-04-05add pivot_root syscall wrapperRich Felker1-0/+6
2011-04-05support the nonstandard err.h interfacesRich Felker1-0/+60
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.
2011-03-20global cleanup to use the new syscall interfaceRich Felker27-32/+27
2011-03-19overhaul syscall interfaceRich Felker1-0/+19
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.
2011-03-01depends on settimeofday which needs _GNU_SOURCE feature testRich Felker1-0/+1
2011-02-19workaround gcc bug 46926 by providing a dumb sincos implementationRich Felker1-0/+8
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.
2011-02-19add syscall wrappers for inotifyRich Felker4-0/+28
2011-02-19cleanup cruft left from when kernel and user time_t disagreedRich Felker2-12/+3
2011-02-17make daemon try the operations that might fail before fork rather than afterRich Felker1-12/+10
2011-02-17daemon should check for failures and return -1Rich Felker1-5/+8
2011-02-15remove standalone syscall cruftRich Felker10-10/+0
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.
2011-02-13cleaning up syscalls in preparation for x86_64 portRich Felker1-3/+1
- 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
2011-02-13syscall cleanup for umount2Rich Felker1-1/+0
2011-02-13use umount2 syscall for umount (new targets lack old 1-arg umount)Rich Felker1-2/+1
2011-02-12initial check-in, version 0.5.0v0.5.0Rich Felker34-0/+438