summaryrefslogtreecommitdiff
path: root/include
AgeCommit message (Collapse)Author
2017-11-04Revert recent changes to unbreak ports/net/sambaJeremie Courreges-Anglas
While it is not clear (to me) why that ports ends up with corrupted shared libs, reverting those changes fixes the issue and should allow us to close p2k17 more smoothly. Discussed with a bunch, ok ajacoutot@ guenther@
2017-10-28Change pthread_cleanup_{push,pop} to macros that store the cleanup infoPhilip Guenther
on the stack instead of mallocing the list and move the APIs from libpthread to libc so that they can be used inside libc. Note: the standard was explicitly written to permit/support this "macro with unmatched brace" style and it's what basically everyone else already does. We xor the info with random cookies with a random magic to detect/trip-up overwrites. Major bump to both libc and libpthread due to the API move. ok mpi@
2017-10-17<elf.h> should make it easier to port our ELF-related tools to other Unices.Martin Pieuchot
For the moment it only includes <sys/exec_elf.h> but the goal is to stop pulling it directly and also replace <elf_abi.h> at least for base applications. ok deraadt@, jasper@, naddy@
2017-10-15Move the thread-related .h files to /usr/src/include/, since thePhilip Guenther
implementation is now spread between libc and librthread. No changes to the content ok mpi@
2017-10-06Use the modern POSIX idiom "-exec ... {} +" instead of find|xargs andChristian Weisgerber
combine the two find(1) invocations into one. From Klemens Nanni; ok tb@
2017-09-10str[n]casecmp_l(3) appeared in POSIX 2008, not in XPG 4;Ingo Schwarze
phessler@ reported that this oversight broke an armv7 bulk build; OK guenther@
2017-09-05New POSIX xlocale implementation written from scratch.Ingo Schwarze
Complete in the sense that all POSIX *locale(3) and *_l(3) functions are included, but in OpenBSD, we of course only really care about LC_CTYPE and we only support ASCII and UTF-8. With important help from kettenis@, guenther@, and jca@. Repeated testing in ports bulk builds by naddy@. Additional testing by jca@, sebastia@, dcoppa@, and others. OK kettenis@ dcoppa@, and guenther@ on an earlier version. Riding guenther@'s libc/librthread major bump.
2017-08-10fix typo in commentPhilip Guenther
2017-08-10___errno (three underbars) is long gonePhilip Guenther
2017-05-11arc4random_buf should be bounded buffer, not bounded stringTom Cosgrove
ok millert@
2017-05-10Add bounded attribute to freezero(). OK tom@Todd C. Miller
2017-04-20Get TCB address using the RDHWR instruction instead of __get_tcb().Visa Hankala
This gives fast access to the address on systems that implement the UserLocal register. TCB caching is still used when running in the single-threaded mode in order not to penalize old systems. The kernel counterpart of this change must be in place before using this diff! With guenther@
2017-04-17Change build infrastructure to allow building both gcc and clang. ThisMark Kettenis
doesn't actually flip the switch yet, so aarch64 continues to be the only architecture for which we build clang. ok jsg@, deraadt@
2017-04-10Introducing freezero(3) a version of free that guarantees the processOtto Moerbeek
no longer has access to the content of a memmory object. It does this by either clearing (if the object memory remains cached) or by calling munmap(2). ok millert@, deraadt@, guenther@
2017-03-12<struct.h> is unused and should not be used. Delete it.Philip Guenther
ok millert@ deraadt@ kettenis@
2017-03-09As per style.9, prototypes should not have variable names associatedFrederic Cambus
with the types. OK jca@
2017-03-06Introducing recallocarray(3), a blend of calloc(3) and reallocarray(3)Otto Moerbeek
with the added feature that released memory is cleared. Much input from various developers. ok deraadt@ tom@
2017-02-04The macro versions of htonl et al don't require them, but POSIX saysPhilip Guenther
<arpa/inet.h> needs to provide uint16_t and uint32_t. ok millert@ krw@ naddy@
2017-02-04Move the typedefs for in_{addr,port}_t from <sys/types.h> toPhilip Guenther
<netinet/in.h> and <arpa/inet.h> ok and ports test naddy@ (thanks!) ok krw@ beck@ millert@
2017-01-27install libcxxabi and libcxx headers when COMPILER_VERSION is clangJonathan Gray
ok patrick@
2017-01-06Add max_align_t.Mark Kettenis
ok millert@
2016-11-12Kill the /usr/include/ssl symlinkJeremie Courreges-Anglas
Proposed some time ago by tedu@, builk build by ajacoutot@
2016-11-08Set owners and permissions only after all headers are installed. Add the -PTheo Buehler
flag to chown to change the symlinks themselves instead of their targets. Also change permissions of all symlinks, so they don't depend on the umask during make build. ok millert
2016-10-16Move libcrypto, librpcsvc and gnu/usr.bin/cc/include from RDIRS to PRDIRS,Theo Buehler
and add prereq targets, so some header files are generated by BUILDUSER during 'make prereq' instead of by root during 'make includes'. Switch the order of 'make cleandir' and 'make includes' during 'make build' so we don't generate many files twice. Except for some machine@ symlinks from ${MACHINE}/stand, /usr/obj is now clean from files generated by root during 'make build'. Those will be cleaned up in a second step. help, testing & ok deraadt, input from natano, further testing rpe
2016-09-23Unhook sqlite3.Stuart Henderson
2016-09-20Remove duplicated includes in stdlib.h and termios.hFrederic Cambus
OK guenther@
2016-09-20Add dl_unwind_find_exidx prototype.Mark Kettenis
ok guenther@
2016-09-12Don't declare select() in <unistd.h>Philip Guenther
ok deraadt@ millert@
2016-09-12Change the (unused) restimespec member of __res_state from a timespecPhilip Guenther
to a local equivalent to eliminate a dependency on <sys/time.h> being included ok deraadt@ millert@
2016-09-09Move the 10 (!) defintions of NULL to their own mini header file andTodd C. Miller
update the NULL definition for C++11. OK deraadt@ guenther@ kettenis@
2016-09-04Make the key sizes and offsets arrays const, ok teduNicholas Marriott
2016-09-04Add the usual header stuff (#ifdef _ICDB_H_ etc) to icdb.h, ok teduNicholas Marriott
2016-09-03i forgot to commit sha2.h changes for SHA512/256Ted Unangst
2016-08-27Pull in <sys/select.h> for fd_setPhilip Guenther
ok deraadt@
2016-05-30Stop publicly declaring _yp_dobind() and struct dom_binding, closing outPhilip Guenther
a rant Theo wrote 24 years ago. Mark __ypexclude_{add,is,free}() as hidden "get off my lawn!" deraadt@
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@