summaryrefslogtreecommitdiff
path: root/include
AgeCommit message (Collapse)Author
2016-05-23Stop supporting longjmperror(); it's not used, not portable, and the checksPhilip Guenther
longjmp performs can't really be relied upon, even after we got rid of the false positives... ok millert@ deraadt@
2016-05-23Remove iruserok(_sa)? and __ivaliduser(sa)?Philip Guenther
ok millert@ deraadt@
2016-05-09Remove sigreturn declaration and the now-unused libc syscall stubPhilip Guenther
2016-05-07remove dbm.hTed Unangst
2016-05-07Use a Thread Information Block in both single and multi-threaded programs.Philip Guenther
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@
2016-03-20Prepare for future ld.so/libc bump: update <tib.h> with the definitionsPhilip Guenther
that will be needed and make libpthread work when ld.so/libc.a provide an initial TIB.
2016-03-17Remove #ifdef __vax__ bitsJeremie Courreges-Anglas
ok deraadt@ tb@ (who had the same diff)
2016-03-16remove cpp version of __sputc, since the inline version is all we haveTheo de Raadt
ever used. ok jsg
2016-03-14Expose snprintf() and vsnprintf() for XPG 5. It predates C99 butTodd C. Miller
still specified snprintf() and vsnprintf() based on earlier drafts. Allows snprintf() and vsnprintf() to be used when _XOPEN_SOURCE is defined as 500. OK guenther@
2016-03-09We are done providing support for the vax.Theo de Raadt
lots of agreement.
2016-02-04Convert sigemptyset and sigfillset to inline functions to avoidTodd C. Miller
warnings with newer gcc versions and -Werror=unused-value. OK guenther@
2016-01-25Remove decls #if'0ed since rev. 1.1Jeremie Courreges-Anglas
POSIX used to specify those declarations, but later removed them. ok guenther@
2016-01-20After nearly 20 years of warning that malloc.h is obsolete, it's about time weJasper Lievisse Adriaanse
actually remove this header. It was originally added for ports, which is malloc.h-free now. additional ports bulk by aja@ ok bently@ dcoppa@ millert@ sthen@
2015-12-20Expose internal functions necessary to open audio devices and midiAlexandre Ratchov
ports using existing file descriptors.
2015-11-20POSIX says that ffs(), strcasecmp(), strncasecmp(), r?index() andTodd C. Miller
the b* byte functions belong in strings.h, not string.h so break them out of string.h into a new strings.h. As long as there is no POSIX or X/OPEN define in use string.h will pull in strings.h. OK naddy@ deraadt@
2015-11-18add a version field to prevent mayhem if different data gets storedTed Unangst
2015-11-18add icdb.h here (this header may go away entirely, but the functionsTed Unangst
need to live somewhere in the meantime.)
2015-11-18Add icdb, the internal c database. A simpler replacement for the oldTed Unangst
Berzerkeley DB code.
2015-11-18Add _shadow variants to the two popular getpw functions (uid and nam).Ted Unangst
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
2015-11-14libocurses can go to the Attic. last consumer of it was ramdisk more(1)Theo de Raadt
conceptual ok guenther millert nicm
2015-11-10Split the intra-thread functionality from kill(2) into its own syscallPhilip Guenther
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@
2015-10-17Move the last of the __DBINTERFACE_PRIVATE bits from <db.h> to libc's wrapperPhilip Guenther
and eliminate the now superfluous -D option ok kettenis@ millert@
2015-10-09tame -> pledge.Theo de Raadt
2015-09-28delete xdr_ypresp_all_seq prototypeTheo de Raadt
2015-09-27Stop installing any header files in /usr/include/dev/pci/drm.Mark Kettenis
Userland should get these from /usr/X11R6/include/libdrm. ok deraadt@ (and suggested by jsg@)
2015-09-25Trim symbols that aren't part of our new resolverPhilip Guenther
OK semarie@
2015-09-14Revert: finger slipPhilip Guenther
2015-09-14Prefer the standardized <poll.h> over <sys/poll.h>Philip Guenther
2015-09-13Wrap <rpc/*.h> so that calls go direct and the symbols are all weak.Philip Guenther
Hide __xprt_register() and _authenticate(); truncate <rpc/svc_auth.h> ok deraadt@
2015-09-13authdes_create() was never implementedPhilip Guenther
2015-09-10Hide netgroup internals inside libc. The parts that netgroup_mkdbTheo de Raadt
wants to use, well.... copy them there. ok guenther
2015-09-09Move to next tame() API. The flags are now passed as a very simple string,Theo de Raadt
which results in tame() code placements being much more recognizeable. tame() can be moved to unistd.h and does not need cpp symbols to turn the bits on and off. The resulting API is a bit unexpected, but simplifies the mapping to enabling bits in the kernel substantially. vague ok's from various including guenther doug semarie
2015-09-09Stop exporting from libc the <mpool.h> and the mpool_* APIPhilip Guenther
ports scan by sthen@
2015-09-05Use new framework for wrapping dbopen()Philip Guenther
Move internal declarations from <db.h> to libc's hidden/db.h ok kettenis@
2015-09-04These days pcc defines __GNUC__ and we don't support gcc2. Also neededDaniel Dickman
for upcoming CompCert port. Final version of the diff is from kettenis@ with input from jsg@ and tedu@. ok kettenis@, jsg@, "I agree" millert@
2015-08-31Add framework for resolving (pun intended) libc namespace issues, usingPhilip Guenther
wrapper .h files and asm labels to let internal calls resolve directly and not be overridable or use the PLT. Then, apply that framework to most of the functions in stdio.h, string.h, err.h, and wchar.h. Delete the should-have-been-hidden-all-along _v?(err|warn)[cx]? symbols while here. tests clean on i386, amd64, sparc64, powerpc, and mips64 naming feedback from kettenis@ and millert@ ok kettenis@
2015-08-27Use static and __{BEGIN,ENV}_HIDDEN_DECLS to hide a bunch of internalPhilip Guenther
symbols that are not longer exported. (This improves the generated code.) ok deraadt@
2015-08-26Hide many (194!) symbols that nothing should be using.Philip Guenther
Delete exect(2); it wasn't portable across archs and nothing used it. ports test build by naddy@ ok deraadt@ kettenis@
2015-07-23Build and install libradius as default.YASUOKA Masahiko
ok deraadt
2015-07-20Add VIS_DQ to escape double quotes. OK deraadt@ semarie@ reyk@Todd C. Miller
2015-07-19Define new C99 macros:Martynas Venckus
- MATH_ERRNO, MATH_ERREXCEPTION and math_errhandling - Optional FP_FAST_FMA{,F,L} macros if fma() executes as fast or faster than (x * y) + z; which in practice is achievable if gcc implements __FP_FAST_FMA{,F,L} Reported by John Marino @ DragonFlyBSD.
2015-07-14The first argument to devname(3) should be dev_t, not int.Todd C. Miller
The man page was already correct.
2015-05-20Remove function argument name from posix_spawnattr_getsigmask()Todd C. Miller
prototype to match other prototypes in the file. OK guenther@ deraadt@
2015-04-07Remove obsolete timezone() function.Todd C. Miller
Add timezone and daylight symbols for XSI compatibility.
2015-04-04gcc 2.x is deadPhilip Guenther
ok millert@
2015-03-17Remove obsolete copy of tzfile.h. It is an internal tzcode headerTodd C. Miller
that should never have been installed.
2015-03-17Eliminate use of TM_YEAR_BASE. OK guenther@ deraadt@ miod@Todd C. Miller
2015-03-15tzfile.h is an internal header that should never have been installed.Todd C. Miller
What's worse, the tzfile.h that gets installed is over 20 years old and doesn't match the real tzfile.h in libc/time. This makes the tree safe for /usr/include/tzfile.h removal. The TM_YEAR_BASE define has been moved to time.h temporarily until its usage is replaced by 1900 in the tree. Actual removal of tzfile.h is pending a ports build. Based on a diff from deraadt@
2015-02-20Use standard spelling for types, and rename local variable from "free".Ted Unangst
No actual change, but makes it easier to reuse the code elsewhere. Suggested by Andre Smagin
2015-02-18Make sure to replace an existing /usr/include/ssl symlink, otherwise repeatedStuart Henderson
builds will have a bogus /usr/include/openssl/openssl as found by naddy. ok jca@