summaryrefslogtreecommitdiffstats
path: root/gnu/llvm/examples/ModuleMaker/ModuleMaker.cpp (unfollow)
Commit message (Collapse)AuthorFilesLines
2020-08-03remove another tautologybenno1-3/+2
from Ross L Richardson <openbsd AT rlr DOT id DOT au>, Thanks ok claudio@
2020-08-03remove unused assignmentbenno1-2/+2
from Ross L Richardson <openbsd AT rlr DOT id DOT au>, Thanks ok claudio@
2020-08-03remove tautological conditionbenno1-2/+2
from Ross L Richardson <openbsd AT rlr DOT id DOT au>, Thanks ok claudio@
2020-08-03remove dead assignmentsbenno1-6/+1
from Ross L Richardson <openbsd AT rlr DOT id DOT au>, Thanks ok claudio@
2020-08-03Put the code handling \} into a new function roff_cond_checkend()schwarze8-65/+159
and call that function not only from both places where copies existed - when processing text lines and when processing request/macro lines in conditional block scope - but also when closing a macro definition request, such that this construction works: .if n \{.de macroname macro content .. \} ignored arguments .macroname This fixes a bug reported by John Gardner <gardnerjohng at gmail dot com>. While here, avoid a confusing decrement of the line scope counter in roffnode_cleanscope() for conditional blocks that do not have line scope in the first place (no functional change for this part). Also improve validation of an internal invariant in roff_cblock() and polish some comments.
2020-08-03remove timeval conversion interfaces no longer in linuxjsg2-48/+2
2020-08-03put the descriptions of the different list types under subsection headings.dlg1-4/+4
it reads better to me. it might be worth considering this for queue(3) too.
2020-08-03document SMR_{SLIST,LIST,TAILQ}_ENTRY by copying queue(3) bits.dlg1-2/+18
2020-08-03add a missing a worddlg1-3/+3
2020-08-03libpcap is 9.0 now.dlg1-1/+1
pointed out by tb@, who also provided the diff. ok tb@ deraadt@
2020-08-03crank the major cos grammar.c has grown.dlg1-2/+2
pointed out by tb@, who also provided the diff. maybe someone should/could add a Symbols.list here? ok tb@ deraadt@
2020-08-03add "sample NUM" so you can ask to capture 1/NUM packets from a filter.dlg5-6/+33
the use of the sample keyword matches similar config in other products. NUM can be a number between 2 and 1048576, and is used to divide 0x100000000 into a threshold that is then compared against a randomly generated number produced by a load of BPF_RND. having sampling as part of the grammar means you can write things like "icmp or sample 128". this lets you capture all icmp traffic and a sample of the rest of the traffic. ok jmatthew@ kn@ tb@
2020-08-03add aliases for arm eabi long long shift functionsjsg3-0/+12
clang 10 on armv7 references these when building RAMDISK (-Oz) but not GENERIC (-O2). feedback and ok guenther@
2020-08-03add support for handling loads from BPF_RND.dlg7-10/+38
this adds "rnd" and "random" as keywords in the grammar, and handles them as an arithmetic operator. the decoder recognises the load, so tcpdump can print it as 'ld #random'. most of the handling is copied from the "len"/"length" keywoard handling that generates and decodes a load of the actual wire length of the packet. ok jmatthew@ tb@ kn@
2020-08-03add a BPF_RND load location that provides a random value.dlg2-2/+8
this will be used so a bpf filter can make a decision based on a random number, which in turn will be used so a filter can perform random sampling of packets rather than capturing all packets. random sampling means that we don't have to figure out how to make bpf coordinate multiple concurrent calls to do counter based sampling. BPF_RND is currently backed with arc4random. discussed with many including jmatthew@, alex wilson, claudio@, sthen@, deraadt@, and tb@ ok kn@ tb@ jmatthew@ i call this extended bpf... xBPF.
2020-08-03syncderaadt1-1/+1
2020-08-03ensure that certificate extensions are lexically sorted. Previouslydjm1-67/+85
if the user specified a custom extension then the everything would be in order except the custom ones. bz3198 ok dtucker markus
2020-08-03allow -A to explicitly enable agent forwarding in scp and sftp. Thedjm4-14/+30
default remains to not forward an agent, even when ssh_config enables it. ok jmc dtucker markus
2020-08-03clang -Wimplicit-fallthrough does not recognise /* FALLTHROUGH */deraadt1-2/+1
comments, which is the style we currently use, and gives too many boring warnings. ok djm
2020-08-03sync to upstream libcbor v0.7.0; some minor fixes, but a note majordjm45-101/+129
crank due to ABI change.
2020-08-03Split some code that gives clang10 heartburnderaadt1-2/+3
ok millert
2020-08-03clang10 identifies an argv[] comparison against '\0' instead of NULL,deraadt1-2/+2
it results in the same, but is incorrect. ok millert
2020-08-02missing {} identified by clang10deraadt1-4/+7
ok martijn
2020-08-02The difference between vgone(9) and vgonel(9) has changed after thetim1-11/+7
removal of the vnode interlock in 2007. Reported by and original diff from Dominik Schreilechner. OK jmc@
2020-08-02Squelch warning by using idiom from libc bcrypt(3)tb1-2/+2
Clang 10 warns about the expression sizeof(cdata) / sizeof(uint64_t) as cdata is an array of uint32_t and it expects that the intent of this is to compute the number of array elements. Use BCRYPT_WORDS / 2 instead. Same diff as millert's commit sys/lib/libsa/bcrypt_pbkdf.c -r1.2, which was ok kettenis. deraadt confirms that this satisfies clang 10.
2020-08-02additional files from libkern will be needed by clang10deraadt3-6/+6
2020-08-02additional files from libkern will be needed by clang10deraadt4-8/+9
from mortimer
2020-08-02Add missing rtable(4) check in rip6_input()kn1-1/+5
Copied over from sys/netinet/raw_ip.c:rip_input() where it appeared with initial support for multiple routing tables. This enforces separation between multiple raw sockets in different routing tables, i.e. one must not see packets from the other if the rtable differs. Observed with ping6(8)'s "-v" showing all ICMPv6 packets on its raw socket including those produced by another ping6 with "-V1". florian reported IPv6 route advertisments in one routing table appearing on raw sockets in other routing tables as well. OK claudio florian
2020-08-02Make iwx(4) match any AX200 device again.stsp1-12/+2
In case of AX201 we need to be careful about which devices are matched by the driver because devices with technical differences share the same PCI product ID. The driver must additionally match against a table of known PCI subsystem product IDs to identify an AX201 device correctly. For consistency, I wrote similar matching code for AX200 devices. This matches my AX200 device correctly but fails to recognize some other devices which were previously attached and working. Turns out the Linux driver seems to use AX200 subsystem product IDs merely for marketing purposes. It makes the operating system advertise some AX200 devices with distinct trademarked names. There are no technical differences that concern the driver and there is no exhaustive list of possible AX200 subsystem product IDs. So just match them all. Problem reported by Bobby Reynolds.
2020-08-02Check the return value of tls1_enc() in the write path.jsing2-6/+6
The write path can return a failure in the AEAD path and there is no reason not to check a return value. Spotted by tb@ during another review. ok tb@
2020-08-02Catch up sysctl_int.9 to the updated signaturegnezdo1-3/+3
OK kn@, "fine" deraadt@
2020-08-01Move range check inside sysctl_int_arrgnezdo13-127/+82
Range violations are now consistently reported as EOPNOTSUPP. Previously they were mixed with ENOPROTOOPT. OK kn@
2020-08-01Clean up/simplify more of the dtls1/ssl3 record writing code:jsing2-73/+34
- Make the DTLS code much more consistent with the ssl3 code. - Avoid assigning wr->input and wr->length just so they can be used as arguments to memcpy(). - Remove the arc4random_buf() call for the explicit IV, since tls1_enc() already does this for us. ok tb@
2020-08-01bump iwx;jmc1-3/+3
2020-08-01Pull record version selection code up and pass it as an argument tojsing1-15/+15
ssl3_create_record(). ok tb@
2020-08-01The iwm(4) 9560 is a CNVi device, not a regular M.2 device that will workstsp1-4/+6
on any platform. Mention this here, as done for AX201 in the iwx(4) page.
2020-08-01document AX201 support in iwx(4) man page; mention the AX201 firmware filestsp1-4/+7
2020-08-01Add support for AX201 devices to iwx(4).stsp3-39/+156
Matching firmware can be installed with fw_update(1). Align our device initialization sequence more closely to how Linux does it. We still use a different MSI-X configuration but register values written up to that point are now identical. patrick@ provided help with debugging several issues along way, thanks!
2020-08-01tweak previous; ok antonjmc1-6/+5
2020-08-01Replace hostname underscore with hyphen in appstest.shinoguchi1-28/+28
2020-08-01add kcov remote coverage testsanton2-29/+107
2020-08-01syncanton1-0/+1
2020-08-01Add support for remote coverage to kcov. Remote coverage is collectedanton9-20/+433
from threads other than the one currently having kcov enabled. A thread with kcov enabled occasionally delegates work to another thread, collecting coverage from such threads improves the ability of syzkaller to correlate side effects in the kernel caused by issuing a syscall. Remote coverage is divided into subsystems. The only supported subsystem right now collects coverage from scheduled tasks and timeouts on behalf of a kcov enabled thread. In order to make this work `struct task' and `struct timeout' must be extended with a new field keeping track of the process that scheduled the task/timeout. Both aforementioned structures have therefore increased with the size of a pointer on all architectures. The kernel API is documented in a new kcov_remote_register(9) manual. Remote coverage is also supported by kcov on NetBSD and Linux. ok mpi@
2020-08-01update currency exchange rates;jmc1-39/+39
2020-07-31Update Spleen kernel fonts to version 1.8.2, bringing the followingfcambus3-65/+65
improvements: - Fix size of the lower case 'ae' character in the 16x32 and 32x64 versions - Shorten parentheses, square brackets, braces, slash, backslash in the 8x16 version, fixing alignment issues - Shift vertical line and double vertical line characters one pixel up in the 8x16 version
2020-07-31In xhci_device_isoc_start() do first check if the transfer ismglocker1-8/+8
in-progress before we do check for the pipe being halted. This fixes some kind of race condition for isoc devices during device close when xp->halted gets set while usbd_start_next() still tries to dequeue in-progress transfers which will report 'usbd_start_next: error=13' (USBD_IOERROR). ok mpi@
2020-07-31Document that video(4) also supports kqueue(2) now.mglocker1-6/+8
ok mpi@
2020-07-31Skip making structure elements const, as it provides no benefit, andderaadt3-8/+8
it would require a pile of pointless de-const casts in the firmware construction code.
2020-07-31like amd64:deraadt1-3/+3
atapiscsi is not needed here. (well maybe it changes the behaviour of the pciide subsystem a tiny bit at attach-time, but we don't have the downstream cd(4) device to attach, so let's try without)
2020-07-31Use consistent types in comparison to fix build with clang 10.visa2-2/+2
Instead of just checking if *namep is NULL, also check if the string pointed by *namep is empty. This is probably the original intent of the code. OK kettenis@ jsg@ deraadt@