summaryrefslogtreecommitdiff
path: root/lib/libc
AgeCommit message (Collapse)Author
2016-05-23More fixes from miodPhilip Guenther
2016-05-23Include SYS.h instead of DEFS.h now that this does a direct syscallPhilip Guenther
2016-05-23Major bump for the removal of the various locale, ruserok, andPhilip Guenther
longjmperror symbols
2016-05-23Add XOR cookies for rp and sp. Switch from calling obsoletePhilip Guenther
sig{block,setmask} to directly using the sigprocmask syscall. Remove longjmperror()-if-passed-real-sigcontext checks and the filling in of sigcontext fields that longjmp ignores. in snaps; ok deraadt@
2016-05-23Make _fwalk and _cleanup completely internal to libcPhilip Guenther
ok deraadt@
2016-05-23Stop supporting longjmperror(); it's not used, not portable, and the checksPhilip Guenther
longjmp performs can't really be relied upon, even after we got rid of the false positives... ok millert@ deraadt@
2016-05-23Remove iruserok(_sa)? and __ivaliduser(sa)?Philip Guenther
ok millert@ deraadt@
2016-05-23Eliminate __check_rhosts_file and __rcmd_errstr: they were only used byPhilip Guenther
rlogind and rshd (remember them?) ok deraadt@
2016-05-23Stop exposing <sys/localedef.h> and various symbols internal to the libcPhilip Guenther
locale implementation: _{Current,Default}*Locale, __[mn]locale_changed, __mb_len_max_runtime ok millert@ schwarze@ deraadt@
2016-05-22Add XOR cookies for r1 (stack) and lr. Switch from calling obsoletePhilip Guenther
sig{block,setmask} to directly using the sigprocmask syscall. Rewrite sig{set,long}jmp based on {set,long}jmp to avoid the deprecated store/load-multiple instructions. in snaps; ok deraadt@
2016-05-22Oh right, actually delete this now that __cerror is unusedPhilip Guenther
2016-05-20Delete the _SDA_BASE and _SDA2_BASE symbols: they're unnecessary inPhilip Guenther
shared libraries...and I misspelled them anyway
2016-05-19no more v6only;Jason McIntyre
2016-05-19Add ASM_NOERR for syscalls that never fail and thus don't need the errnoPhilip Guenther
setting logic...which can significantly reduce the size of the stub on some archs; 20 syscalls get a trim with this. in snaps for a bit and ok deraadt@
2016-05-18Save and restore 'gbr' register when enter/leaving the kernel, and usePhilip Guenther
it for the TCB pointer. Eliminate __cerror. "looks good" kettenis@, testing and ok deraadt@
2016-05-18Reduce quadruple negation to double negation;Ingo Schwarze
from Edgar Pettijohn <edgar at pettijohn minus web dot com>. OK jmc@ deraadt@ While here, remove two instances of inconsistent future tense.
2016-05-17Fix a one-byte buffer underflow (read access only).Ingo Schwarze
This change touches code that only runs when REG_BASIC is given and the regular expression is anchored with ^ _and_ uses backreferences. The segfault could only be triggered when the ^ anchor was inside a leading () subexpression quantified with *. OK martijn@ Patch also proofread by Pedro Giffuni <pfg at FreeBSD dot org>.
2016-05-16...and delete the GP setup. Should have been in previous commitPhilip Guenther
2016-05-16Eliminate cerror: use PAL_rdunique to get the TCB address directlyPhilip Guenther
ok deraadt@ kettenis@
2016-05-15Add END() to match ENTRY() macrosPhilip Guenther
ok kettenis@
2016-05-15TIB conversion is complete, so set errno in the syscall stub and eliminatePhilip Guenther
__cerror ok ketternis@
2016-05-13remove extra argument; from rafael nevesJason McIntyre
2016-05-12Using a 3-word buffer in the openbsd.randomdata segment, XOR swizzleTheo de Raadt
the PC/FP/SP registers in the jmpbuf. An old idea (around 1999?) but the random segment sure makes it easy. Lots of help from kettenis ok kettenis
2016-05-11remove hppa64 port, which we never got going beyond broken single users.Theo de Raadt
hppa reverse-stack gives us a valuable test case, but most developers don't have a 2nd one to proceed further with this. ok kettenis
2016-05-11Add RETURN VALUES section and .Xr to memmem(3).Ingo Schwarze
From Michal Mazurek <akfaew at jasminek dot net>. OK tedu@
2016-05-10Oops: the caching of TCB address in single-threaded processes on archs withPhilip Guenther
slow TCB_GET (alpha, arm, mips64, sh) was broken when I switched CPP symbols.
2016-05-09libc stub is gone, so update the description to cover the remaining usePhilip Guenther
2016-05-09Remove sigreturn declaration and the now-unused libc syscall stubPhilip Guenther
2006-10-10Preliminary userland bits for OpenBSD/landisk, many things coming fromMiod Vallat
NetBSD.
2016-05-09Stop using sigreturn for longjmp, just set the signal mask and returnPhilip Guenther
registers ala _longjmp. In setjmp, stop saving the onstack from sigaltstack as it's been unused by longjmp for years. In sig{set,long}jmp, use the internal, hidden names for setjmp/_setjmp/etc to avoid creating PLT entries. build testing deraadt@
2016-05-09Don't use sigreturn(2) in longjmp(3). Instead use a similar approach as inMark Kettenis
_longjmp(3) but also restore the signal mask. ok deraadt@
2016-05-09remove mention of dbm(3) and surrounding cruft; ok jmc@Christian Weisgerber
2016-05-08Implement longjmp directly and not on top of sigreturn.Philip Guenther
Use the hidden symbols for internal calls to abort, longjmp, etc ok deraadt@
2016-05-08No, sigaltstack's onstack flag shouldn't be saved. Delete commentPhilip Guenther
wondering about that
2016-05-08Hide __fpu_* and make internal _Qp_* calls go direct.Philip Guenther
ok kettenis@
2016-05-08Simplify sig{set,long}jmp(): just Do The Job instead of calling othersPhilip Guenther
ok kettenis@
2016-05-07Unexport sigreturn. Nobody should use it anymore, and it will be removedMark Kettenis
from libc completely in the near future. Riding the libc bump that appeared a few moments ago. ok deraadt@
2016-05-07remove more dbm piecesChristian Weisgerber
2016-05-07remove ancient dbm functions (ndbm remains). nothing uses them in forever.Ted Unangst
2016-05-07stop opening the shadow database by default. only programs that request itTed Unangst
via the _shadow functions will open now, preventing some programs running as root from accidentally loading password hashes it into their memory. ok deraadt
2016-05-07Avoid a transient PLT entry for the internal __getcwd syscall stub forPhilip Guenther
slightly better code on some archs
2016-05-07Declare moncontrol(3) APIs in <sys/gmon.h>Philip Guenther
Export _gmonparam again. Make gcrt0.o use an reserved name for _monstartup() ok millert@
2016-05-07Use a Thread Information Block in both single and multi-threaded programs.Philip Guenther
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@
2016-05-04Remove old cruft.Vadim Zhukov
okay millert@
2016-05-02Remove a vax remnant (that was really a no-op anyway).Todd C. Miller
2016-05-01Remove old NeXT-specific cruft. From mmcc@Todd C. Miller
2016-04-28Don't add setjmp.S twice.Mark Kettenis
2016-04-28Don't use sigreturn(2) in longjmp(3). Instead use a similar approach as inMark Kettenis
_longjmp(3) but also restore the signal mask. ok deraadt@
2016-04-28remove duplicate strrchr.c entry in SRCSJonathan Gray
ok deraadt@
2016-04-26Enable LIBREBUILD to construct libc.so.*.aTheo de Raadt