summaryrefslogtreecommitdiffstats
path: root/lib/libc (follow)
Commit message (Collapse)AuthorAgeFilesLines
...
* Using a 3-word buffer in the openbsd.randomdata segment, XOR swizzlederaadt2016-05-123-21/+80
| | | | | | 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
* remove hppa64 port, which we never got going beyond broken single users.deraadt2016-05-1129-944/+3
| | | | | | 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
* Add RETURN VALUES section and .Xr to memmem(3).schwarze2016-05-111-3/+4
| | | | | From Michal Mazurek <akfaew at jasminek dot net>. OK tedu@
* Oops: the caching of TCB address in single-threaded processes on archs withguenther2016-05-101-2/+2
| | | | slow TCB_GET (alpha, arm, mips64, sh) was broken when I switched CPP symbols.
* libc stub is gone, so update the description to cover the remaining useguenther2016-05-091-20/+19
|
* Remove sigreturn declaration and the now-unused libc syscall stubguenther2016-05-0914-491/+3
|
* Stop using sigreturn for longjmp, just set the signal mask and returnguenther2016-05-093-40/+69
| | | | | | | | | 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@
* Don't use sigreturn(2) in longjmp(3). Instead use a similar approach as inkettenis2016-05-091-60/+39
| | | | | | _longjmp(3) but also restore the signal mask. ok deraadt@
* remove mention of dbm(3) and surrounding cruft; ok jmc@naddy2016-05-091-4/+2
|
* Implement longjmp directly and not on top of sigreturn.guenther2016-05-083-98/+125
| | | | | | Use the hidden symbols for internal calls to abort, longjmp, etc ok deraadt@
* No, sigaltstack's onstack flag shouldn't be saved. Delete commentguenther2016-05-081-2/+1
| | | | wondering about that
* Hide __fpu_* and make internal _Qp_* calls go direct.guenther2016-05-086-39/+53
| | | | ok kettenis@
* Simplify sig{set,long}jmp(): just Do The Job instead of calling othersguenther2016-05-081-52/+50
| | | | ok kettenis@
* Unexport sigreturn. Nobody should use it anymore, and it will be removedkettenis2016-05-071-2/+0
| | | | | | | from libc completely in the near future. Riding the libc bump that appeared a few moments ago. ok deraadt@
* remove more dbm piecesnaddy2016-05-072-5/+4
|
* remove ancient dbm functions (ndbm remains). nothing uses them in forever.tedu2016-05-074-323/+1
|
* stop opening the shadow database by default. only programs that request ittedu2016-05-071-5/+3
| | | | | | via the _shadow functions will open now, preventing some programs running as root from accidentally loading password hashes it into their memory. ok deraadt
* Avoid a transient PLT entry for the internal __getcwd syscall stub forguenther2016-05-071-1/+2
| | | | slightly better code on some archs
* Declare moncontrol(3) APIs in <sys/gmon.h>guenther2016-05-073-7/+11
| | | | | | | Export _gmonparam again. Make gcrt0.o use an reserved name for _monstartup() ok millert@
* Use a Thread Information Block in both single and multi-threaded programs.guenther2016-05-07149-1658/+2279
| | | | | | | | | | | | | | | | | 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@
* Remove old cruft.zhuk2016-05-041-95/+0
| | | | okay millert@
* Remove a vax remnant (that was really a no-op anyway).millert2016-05-021-3/+1
|
* Remove old NeXT-specific cruft. From mmcc@millert2016-05-011-13/+1
|
* Don't add setjmp.S twice.kettenis2016-04-281-2/+2
|
* Don't use sigreturn(2) in longjmp(3). Instead use a similar approach as inkettenis2016-04-281-59/+22
| | | | | | _longjmp(3) but also restore the signal mask. ok deraadt@
* remove duplicate strrchr.c entry in SRCSjsg2016-04-281-2/+2
| | | | ok deraadt@
* Enable LIBREBUILD to construct libc.so.*.aderaadt2016-04-261-1/+2
|
* Allow setenv(3) and putenv(3) to operate on a NULL environ pointer.millert2016-04-251-11/+15
| | | | | | The getenv(3) and unsetenv(3) functions already support this. This will make it easier to emulate the glibc clearenv() function in ports. Based on a diff from and OK jca@
* document pledge(2); from rob piercejmc2016-04-171-2/+6
|
* Revert the recent changes to pledge.2.tb2016-04-131-74/+37
| | | | Requested by deraadt@
* tweak previous;jmc2016-04-121-2/+2
|
* two times a define to an inline function, from Michael McConville; ok djm@otto2016-04-121-10/+19
|
* documents "mcast" promisesemarie2016-04-121-1/+16
| | | | with few nits from and ok schwarze@
* documents "route" promisesemarie2016-04-121-3/+23
| | | | | | | initial diff from Rob Pierce rob ! 2keys. ca with some enhancements from jmc@, schwarze@ and me ok jmc@ schwarze@
* Clean up and complete the lists of allowed syscalls.tb2016-04-101-36/+38
| | | | | | | | | With input from schwarze@ and semarie@. "go ahead" schwarze@ (documentation perspective only, without checking factual accuracy) ok semarie@ on an earlier version
* tweak MALLOC_STATS printing (switched off by default), prodded byotto2016-04-091-14/+14
| | | | Michael McConville
* redundant memset(3), from Michael McConville, ok armani@otto2016-04-091-2/+1
|
* Document (near) standards conformanceguenther2016-04-091-4/+21
| | | | based on diff by mmcc@
* Prefer _MUTEX_*LOCK over _THREAD_PRIVATE_MUTEX_*LOCK() when thread-specificguenther2016-04-054-21/+21
| | | | | | data isn't necessary. ok mpi@, ok&tweak natano@
* Update example in comment: setlogin doesn't use {PROTO,DEF}_WRAP() nowguenther2016-04-051-8/+8
|
* get* can change *lineptr on failureguenther2016-04-041-2/+6
| | | | ok sthen@
* Document ``use after free'' error messageotto2016-04-031-2/+4
|
* Major bump for getlogin*/ptrace changesguenther2016-03-301-1/+1
|
* Turd polish: use HIDDEN= instead of PSEUDO= for ptrace syscall stub, toguenther2016-03-304-9/+33
| | | | make its underlying symbol name look like others.
* Eliminate userspace caching by getlogin_r/setlogin; make the getloginguenther2016-03-304-65/+20
| | | | | | | | syscall behave exactly like userspace getlogin_r() and rename it to match. Eliminate the reduced-to-no-op wrappers of the syscalls. Eliminate the unnecessary per-thread static buffering by getlogin(). ok kettenis@ deraadt@
* some Xr adjustment to catch up with MLINKS removal;jmc2016-03-304-13/+13
|
* for some time now mandoc has not required MLINKS to functionjmc2016-03-3019-557/+19
| | | | | | | | | | | | correctly - logically complete that now by removing MLINKS from base; authors need only to ensure there is an entry in NAME for any function/ util being added. MLINKS will still work, and remain for perl to ease upgrades; ok nicm (curses) bcook (ssl) ok schwarze, who provided a lot of feedback and assistance ok tb natano jung
* Don't need to define SYS_sycall hereguenther2016-03-271-4/+1
| | | | noted by miod@
* Switch to RSYSCALL: no special handling is needed here any more andguenther2016-03-271-6/+2
| | | | | | we do need the hidden _libc_syscall alias. from miod@
* remove unused variablechl2016-03-271-2/+2
| | | | ok millert@