summaryrefslogtreecommitdiffstats
path: root/lib/libc/arch/arm/sys
AgeCommit message (Collapse)AuthorFilesLines
2020-10-19replace ad-hoc illegal instruction with the architecturally defined onenaddy1-2/+2
("permanently undefined") ok deraadt@ kettenis@
2020-10-18SYS___threxit cannot fail, but this integration looks like a gadget.deraadt1-1/+2
Put a hard-trap instruction after the syscall instruction. ok kettenis mortimer
2017-11-21Avoid .align 0. Clang's integrated assembler actually honors this directivekettenis3-9/+6
and the resulting byte-alignment triggers unaligned access. ok patrick@, deraadt@
2016-10-04Use the userspace-visible thread register directly in __cerror insteadguenther1-6/+8
of indirecting through __errno(). Register naming tweaks and clang testing by patrick@ and jsg@ ok kettenis@
2016-08-06Use internal names for __errno, _memcpy, memset, and {,_}{set,long}jmpguenther8-18/+16
Eliminate pointless use of PIC_SYM() Split out DEFS.h from SYS.h like some other archs ok kettenis@ deraadt@
2016-05-30Consistently reference '_end' instead of 'end' in the brk/sbrk implementationguenther2-6/+6
ok deraadt@
2016-05-09Remove sigreturn declaration and the now-unused libc syscall stubguenther1-41/+0
2016-05-07Use a Thread Information Block in both single and multi-threaded programs.guenther4-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@
2015-10-23Merge the sigaction() and sigprocmask() overloads/wrappers from libpthreadguenther1-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@
2015-09-10Adds hidden _libc_FOO aliases for the system call stubs.guenther8-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@
2015-08-26Hide many (194!) symbols that nothing should be using.guenther3-58/+13
Delete exect(2); it wasn't portable across archs and nothing used it. ports test build by naddy@ ok deraadt@ kettenis@
2015-04-07Make pthread_atfork() track the DSO that called it like atexit() does,guenther1-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@
2015-03-31Simplify fork/vfork logic: the kernel has handled returning zero in the childguenther2-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@
2013-12-31Remove #ifdef _REENTRANT code that isn't used here. These days, the codekettenis1-11/+1
handling per-thread errno lives in librthread. ok miod@, espie@
2012-08-22Convert cpp | as rules in bsd.lib.mk and lib/libc/sys/Makefile.inc to pure ccpascal3-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@
2012-07-01The kernel returns the pending set; this stub has to save it throughguenther1-4/+8
the pointer ok miod@ kettenis@
2012-06-21__tfork() needs to set the stack address of the new thread in the kernel,guenther1-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@
2012-04-12remove rfork(); ok guenther miodderaadt1-32/+0
2012-03-22Move __tfork_thread() from rthreads (libpthread) to libc so thatguenther1-0/+48
it can be used for not-strictly-threading purposes ok matthew@ kurt@
2011-04-04Move __cerror to ___cerror with a weak alias so that rthreads can override it.guenther1-2/+4
On mips64, also correct the name called from plain cerror to __cerror. "looks correct" miod@
2004-10-01add some missing $, ok djm@ 'That looks fine to me' millert@jsg1-0/+1
2004-02-16Remove WARN_REFERENCES incorrectly imported from NetBSD. ok miod@drahn2-8/+2
2004-02-12Update from netbsd, prodded by miod@drahn1-2/+2
2004-02-07Do not generate text relocations in PIC code.drahn3-11/+11
2004-02-02Add missing minbrk symbol, fixes profiling builds.drahn1-1/+5
2004-02-01ARGH, forgot tags.drahn10-0/+10
2004-02-01arm libc support. From NetBSD. currently supports softfloat.drahn12-0/+629