summaryrefslogtreecommitdiffstats
path: root/include (follow)
Commit message (Collapse)AuthorAgeFilesLines
...
* arc4random_buf should be bounded buffer, not bounded stringtom2017-05-111-2/+2
| | | | ok millert@
* Add bounded attribute to freezero(). OK tom@millert2017-05-101-2/+3
|
* Get TCB address using the RDHWR instruction instead of __get_tcb().visa2017-04-201-5/+3
| | | | | | | | | | | 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@
* Change build infrastructure to allow building both gcc and clang. Thiskettenis2017-04-171-4/+6
| | | | | | | doesn't actually flip the switch yet, so aarch64 continues to be the only architecture for which we build clang. ok jsg@, deraadt@
* Introducing freezero(3) a version of free that guarantees the processotto2017-04-101-1/+2
| | | | | | 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@
* <struct.h> is unused and should not be used. Delete it.guenther2017-03-122-52/+2
| | | | ok millert@ deraadt@ kettenis@
* As per style.9, prototypes should not have variable names associatedfcambus2017-03-093-8/+8
| | | | | | with the types. OK jca@
* Introducing recallocarray(3), a blend of calloc(3) and reallocarray(3)otto2017-03-061-1/+2
| | | | | with the added feature that released memory is cleared. Much input from various developers. ok deraadt@ tom@
* The macro versions of htonl et al don't require them, but POSIX saysguenther2017-02-041-1/+11
| | | | | | <arpa/inet.h> needs to provide uint16_t and uint32_t. ok millert@ krw@ naddy@
* Move the typedefs for in_{addr,port}_t from <sys/types.h> toguenther2017-02-041-3/+18
| | | | | | | <netinet/in.h> and <arpa/inet.h> ok and ports test naddy@ (thanks!) ok krw@ beck@ millert@
* install libcxxabi and libcxx headers when COMPILER_VERSION is clangjsg2017-01-271-2/+4
| | | | ok patrick@
* Add max_align_t.kettenis2017-01-061-1/+11
| | | | ok millert@
* Kill the /usr/include/ssl symlinkjca2016-11-121-2/+1
| | | | Proposed some time ago by tedu@, builk build by ajacoutot@
* Set owners and permissions only after all headers are installed. Add the -Ptb2016-11-081-6/+6
| | | | | | | | 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
* Move libcrypto, librpcsvc and gnu/usr.bin/cc/include from RDIRS to PRDIRS,tb2016-10-161-6/+5
| | | | | | | | | | | | | | 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
* Unhook sqlite3.sthen2016-09-231-4/+4
|
* Remove duplicated includes in stdlib.h and termios.hfcambus2016-09-201-3/+1
| | | | OK guenther@
* Add dl_unwind_find_exidx prototype.kettenis2016-09-201-1/+2
| | | | ok guenther@
* Don't declare select() in <unistd.h>guenther2016-09-121-6/+1
| | | | ok deraadt@ millert@
* Change the (unused) restimespec member of __res_state from a timespecguenther2016-09-121-2/+2
| | | | | | | to a local equivalent to eliminate a dependency on <sys/time.h> being included ok deraadt@ millert@
* Move the 10 (!) defintions of NULL to their own mini header file andmillert2016-09-099-100/+19
| | | | update the NULL definition for C++11. OK deraadt@ guenther@ kettenis@
* Make the key sizes and offsets arrays const, ok tedunicm2016-09-041-2/+2
|
* Add the usual header stuff (#ifdef _ICDB_H_ etc) to icdb.h, ok tedunicm2016-09-041-2/+12
|
* i forgot to commit sha2.h changes for SHA512/256tedu2016-09-031-1/+21
|
* Pull in <sys/select.h> for fd_setguenther2016-08-271-1/+2
| | | | ok deraadt@
* Stop publicly declaring _yp_dobind() and struct dom_binding, closing outguenther2016-05-302-27/+2
| | | | | | a rant Theo wrote 24 years ago. Mark __ypexclude_{add,is,free}() as hidden "get off my lawn!" deraadt@
* Stop supporting longjmperror(); it's not used, not portable, and the checksguenther2016-05-231-2/+1
| | | | | | | longjmp performs can't really be relied upon, even after we got rid of the false positives... ok millert@ deraadt@
* Remove iruserok(_sa)? and __ivaliduser(sa)?guenther2016-05-231-3/+1
| | | | ok millert@ deraadt@
* Remove sigreturn declaration and the now-unused libc syscall stubguenther2016-05-091-2/+1
|
* remove dbm.htedu2016-05-072-36/+2
|
* Use a Thread Information Block in both single and multi-threaded programs.guenther2016-05-072-49/+54
| | | | | | | | | | | | | | | | | 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@
* Prepare for future ld.so/libc bump: update <tib.h> with the definitionsguenther2016-03-201-39/+36
| | | | | that will be needed and make libpthread work when ld.so/libc.a provide an initial TIB.
* Remove #ifdef __vax__ bitsjca2016-03-171-22/+7
| | | | ok deraadt@ tb@ (who had the same diff)
* remove cpp version of __sputc, since the inline version is all we havederaadt2016-03-161-15/+1
| | | | | ever used. ok jsg
* Expose snprintf() and vsnprintf() for XPG 5. It predates C99 butmillert2016-03-141-6/+9
| | | | | | 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@
* We are done providing support for the vax.deraadt2016-03-091-16/+9
| | | | lots of agreement.
* Convert sigemptyset and sigfillset to inline functions to avoidmillert2016-02-041-8/+20
| | | | | warnings with newer gcc versions and -Werror=unused-value. OK guenther@
* Remove decls #if'0ed since rev. 1.1jca2016-01-251-9/+1
| | | | | | POSIX used to specify those declarations, but later removed them. ok guenther@
* After nearly 20 years of warning that malloc.h is obsolete, it's about time wejasper2016-01-202-8/+2
| | | | | | | | 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@
* Expose internal functions necessary to open audio devices and midiratchov2015-12-201-1/+6
| | | | ports using existing file descriptors.
* POSIX says that ffs(), strcasecmp(), strncasecmp(), r?index() andmillert2015-11-202-18/+49
| | | | | | | 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@
* add a version field to prevent mayhem if different data gets storedtedu2015-11-181-3/+3
|
* add icdb.h here (this header may go away entirely, but the functionstedu2015-11-181-2/+2
| | | | need to live somewhere in the meantime.)
* Add icdb, the internal c database. A simpler replacement for the oldtedu2015-11-181-0/+34
| | | | Berzerkeley DB code.
* Add _shadow variants to the two popular getpw functions (uid and nam).tedu2015-11-181-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
* libocurses can go to the Attic. last consumer of it was ramdisk more(1)deraadt2015-11-142-7/+3
| | | | conceptual ok guenther millert nicm
* Split the intra-thread functionality from kill(2) into its own syscallguenther2015-11-101-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@
* Move the last of the __DBINTERFACE_PRIVATE bits from <db.h> to libc's wrapperguenther2015-10-171-51/+1
| | | | | | and eliminate the now superfluous -D option ok kettenis@ millert@
* tame -> pledge.deraadt2015-10-091-2/+2
|
* delete xdr_ypresp_all_seq prototypederaadt2015-09-281-2/+1
|