summaryrefslogtreecommitdiffstats
path: root/gnu/llvm/examples/ModuleMaker/ModuleMaker.cpp (unfollow)
Commit message (Collapse)AuthorFilesLines
2017-01-24Use prime256v1 for tests unless otherwise specified.jsing1-4/+0
2017-01-24vmctl start -k is optional; also emphasise it specifies a path on the hostprocter1-4/+4
ok mlarkin@
2017-01-24In accept(2) and accept4(2) allocate a new file descriptor beforempi1-41/+30
checking if the socket head's queue is empty and possibly sleeping. This way we avoid lock ordering problems as the NET_LOCK() and fdplock() won't be held at the same time. Note that socketpair(2) and close(2) are the two remaining syscalls holding these locks at the same time. They both respect the same order: fdplock() then NET_LOCK(). Initial deadlock reported by kettenis@ and ajacoutot@. ok bluhm@, guenther@, deraadt@
2017-01-24Display process group in "ps /w" since they got removed from "ps /n".mpi2-11/+13
While here fix the formating of /w /o and /a. ok guenther@
2017-01-24There are two u-boot targets which should work with the sabre litejsg2-5/+5
boards. mx6qsabrelite (which sets fdt_addr) and nitrogen6q (which sets fdtaddr). The difference seems to be the mx6qsabrelite target uses a small loader in SPI connected flash which will load the rest of u-boot from an SD card. The nitrogen6q target normally loads all of u-boot from an image in flash and then searches for a 6x_bootscript file with u-boot commands on MMC and SATA. While neither of them supports "Generic Distro Configuration" which would automatically search for an EFI image, if they did fdt_addr is intended to be used for a DTB in ROM, while fdt_addr_r is intended to be used for a DTB in RAM. Change the 6x_bootscript u-boot commands to load the DTB to fdtaddr instead of fdt_addr as matthieu@ reported fdt_addr was not present in the u-boot environment on his system.
2017-01-24Display the thread ID (TID) rather than the process group ID (PGRP)mpi2-12/+17
in ddb(4)'s default 'ps' view. This allow to use 'tr /p' easily now that it requires a TID. With inputs from guenther@
2017-01-24when we lose link, do not delete entries that have the RTF_BFD flag setphessler1-2/+2
OK mpi@
2017-01-24sync log.c from relayd et al to ospfd.benno7-70/+116
there is still a little difference regarding handling of the verbosity value that will be handled later. ok claudio@
2017-01-24sync log.c from relayd et al to bgpd.benno24-112/+149
there is still a little difference regarding handling of the verbosity value that will be handled later. ok claudio@ florian@
2017-01-24Track a per-fd flag UF_PLEDGED. This indicates the initial open was done by aderaadt3-5/+16
pledged process. dup(2) and recvmsg(2) retain UF_PLEDGED from the original fd. In pledge "exec" circumstances, exceve clears UF_PLEDGED on all the process's fds. In a pledge'd process, ioctl(2) can use this additional information to grant access to ioctl's which are more sensitive or dive deeply into the kernel. Developers will be encouraged to open such sensitive resources before calling pledge(2), rather than afterwards. That matches the heading of privsep development practices. Future changes will introduce those ioctl(2) changes. Lots of discussions with semarie guenther and benno.
2017-01-24add support for multiple transmit ifqueues per network interface.dlg17-160/+305
an ifq to transmit a packet is picked by the current traffic conditioner (ie, priq or hfsc) by providing an index into an array of ifqs. by default interfaces get a single ifq but can ask for more using if_attach_queues(). the vast majority of our drivers still think there's a 1:1 mapping between interfaces and transmit queues, so their if_start routines take an ifnet pointer instead of a pointer to the ifqueue struct. instead of changing all the drivers in the tree, drivers can opt into using an if_qstart routine and setting the IFXF_MPSAFE flag. the stack provides a compatability wrapper from the new if_qstart handler to the previous if_start handlers if IFXF_MPSAFE isnt set. enabling hfsc on an interface configures it to transmit everything through the first ifq. any other ifqs are left configured as priq, but unused, when hfsc is enabled. getting this in now so everyone can kick the tyres. ok mpi@ visa@ (who provided some tweaks for cnmac).
2017-01-24only send the rt msg on timeout failure if bfd is not downphessler1-3/+5
2017-01-24Fix typo in brainpool curve name within a comment.jsing1-2/+2
2017-01-24syncderaadt1-1/+1
2017-01-24Modernize and unify test idioms for the sake of readability andtb1-9/+8
consistency. Done jointly with rpe. ok deraadt, phessler, rpe; also looks good to guenther despite a slight change in semantics
2017-01-24Add /etc/installurl to changelist.ajacoutot1-1/+2
ok deraadt@ rpe@
2017-01-24There is no point returning then breaking...jsing1-2/+1
2017-01-24Zap a "true ;" that is there for no good reason.tb1-2/+1
discussed with ajacoutot
2017-01-24unifdef OPENSSL_NO_BIO - we do not support this in any form.jsing1-15/+1
ok beck@
2017-01-24move setting the IP TOS from the listening socket to the sending socketphessler1-12/+12
2017-01-24Unbreak $ORIGIN support when only one of DT_RUNPATH and DT_RPATH is usedguenther1-5/+7
2017-01-24Use header <sys/atomic.h> rather than <machine/atomic.h> in MI code.visa5-10/+10
OK mpi@ deraadt@
2017-01-24Introduce ticket support. To enable them it is enough to set a positiveclaudio6-14/+251
lifetime with tls_config_set_session_lifetime(). This enables tickets and uses an internal automatic rekeying mode for the ticket keys. If multiple processes are involved the following functions can be used to make tickets work accross all instances: - tls_config_set_session_id() sets the session identifier - tls_config_add_ticket_key() adds an encryption and authentication key For now only the last 4 keys added will be used (unless they are too old). If tls_config_add_ticket_key() is used the caller must ensure to add new keys regularly. It is best to do this 4 times per session lifetime (which is also the ticket key lifetime). Since tickets break PFS it is best to minimize the session lifetime according to needs. With a lot of help, input and OK beck@, jsing@
2017-01-24ssl_cert_free() checks for NULL itself.jsing1-10/+5
2017-01-24Remove a "free up if allocated" comment that exists before code that freesjsing1-2/+1
things if they are allocated. ok captainobvious@
2017-01-24sk_SSL_CIPHER_free() checks for NULL so do not bother doing the same fromjsing4-27/+16
the callers.
2017-01-24Fix passing &_DYNAMIC to _dl_boot_bind; makes -static -pie work.kettenis1-2/+3
2017-01-24ssl_sess_cert_free() checks for NULL, so do not bother doing it at thejsing2-6/+8
call sites.
2017-01-24There is no point in zeroing fields that exist within a struct that isjsing1-3/+1
about to be explicit_bzero'd and freed.
2017-01-24Add missing documentation for tls_config_set_verify_depthclaudio1-1/+5
Done together with jsing@
2017-01-24Whitespace.ajacoutot1-3/+3
2017-01-24The /p modifier now takes a TID, while here add a missing argumentmpi1-5/+5
for 'show all procs'. ok guenther@
2017-01-24Rename pfind(9) into tfind(9) to reflect that it deals with threads.mpi14-41/+46
While here document prfind(9. with and ok guenther@
2017-01-24Fix typo in variable name.bluhm5-5/+5
2017-01-24Shuffle the deck chairs to bring them back in order.claudio1-9/+9
2017-01-24remove unused junk definitionsderaadt1-6/+1
2017-01-24Introduce rt_report() a function that generates a route message from anclaudio1-97/+114
rt_entry. Use this function in the success case of all route commands. Reduce the goto madness in route_output and make the code hopefully a bit easier to read and work with. OK mpi@ bluhm@
2017-01-24tls_config_add_keypair_mem is the function to add additional keypairs andclaudio1-5/+5
ocsp_staple functions set the OCSP response they don't add them (which implies you can call them multiple times). Discussed with jsing@ beck@
2017-01-23Interpolate a 'make cleandir' if KEEPKERNELS is set to a non-empty string,tb1-4/+6
right before building kernels. This should unbreak 'make release' for people having this setting. ok deraadt
2017-01-23File descriptor passing internalizes fd's into an mbuf-stored array ofderaadt2-33/+44
struct file *, and then externalizes back to fd upon delivery. Convert storage to array of struct fdpass, containing struct file * (and soon something else). memcpy originally intended for alignment purposes can be removed because CMSG_ALIGN is _ALIGN. There is some anxiety over changing this code, but it reads easier. ok mpi guenther kettenis
2017-01-23Mission accomplished, bgpctl is now fatal free.claudio1-32/+1
2017-01-23Kill the timer.c reacharound it is not needed.claudio1-2/+2
2017-01-23cleanup log* functions that break with bgpd reacharoundbenno1-22/+15
ok claudio@
2017-01-23Make util.c fatal() free by allowing undefined behaviour in prefix_compare.claudio1-6/+8
If you pass in crap then you will not get gold back.
2017-01-23Allocate all memory chunks, and potentially sleeping, before freeingmpi1-6/+11
the old array of open files. Fix a race for multi-threaded processes reported by cheeky.m@gmx.com on bugs@ and analyzed with bluhm@. ok deraadt@, bluhm@
2017-01-23For testing http redirect unset http_proxy, not ftp_proxy.bluhm1-2/+2
2017-01-23Rename rib pointer in struct prefix to re since it points to a rib_entry.claudio3-21/+21
While there also remove a comment that is since a few years at least. OK gcc
2017-01-23Introduce a struct rib sitting between struct rib_desc and struct rib_tree.claudio4-66/+77
This way the tree becomes a bit better decoupled.
2017-01-23enable bcmdog on armv7 as welljsg2-2/+4
2017-01-23move default_passwd_cb and default_passwd_cb_userdata back intobeck4-30/+35
the ssl_ctx from internal - these are used directly by python and openvpn and a few other things - we have the set accessors but the get accessors were added in 1.1 and these roll their own caveat OPENSSL_VERSION chickenpluckery