Commit message (Collapse) | Author | Age | Files | Lines | ||
---|---|---|---|---|---|---|
... | ||||||
* | Add _shadow variants to the two popular getpw functions (uid and nam). | 2015-11-18 | 1 | -1/+3 | ||
| | | | | | | | | | 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 | |||||
* | Split the intra-thread functionality from kill(2) into its own syscall | 2015-11-10 | 1 | -1/+2 | ||
| | | | | | | | | | | | | 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() | 2015-11-10 | 2 | -2/+27 | ||
| | | | | | | | | | | | 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@ | |||||
* | Do not include a timestamp in the syslog message. There is no need -- | 2015-10-31 | 1 | -2/+2 | ||
| | | | | | | | | syslogd will fill it in immediately upon reception on the other side of sendsyslog(2). Our libc only talks to our syslogd, which will fix the timestamp before forwarding. syslog_r has done this for a long time already. ok tedu bluhm | |||||
* | Wrap the remaining math functions in libc: __fpclassify*(), __flt_rounds(), | 2015-10-27 | 2 | -0/+58 | ||
| | | | | | | and ldexp(). ok millert@ | |||||
* | Wrap waitpid() so calls go direct; weaken wait() and wait3(). | 2015-10-25 | 1 | -0/+28 | ||
| | | | | Strip out unnecessary #includes and use NULL instead of (struct rusage *)0 | |||||
* | Hide __atexit and __atexit_register_cleanup() | 2015-10-25 | 1 | -1/+2 | ||
| | | | | | | | | Wrap __cxa_{atexit,finalize}() so the call from exit() goes direct Switch regress/lib/libc/atexit/ to be built with -static so that it can still access __atexit* ok millert@ jca@ | |||||
* | Use sigaction() instead of signal() to avoid pulling in unnecessary | 2015-10-25 | 1 | -2/+2 | ||
| | | | | | | | wrappers. To keep uses from crawling back in, mark signal() as deprecated inside libc. ok deraadt@ | |||||
* | Switch if_nameindex(3) to use the new NET_RT_IFNAMES sysctl to get the | 2015-10-23 | 1 | -3/+3 | ||
| | | | | | | | | list of interface names. At the same time switch if_nametoindex(3) and if_indextoname(3) to use if_nameindex(3) instead of getifaddrs(3). if_nameindex(3) exposes much less then getifaddrs(3) and is allowed by pledge(2). With and OK deraadt@ | |||||
* | Merge the sigaction() and sigprocmask() overloads/wrappers from libpthread | 2015-10-23 | 1 | -5/+5 | ||
| | | | | | | | | | into libc, and move pthread_sigmask() as well (just a trivial wrapper). This provides consistent handling of SIGTHR between single- and multi-threaded programs and is a step in the merge of all the libpthread overloads, providing some ASM and Makefile bits that the other wrappers will need. ok deraadt@ millert@ | |||||
* | Remove dnssocket() and dnsconnect(), since we decided to use a SOCK_DNS | 2015-10-23 | 1 | -7/+1 | ||
| | | | | | flag instead. ok guenther tedu semarie | |||||
* | better placement for dnssocket/dnsconnect | 2015-10-18 | 2 | -8/+8 | ||
| | ||||||
* | create libc stubs for dnssocket() and dnsconnect() | 2015-10-18 | 1 | -1/+7 | ||
| | ||||||
* | Move the last of the __DBINTERFACE_PRIVATE bits from <db.h> to libc's wrapper | 2015-10-17 | 1 | -1/+49 | ||
| | | | | | | and eliminate the now superfluous -D option ok kettenis@ millert@ | |||||
* | PROTO_NORMAL for pledge(); ok guenther | 2015-10-17 | 1 | -1/+2 | ||
| | ||||||
* | Wrap <resolv.h> so that internal calls go direct | 2015-10-05 | 1 | -0/+46 | ||
| | | | | ok millert@ | |||||
* | Wrap <search.h> to make all the symbols there weak | 2015-10-04 | 1 | -0/+35 | ||
| | ||||||
* | Wrap <spawn.h> to make all the symbols there weak | 2015-10-04 | 1 | -0/+45 | ||
| | ||||||
* | recv() and send() aren't overriden by libpthread (vs recvfrom() and sendto()!) | 2015-10-04 | 1 | -1/+3 | ||
| | | | | so wrap them to make internal calls go direct | |||||
* | getpeereid() and sockatmark() are neither used in libc nor in ISO C, so mark | 2015-10-04 | 1 | -1/+3 | ||
| | | | | them deprecated and weak | |||||
* | Don't wrap initialized variables: binutils appears to be mishandling them | 2015-09-19 | 7 | -8/+20 | ||
| | | | | | | on arm and m88k problems with optind observed by jsg@ | |||||
* | Wrap <langinfo.h> and <regexp.h> so internal calls go direct and | 2015-09-14 | 2 | -0/+53 | ||
| | | | | the symbols are weak | |||||
* | Wrap <locale.h> so internal calls go direct | 2015-09-14 | 1 | -0/+26 | ||
| | ||||||
* | Wrap <sys/sem.h> so internal calls go direct and all the symbols are weak | 2015-09-14 | 1 | -0/+28 | ||
| | ||||||
* | Wrap <asr.h> so internal calls go direct and all the symbols are weak | 2015-09-14 | 1 | -0/+38 | ||
| | ||||||
* | Wrap <ifaddrs.h>, <netinet/in.h>, and <netinet/if_ether.h> so internal | 2015-09-14 | 3 | -0/+101 | ||
| | | | | calls go direct and all the symbols are weak | |||||
* | Wrap <net/if.h> and <net/if_dl.h> so internal calls go direct and all the | 2015-09-14 | 2 | -0/+53 | ||
| | | | | symbols are weak | |||||
* | Wrap <readpassphrase.h> so internal calls go direct and readpassphrase is weak | 2015-09-14 | 1 | -0/+25 | ||
| | ||||||
* | Wrap <netgroup.h> so internal calls go direct and the symbols are all weak | 2015-09-14 | 1 | -0/+28 | ||
| | ||||||
* | Make isfdtype() and getmntinfo() weak symbols | 2015-09-14 | 2 | -2/+4 | ||
| | ||||||
* | Use PROTO_DEPRECATED() make tcdrain() weak in libc, to guarantee libpthread | 2015-09-14 | 1 | -2/+2 | ||
| | | | | can override it | |||||
* | Finish wrapping <netdb.h> so that calls go direct and the symbols are all weak | 2015-09-14 | 1 | -1/+41 | ||
| | ||||||
* | Wrap <arpa/inet.h> and <arpa/nameser.h> so that calls go direct and the | 2015-09-13 | 2 | -0/+62 | ||
| | | | | symbols without underbar prefix are all weak | |||||
* | Wrap <fstab.h> so that calls go direct and the symbols are all weak | 2015-09-13 | 1 | -0/+29 | ||
| | | | | (Do you sense a theme?) | |||||
* | Wrap <rpcsvc/ypclnt.h> so that calls go direct and the symbols are all weak | 2015-09-13 | 1 | -0/+37 | ||
| | ||||||
* | Wrap <sys/sysctl.h> so that calls go direct and the symbol is weak | 2015-09-13 | 1 | -0/+25 | ||
| | ||||||
* | For now, permit overriding of the malloc family, to make emacs happy | 2015-09-13 | 1 | -6/+6 | ||
| | ||||||
* | Wrap <login_cap.h> so that calls go direct and the symbols are all weak | 2015-09-13 | 1 | -0/+35 | ||
| | ||||||
* | Wrap <rpc/*.h> so that calls go direct and the symbols are all weak. | 2015-09-13 | 11 | -0/+384 | ||
| | | | | | | Hide __xprt_register() and _authenticate(); truncate <rpc/svc_auth.h> ok deraadt@ | |||||
* | Wrap <pwd.h> so that calls go direct and the symbols are all weak. | 2015-09-13 | 1 | -0/+43 | ||
| | | | | Hide bcrypt_autorounds(), prefixing with an underbar for static builds. | |||||
* | Overshot w/PROTO_DEPRECATED: seed48_deterministic() is used internally | 2015-09-13 | 1 | -2/+2 | ||
| | ||||||
* | Make softfloat's internal float_raise also available under a hidden, internal | 2015-09-13 | 1 | -0/+11 | ||
| | | | | | | | name, so that local references to it do not need to go through the plt. (this routine is used by libm and thus can't be made internal to libc) help and ok guenther@ | |||||
* | Wrap <grp.h> so that calls go direct and the symbols are all weak. | 2015-09-13 | 1 | -0/+37 | ||
| | ||||||
* | Wrap <termios.h> so that calls go direct and the symbols are all weak. | 2015-09-13 | 1 | -0/+37 | ||
| | ||||||
* | Wrap <ttyent.h> so that calls go direct and the symbols are all weak. | 2015-09-13 | 1 | -0/+28 | ||
| | ||||||
* | Wrap <utime.h> to make utime() a weak symbol | 2015-09-13 | 1 | -0/+25 | ||
| | ||||||
* | Wrap <ctype.h> and <wctype.h> so that calls go direct and the symbols not | 2015-09-13 | 2 | -0/+88 | ||
| | | | | | in standard C are all weak. Hide several symbols internal to the implementation | |||||
* | Wrap <uuid.h> so that calls go direct and the symbols are all weak | 2015-09-13 | 1 | -0/+36 | ||
| | ||||||
* | Wrap <vis.h> so that calls go direct and the symbols are all weak | 2015-09-13 | 1 | -0/+32 | ||
| | ||||||
* | namespace.h is pulled in via -include, so don't do it here | 2015-09-13 | 1 | -2/+1 | ||
| |