summaryrefslogtreecommitdiffstats
path: root/lib/libc (follow)
Commit message (Collapse)AuthorAgeFilesLines
...
* Wrap <icdb.h> so that calls go direct and the symbols are all weakguenther2015-11-252-1/+47
| | | | ok tedu@
* Make using a deprecated function an error instead of just a warningguenther2015-11-251-1/+5
| | | | ok millert@ kettenis@
* syslog() here is pointless; ok millertderaadt2015-11-251-2/+0
|
* Rather than using syslog(3) (which pulls in snprintf), creating the reportderaadt2015-11-251-4/+14
| | | | | | | | string using simpler strings functions and use sendsyslog2() directly. Also, use the LOG_CONS flag so that single-user reports are more clear. Use a buffer size of 1024 (from bluhm) discussed with guenther and matthew ok millert
* Add a syscall stub for sendsyslog2(2), and use it in syslog_r(3), passingderaadt2015-11-253-22/+9
| | | | | | LOG_CONS to the kernel. As a result, the /dev/console opening code can be removed. ok kettenis millert beck
* Use reentrant versions of getpw{nam,uid} and getgr{nam,gid} withinmillert2015-11-2412-103/+72
| | | | | | | libc to avoid reusing the static buffers returned by the non-reentrant versions. Since this is inside libc we can use constants for the buffer sizes instead of having to call sysconf(). OK guenther@ deraadt@
* fix an error in NAME; ok schwarzejmc2015-11-241-3/+3
|
* Document that these functions are now in strings.h.daniel2015-11-247-19/+22
| | | | ok millert@
* Don't fake a bulleted list by prefixing items with 'o'.bentley2015-11-241-8/+8
| | | | ok jmc@
* Remove support for "lookup yp" in /etc/resolv.conf. This historicalderaadt2015-11-234-239/+7
| | | | | | | | wart is incompatible with pledge, because suddenly a "dns" operation needs "getpw" access to ypbind/ypserv, etc. file + dns access is enough for everyone, sorry if you were using that old SunOS 4.x style mechanism, but it is now gone. ok semarie millert florian
* point to mount_mfs(8), not mfs(8);jmc2015-11-231-3/+3
|
* point to netintro(4) rather than (now removed) networking(4);jmc2015-11-212-6/+6
|
* Document that the status argument may be NULL; OK millert@tim2015-11-201-3/+4
|
* typo tcgetpgrp -> tcsetpgrptb2015-11-201-3/+3
| | | | ok mmcc@, yes... deraadt@
* mlinks for _shadowtedu2015-11-181-1/+2
|
* document the _shadow functionstedu2015-11-181-5/+17
|
* add a version field to prevent mayhem if different data gets storedtedu2015-11-181-3/+7
|
* update for new symbols and codetedu2015-11-183-3/+16
|
* Add icdb, the internal c database. A simpler replacement for the oldtedu2015-11-181-0/+367
| | | | Berzerkeley DB code.
* Add _shadow variants to the two popular getpw functions (uid and nam).tedu2015-11-182-15/+69
| | | | | | | | | This version of the function will always open the secure/shadow/master password files. Soon, the regular variants of these functions will not. (Intermixing shadow and regular gets a little weird; don't do that.) Not using struct spwd and getspwnam functions to reduce churn in callers. Should just be a one line diff in most places. ok deraadt
* rob pierce spotted a mistake left by jmcderaadt2015-11-181-3/+3
|
* change passwd caches to be 4-way "associative". still primitive, but atedu2015-11-171-24/+62
| | | | little better than winner take all caching.
* minor tweaks;jmc2015-11-162-4/+4
|
* Permit revoke(2) for a pledge "rpath tty"deraadt2015-11-161-2/+9
| | | | ok millert semarie tedu guenther
* Only perform revoke(2) on tty cdevs. Others paths return ENOTTY.deraadt2015-11-161-6/+13
| | | | ok millert semarie tedu guenther
* Tweak previous: rename it to fpround() to match FreeBSDguenther2015-11-151-11/+11
| | | | requested by kettenis@
* _towctrans_ext and _wctrans_init are now hidden; so drop them from the listguenther2015-11-151-2/+0
|
* I got a round tuit to rename round() to roundit() to avoid gcc warning.guenther2015-11-151-14/+14
| | | | ok deraadt@
* Split the non-syscall ASM bits from SYS.h into DEFS.h and use that in theguenther2015-11-1413-41/+80
| | | | | | non-syscall .S source ok millert@ miod@
* Give clear directions on how to declare, PROTO_*() and DEF_*() new symbolsguenther2015-11-141-0/+97
| | | | prodded by deraadt@
* update NAME section to include all documented functions,jmc2015-11-1029-104/+149
| | | | | | or otherwise change Dt to reflect the name of an existing function; feedback/ok schwarze
* Document tzsetwall(). OK schwarze@ jmc@millert2015-11-101-5/+26
|
* Split the intra-thread functionality from kill(2) into its own syscallguenther2015-11-107-12/+119
| | | | | | | | | | | | thrkill(2), rolling the kill(2) syscall number with the ABI change to avoid breaking binaries during during the transition. thrkill(2) includes a 'tcb' argument that eliminates the need for locking in pthread_kill() and simplifies pthread_cancel(). Switch __stack_smash_handler() to use thrkill(2) and explicitly unblock SIGABRT. Minor bump to both libc and libpthread: make sure you install a new kernel! ok semarie@
* libc.so can't be unloaded, so move the hidden atexit() and pthread_atfork()guenther2015-11-107-9/+77
| | | | | | | | | | | stubs for the executable from crtbegin.o into libc, which lets them be excluded from static links that don't use them. For this, drop the normal crt{begin,end}S.o from libc.so: the .init and .fini sections for libc aren't called at the right times anyway, so it's good that they're unused. libc.so just needs __guard_local and the .note.openbsd.ident section, so add them to stack_protector.c for now (this will be improved) "good time" deraadt@
* inet(4), not inet(3);jmc2015-11-081-3/+3
|
* add missing NAME entries;jmc2015-11-074-12/+29
|
* Remove needless comma.mmcc2015-11-061-3/+3
|
* Set the name server counter in __res_state correctly if a nameserverbluhm2015-11-051-2/+2
| | | | | from asr_ctx was skiped. Missed in previous commit. OK deraadt@
* After removing National Language Support (NLS) from base, stopbluhm2015-11-051-3/+2
| | | | | | | | creating the directory /usr/share/nls. Having a non-existing default path in catopen(3) does not make sense, so remove it. If the user does not specify a NLS path, better fail early than fail because of an empty directory. Remove path form hier(7). OK stsp@ schwarze@ jmc@
* When filling the __res_state compatibiliy struct, a long list ofbluhm2015-11-051-4/+8
| | | | | | | | nameservers could overflow the dns search pointers. Restrict the number, size and address family of nameservers in res_init(3). This fixes a crash in sendmail. Only programs that use the bind resolver internals directly are affected. OK deraadt@ millert@
* document the net.inet6.ip6.ifq variables in sysctl(3) as well, referring backsthen2015-11-051-2/+12
| | | | | to the 'struct ifqueue' description for net.inet.ip.ifq to reduce chance of them getting out of sync. ok logan, ok/tweak mikeb
* replace setbuf with setvbuf, from Frederic Nowaktedu2015-11-043-9/+9
|
* clean up HISTORY;jmc2015-11-041-6/+4
|
* Improve explanations throughoutderaadt2015-11-031-108/+79
|
* systrace should work nowtedu2015-11-031-8/+2
|
* kill 0 has worked for ages, no idea how the man page could be so innacurate so long; ok guentherderaadt2015-11-021-11/+2
|
* (struct timezone *)NULL -> NULLmmcc2015-11-021-3/+3
|
* (struct timezone *)0 -> NULLmmcc2015-11-021-2/+2
|
* replace "can not" with "cannot";jmc2015-11-011-3/+3
|
* delete old lint ARGSUSED commentsguenther2015-11-0123-73/+23
|