summaryrefslogtreecommitdiff
path: root/lib/libc
AgeCommit message (Collapse)Author
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
2016-04-25Allow setenv(3) and putenv(3) to operate on a NULL environ pointer.Todd C. Miller
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@
2016-04-17document pledge(2); from rob pierceJason McIntyre
2016-04-13Revert the recent changes to pledge.2.Theo Buehler
Requested by deraadt@
2016-04-12tweak previous;Jason McIntyre
2016-04-12two times a define to an inline function, from Michael McConville; ok djm@Otto Moerbeek
2016-04-12documents "mcast" promiseSebastien Marie
with few nits from and ok schwarze@
2016-04-12documents "route" promiseSebastien Marie
initial diff from Rob Pierce rob ! 2keys. ca with some enhancements from jmc@, schwarze@ and me ok jmc@ schwarze@
2016-04-10Clean up and complete the lists of allowed syscalls.Theo Buehler
With input from schwarze@ and semarie@. "go ahead" schwarze@ (documentation perspective only, without checking factual accuracy) ok semarie@ on an earlier version
2016-04-09tweak MALLOC_STATS printing (switched off by default), prodded byOtto Moerbeek
Michael McConville
2016-04-09redundant memset(3), from Michael McConville, ok armani@Otto Moerbeek
2016-04-09Document (near) standards conformancePhilip Guenther
based on diff by mmcc@
2016-04-05Prefer _MUTEX_*LOCK over _THREAD_PRIVATE_MUTEX_*LOCK() when thread-specificPhilip Guenther
data isn't necessary. ok mpi@, ok&tweak natano@
2016-04-05Update example in comment: setlogin doesn't use {PROTO,DEF}_WRAP() nowPhilip Guenther
2016-04-04get* can change *lineptr on failurePhilip Guenther
ok sthen@
2016-04-03Document ``use after free'' error messageOtto Moerbeek
2016-03-30Major bump for getlogin*/ptrace changesPhilip Guenther
2016-03-30Turd polish: use HIDDEN= instead of PSEUDO= for ptrace syscall stub, toPhilip Guenther
make its underlying symbol name look like others.
2016-03-30Eliminate userspace caching by getlogin_r/setlogin; make the getloginPhilip Guenther
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@
2016-03-30some Xr adjustment to catch up with MLINKS removal;Jason McIntyre
2016-03-30for some time now mandoc has not required MLINKS to functionJason McIntyre
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
2016-03-27Don't need to define SYS_sycall herePhilip Guenther
noted by miod@
2016-03-27Switch to RSYSCALL: no special handling is needed here any more andPhilip Guenther
we do need the hidden _libc_syscall alias. from miod@
2016-03-27remove unused variableCharles Longeau
ok millert@
2016-03-27Add EISDIR to ERRORS and fix ETXTBSY description; from Piotr Durlej.Todd C. Miller
OK jmc@
2016-03-26fix typo: "prefer seek()" -> "prefer fseek()"Theo Buehler
ok deraadt@, stsp@
2016-03-26fix the last bunch of NAME sections that were overlooked earlierIngo Schwarze
such that the MLINKS removal can be committed after this; OK jmc@
2016-03-26remove some unused ancient test files from 4.4 BSDMichael McConville
ok guenther@, millert@, deraadt@
2016-03-23Initialize _res_ext.nsaddr_list alongside _res.nsaddr_list.Christopher Zimmermann
Fallback to initialization with 0 when _res.nsaddr_list is to small to hold an IPv6 address. OK bluhm@
2016-03-22Improve the sendsyslog(2) man page.Alexander Bluhm
OK deraadt@ guenther@ jmc@
2016-03-22tweak previous;Jason McIntyre
2016-03-21Rename the system call sendsyslog2 to sendsyslog. Keep the old oneAlexander Bluhm
as osendsyslog for a while. The three argument variant is the only one that will stay. input kettenis@; OK deraadt@
2016-03-21The asm in the MD_DISABLE_KBIND macro was too fragile and broke alpha and hppa.Philip Guenther
So instead, do the kbind disabling with syscall(). debugging and ok deraadt@, ok kettenis@
2016-03-20LOCALE_CHARSETS has been unused for some time nowJeremie Courreges-Anglas
so no need to include share/locale/ctype/Makefile.inc to get it. ok guenther@ stsp@ (who had the same diff)
2016-03-20__thrsleep.2 is contained in section 2natano
ok jmc
2016-03-20It's libpthread, not librthread, and __tfork(2) lets you set the TCBPhilip Guenther
address of the new thread
2016-03-20Add $OpenBSD linePhilip Guenther
2016-03-20Rearrange C runtime bits: now that ld.so exports environ and __progname,Philip Guenther
move their definitions and initialization in static links to libc.a Make crt0 always invoke a new func _csu_finish() in libc to process the auxv and to either register the ld.so cleanup function (in dynamic links) or initialize environ and __progname and do MC_DISABLE_KBIND (in static links). In libc, get pagesize from auxv; cache that between getpagesize() and sysconf(_SC_PAGESIZE) ok mpi@ "good time" deraadt@
2016-03-20Currently we have about a 50/50 split over fcntl(n, F_GETFL [,0])Kenneth R Westerback
idioms. Adopt the more concise fcntl(n, F_GETFL) over fcntl(n, F_GETFL, 0) where it is obvious further investigation will not yield and even better way. Obviousness evaluation and ok guenther@
2016-03-19Add STANDARDS and HISTORY blurbs for SOCK_{NONBLOCK,CLOEXEC,DNS}Philip Guenther
2016-03-19This is thrkill, not __thrsigdivertPhilip Guenther
2016-03-17remove NOTREACHEDmmcc
2016-03-17properly guard to macrosmmcc
ok otto@
2016-03-15remind people rewind is seldom a good choiceMarc Espie
okay jmc@
2016-03-14small step towards multiple pools: move two globls into the struct dir_infoOtto Moerbeek
ok @stefan armani@
2016-03-14Remove doaccess variable and access(2) call since this interfers withmestre
applications like zdump(8) because pledge(2) doesn't allow access(2) to /usr/share/zoneinfo. millert@ better described why this call can go away: "This looks like an attempt to do access checks based on the real uid instead of the effective uid. Basically for setuid programs we don't want to allow a user to set TZ to a path they should not be able to otherwise access. However, we already have a check for issetugid() above so I think the doaccess bits can just be removed and we can rely on open()." After discussion with tb@, deraadt@ and millert@, this was also OK'ed by them
2016-03-14(char *)0 -> NULLmmcc