summaryrefslogtreecommitdiffstats
path: root/lib/libc/arch/arm/sys (follow)
Commit message (Collapse)AuthorAgeFilesLines
* replace ad-hoc illegal instruction with the architecturally defined onenaddy2020-10-191-2/+2
| | | | | ("permanently undefined") ok deraadt@ kettenis@
* SYS___threxit cannot fail, but this integration looks like a gadget.deraadt2020-10-181-1/+2
| | | | | Put a hard-trap instruction after the syscall instruction. ok kettenis mortimer
* Avoid .align 0. Clang's integrated assembler actually honors this directivekettenis2017-11-213-9/+6
| | | | | | and the resulting byte-alignment triggers unaligned access. ok patrick@, deraadt@
* Use the userspace-visible thread register directly in __cerror insteadguenther2016-10-041-6/+8
| | | | | | | of indirecting through __errno(). Register naming tweaks and clang testing by patrick@ and jsg@ ok kettenis@
* Use internal names for __errno, _memcpy, memset, and {,_}{set,long}jmpguenther2016-08-068-18/+16
| | | | | | | Eliminate pointless use of PIC_SYM() Split out DEFS.h from SYS.h like some other archs ok kettenis@ deraadt@
* Consistently reference '_end' instead of 'end' in the brk/sbrk implementationguenther2016-05-302-6/+6
| | | | ok deraadt@
* Remove sigreturn declaration and the now-unused libc syscall stubguenther2016-05-091-41/+0
|
* Use a Thread Information Block in both single and multi-threaded programs.guenther2016-05-074-72/+13
| | | | | | | | | | | | | | | | | This stores errno, the cancelation flags, and related bits for each thread and is allocated by ld.so or libc.a. This is an ABI break from 5.9-stable! Make libpthread dlopen'able by moving the cancelation wrappers into libc and doing locking and fork/errno handling via callbacks that libpthread registers when it first initializes. 'errno' *must* be declared via <errno.h> now! Clean up libpthread's symbol exports like libc. On powerpc, offset the TIB/TCB/TLS data from the register per the ELF spec. Testing by various, particularly sthen@ and patrick@ ok kettenis@
* Merge the sigaction() and sigprocmask() overloads/wrappers from libpthreadguenther2015-10-231-3/+3
| | | | | | | | | into libc, and move pthread_sigmask() as well (just a trivial wrapper). This provides consistent handling of SIGTHR between single- and multi-threaded programs and is a step in the merge of all the libpthread overloads, providing some ASM and Makefile bits that the other wrappers will need. ok deraadt@ millert@
* Adds hidden _libc_FOO aliases for the system call stubs.guenther2015-09-108-14/+23
| | | | | | | | | | Stop generating _brk and _sbrk symbols: they've already been hidden. Set the ELF symbol size on the syscall stubs. Give the __{min,cur}brk symbols a size and type, and hide more jump labels. alpha, arm, m88k, sh, sparc, and vax assistance miod@ hppa assistance kettenis@ ok deraadt@ miod@
* Hide many (194!) symbols that nothing should be using.guenther2015-08-263-58/+13
| | | | | | | Delete exect(2); it wasn't portable across archs and nothing used it. ports test build by naddy@ ok deraadt@ kettenis@
* Make pthread_atfork() track the DSO that called it like atexit() does,guenther2015-04-071-2/+3
| | | | | | | | | | unregistering callbacks if the DSO is unloaded. Move the callback handling from libpthread to libc, though libpthread still overrides the inner call to handle locking and thread-library reinitialization. Major version bump for both libc and libpthread. verification that this fixes various ports ajacoutot@ asm assistance miod@; ok millert@ deraadt@
* Simplify fork/vfork logic: the kernel has handled returning zero in the childguenther2015-03-312-23/+3
| | | | | | | for a long time, so there's no need to test the second return register here in the asm stub. ok and testing of many archs by krw@ miod@
* Remove #ifdef _REENTRANT code that isn't used here. These days, the codekettenis2013-12-311-11/+1
| | | | | | handling per-thread errno lives in librthread. ok miod@, espie@
* Convert cpp | as rules in bsd.lib.mk and lib/libc/sys/Makefile.inc to pure ccpascal2012-08-223-10/+10
| | | | | | | invocations. This allows us to use the compiler builtin define __PIC__ to check for PIC/PIEness rather than passing -DPIC. Simplifies PIE work a lot. ok matthew@, conceptually ok kurt@
* The kernel returns the pending set; this stub has to save it throughguenther2012-07-011-4/+8
| | | | | | the pointer ok miod@ kettenis@
* __tfork() needs to set the stack address of the new thread in the kernel,guenther2012-06-211-12/+5
| | | | | | | | | so that it can't get a signal while still running on the parent thread's stack. Also, pass in sizeof(struct __tfork) to provide forward compat when more members are added. This is an ABI change, so switch syscall numbers and bump lib majors this time. ok deraadt@ matthew@
* remove rfork(); ok guenther miodderaadt2012-04-121-32/+0
|
* Move __tfork_thread() from rthreads (libpthread) to libc so thatguenther2012-03-221-0/+48
| | | | | | it can be used for not-strictly-threading purposes ok matthew@ kurt@
* Move __cerror to ___cerror with a weak alias so that rthreads can override it.guenther2011-04-041-2/+4
| | | | | | On mips64, also correct the name called from plain cerror to __cerror. "looks correct" miod@
* add some missing $, ok djm@ 'That looks fine to me' millert@jsg2004-10-011-0/+1
|
* Remove WARN_REFERENCES incorrectly imported from NetBSD. ok miod@drahn2004-02-162-8/+2
|
* Update from netbsd, prodded by miod@drahn2004-02-121-2/+2
|
* Do not generate text relocations in PIC code.drahn2004-02-073-11/+11
|
* Add missing minbrk symbol, fixes profiling builds.drahn2004-02-021-1/+5
|
* ARGH, forgot tags.drahn2004-02-0110-0/+10
|
* arm libc support. From NetBSD. currently supports softfloat.drahn2004-02-0112-0/+629