summaryrefslogtreecommitdiffstats
path: root/lib/libc (follow)
Commit message (Collapse)AuthorAgeFilesLines
...
* 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@
* Add EISDIR to ERRORS and fix ETXTBSY description; from Piotr Durlej.millert2016-03-271-3/+5
| | | | OK jmc@
* fix typo: "prefer seek()" -> "prefer fseek()"tb2016-03-261-3/+3
| | | | ok deraadt@, stsp@
* fix the last bunch of NAME sections that were overlooked earlierschwarze2016-03-261-5/+5
| | | | | such that the MLINKS removal can be committed after this; OK jmc@
* remove some unused ancient test files from 4.4 BSDmmcc2016-03-263-140/+0
| | | | ok guenther@, millert@, deraadt@
* Initialize _res_ext.nsaddr_list alongside _res.nsaddr_list.chrisz2016-03-231-9/+16
| | | | | | | Fallback to initialization with 0 when _res.nsaddr_list is to small to hold an IPv6 address. OK bluhm@
* Improve the sendsyslog(2) man page.bluhm2016-03-221-12/+23
| | | | OK deraadt@ guenther@ jmc@
* tweak previous;jmc2016-03-221-4/+4
|
* Rename the system call sendsyslog2 to sendsyslog. Keep the old onebluhm2016-03-216-28/+16
| | | | | | as osendsyslog for a while. The three argument variant is the only one that will stay. input kettenis@; OK deraadt@
* The asm in the MD_DISABLE_KBIND macro was too fragile and broke alpha and hppa.guenther2016-03-2113-304/+5
| | | | | | So instead, do the kbind disabling with syscall(). debugging and ok deraadt@, ok kettenis@
* LOCALE_CHARSETS has been unused for some time nowjca2016-03-201-5/+1
| | | | | | so no need to include share/locale/ctype/Makefile.inc to get it. ok guenther@ stsp@ (who had the same diff)
* __thrsleep.2 is contained in section 2natano2016-03-201-3/+3
| | | | ok jmc
* It's libpthread, not librthread, and __tfork(2) lets you set the TCBguenther2016-03-201-9/+12
| | | | address of the new thread
* Add $OpenBSD lineguenther2016-03-201-0/+1
|
* Rearrange C runtime bits: now that ld.so exports environ and __progname,guenther2016-03-2019-12/+427
| | | | | | | | | | | 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@
* Currently we have about a 50/50 split over fcntl(n, F_GETFL [,0])krw2016-03-201-2/+2
| | | | | | | | | | 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@
* Add STANDARDS and HISTORY blurbs for SOCK_{NONBLOCK,CLOEXEC,DNS}guenther2016-03-192-4/+36
|
* This is thrkill, not __thrsigdivertguenther2016-03-191-3/+3
|
* remove NOTREACHEDmmcc2016-03-171-2/+1
|
* properly guard to macrosmmcc2016-03-171-5/+5
| | | | ok otto@
* remind people rewind is seldom a good choiceespie2016-03-151-2/+5
| | | | okay jmc@
* small step towards multiple pools: move two globls into the struct dir_infootto2016-03-141-112/+126
| | | | ok @stefan armani@
* Remove doaccess variable and access(2) call since this interfers withmestre2016-03-141-11/+2
| | | | | | | | | | | | | | | | 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
* (char *)0 -> NULLmmcc2016-03-141-2/+2
|
* environ and __progname are not declared in a public header; declare themguenther2016-03-1319-52/+27
| | | | | | in libc's hidden/stdlib.h instead of in each .c file that needs one ok deraadt@ gsoares@ mpi@
* Remove sentences in RETURN VALUES sections saying that functions withmmcc2016-03-124-25/+8
| | | | | | | | | | | | | void return types 'return no value'. This is obvious and therefore unneccessary to mention. We spare rewind(3)'s sentence because espie@ pointed out that it's a warning - the function masks a potential error. This commit also adds a sentence to X509_free clarifying that it's NULL-safe. This bit was discussed with doug@. ok martijn@, sentiment supported by schwarze@
* missing article in previous;jmc2016-03-111-2/+2
|
* pledge: define the meaning of passing NULL to one arguments of pledge(2) as "Isemarie2016-03-111-2/+11
| | | | | | | | | | don't want to change the current value" it changes only the `request' argument behaviour when NULL is passed: previously it was traited as "" was passed. with help from jmc@ for man-page OK tb@ on previous version
* ANSIfy function declarations, move initializations to declaration blockmmcc2016-03-101-19/+10
| | | | ok millert@
* un-vax;jmc2016-03-101-6/+5
| | | | i've also changed some "and" to "no", since i think it reads better;
* un-vax;jmc2016-03-101-3/+3
|
* un-vax;jmc2016-03-103-12/+9
|