summaryrefslogtreecommitdiffstats
path: root/lib/libc/stdlib/recallocarray.c (unfollow)
Commit message (Collapse)AuthorFilesLines
2019-01-10"AF_* values are *almost* always the correct choice, particularly withkrw2-15/+15
POSIX APIs". Also sprach guenther@. So switch PF_ROUTE to AF_ROUTE in socket() and setsockopt() calls. Keep PF_ROUTE in sysctl(2) uses. adding a comment for future visitors, Also replace PF_UNSPEC with 0 in socketpair(), as socketpair(2) points out this is the only sensible value. Cluebat from and ok guenther@
2019-01-10Revert back previous commit and stop including strings.hmestre2-9/+7
Use memset(3) instead of bzero(3) since POSIX recommends using the former and because it's also more portable (conforms to ANSI C standard) OK tedu@ tb@
2019-01-10change order of pledge(2) promises to the canonical form.mestre1-1/+1
while here also use NULL as its second argument, instead of "", like it's done everywhere else in the tree. OK florian@
2019-01-10unbound-anchor needs to talk to the internet and write to the trustflorian1-0/+26
anchor file (create it if it doesn't exist). pledge & unveil accordingly OK sthen
2019-01-10report errno in debug logs and other minor cleanups.eric1-27/+29
ok gilles@
2019-01-10After years of gnashing of teeth, i finally found a way to avoidschwarze2-15/+8
having to write empty list elements for non-compact .Bl -tag lists: 1. Add margin-bottom to the <dd>. Note that margin-top on the <dt> doesn't work because it would put a short <dt> lower than the <dd>; margin-bottom on the <dt> doesn't work because it would put vertical space before the <dd> for a long <dt>; and margin-top on the <dd> doesn't work because it would put a short <dt> higher than the <dd>. Only margin-bottom on the <dd> has none of these adverse effects. 2. Of course, margin-bottom on the <dd> fails to take care of the vertical spacing before the first list element, so implement that separately by margin-top on the <dl>. 3. For .Bl -tag -compact, reset both to zero.
2019-01-10Initializers for file-scope static variables should be compile-timeschwarze2-4/+5
constants, and while stderr is a compile-time constant in OpenBSD, Kelvin Sherlock <ksherlock at gmail dot com> reports that it isn't on some other systems, for example on FreeBSD or Linux. So do the initialization by calling mandoc_msg_setoutfile() from main() instead.
2019-01-10Use efifb_stolen() to prevent radeondrm from using aperture memoryjsg1-1/+16
overlapping the framebuffer. Prompted by ring tests failing. Diagnosed, fix suggested by and ok kettenis@
2019-01-10add efifb_stolen() to get the size of the efifb framebufferjsg2-2/+11
suggested by and ok kettenis@
2019-01-10Drop dead links to loria.fr and cvshome.orgjca5-54/+0
Pointed out by Matteo Niccoli, ok bluhm@ sthen@
2019-01-09Printing hex values with right adjustment makes it easier to comparebluhm1-2/+2
corresponding digits. So the change the ddb x/x output. OK sashan@ deraadt@ visa@ mpi@
2019-01-09Delay keyword expansion in co until after the locks have been resolved.joris1-39/+40
This way the expansion can happen with the correct values and files do not show up as modified.
2019-01-09When expanding $Log$ make sure a newline is added if rd_log has none.joris1-1/+5
This can happen on new RCS files. Fixes $Log$ keyword expansion.
2019-01-09Make sure rcs_lock_add() and rcs_lock_remove() properly update thejoris1-1/+19
rd_lock member of the matching delta. Other keyword substitution will not properly work in cases where the RCS file did not have a lock for the revision yet or if the lock is being removed.
2019-01-09Use PF_ROUTE consistently rather than tossing inkrw1-5/+5
a couple of AF_ROUTE.
2019-01-09Use static consistently with definitions of functions that have beenvisa3-8/+8
declared static. OK guenther@
2019-01-09Eliminate an else branch from m_extunref().visa1-4/+4
OK millert@ bluhm@
2019-01-09Make arm64 efiboot can boot from partitions other than "a".yasuoka3-8/+12
ok kettenis
2019-01-09Include strings.h for bzero in usr.bin/ncinoguchi2-2/+4
bzero is defined in strings.h. ok deraadt@
2019-01-09free(9) sizes.mpi2-7/+7
ok visa@
2019-01-09No need to call usbd_fill_deviceinfo() from a task, it doesn't generate I/O.mpi1-38/+2
ok visa@
2019-01-09Enable Spleen in wsfont and modify the font selection logic at runtimefcambus2-19/+44
in rasops(9) to allow selecting larger fonts when available. Summary of the changes: - Enable spleen8x16 for all architectures, replacing bold8x16_iso1. - Enable spleen12x24 on all arches but sparc64, replacing gallant12x22. - Enable spleen16x32 and spleen32x64 on amd64, i386, and arm64 for GENERIC kernels. - Modify the font selection logic in rasops(9) so the 16x32 and 32x64 fonts are selected if at least 120 columns can be displayed. Screens with widths equal or larger than 1920px will use the 16x32 font, and screens with widths equal or larger than 3840px the 32x64 one. OK kettenis@, ratchov@, deraadt@
2019-01-09make spelling in previous consistent within the page;jmc1-3/+3
2019-01-09implement an if_enqueue handler for vlan(4)dlg1-53/+85
this allows vlan packets to bypass the ifq handling, which allows packets to be encapsulated concurrently by any context. the code falls back to ifqs if hfsc is enabled on the vlan interface, otherwise it encaps the packet immedate and enqueues it on the parent interface. hrove popovski has seen a performance bump in certain configurations from this change. ok mpi@ no objections claudio@
2019-01-09split if_enqueue up so drivers can replace ifq handling if neededdlg2-12/+28
if_enqueue() still makes sure packets get handled by pf on the way out, and seen by bridge if needed. however instead of falling through to ifq mapping and output, it now calls a function pointer in the ifnet struct. that pointer defaults to the ifq handling, but drivers can override it to bypass ifq processing. the most obvious users of the function pointer will be virtual interfaces, eg, vlan(4). ifqs are good if you need to serialise access to the thing that transmits packets (like hardware rings on nics), or mitigate the number of times you do ring processing, but neither of those things are desirable on vlan interfaces. ideally vlan could transmit on any cpu without having packets serialised by it's own ifq before being pushed down to an arbitrary number of rings on the parent interface. bypassing ifqs means the driver can push the vlan tag on concurrently and push down to the parent frmo any cpu. ok mpi@ no objection from claudio@
2019-01-09Add LRV, NGD and UNIdanj1-1/+4
2019-01-08Disable ret-protector and retpoline protections in the clang compilerbluhm1-2/+5
to regain build performance. OK deraadt@ guenther@ kettenis@
2019-01-08Add BBA:Balmaceda, Aysen, Chilederaadt1-1/+2
2019-01-08With the change to httpd the workflow got much simpler.florian1-9/+13
2019-01-08Allow httpd(8) to start when TLS is configured but a cert is not yetflorian2-17/+22
available. Assuming a httpd.conf based on /etc/examples/httpd.conf, httpd(8) will only listen on port 80 and serve the acme-challenge directory for acme-client(1). The workflow to get a certificate then becomes acme-client -vAD example.com && rcctl reload httpd Without the need to edit the httpd.conf yet again. Once the cert is in place and httpd is reloaded it starts to serve on port 443. Idea, tweaks & OK deraadt, OK benno
2019-01-08viocon: Remove obsolete handling of sc_intrhandsf1-2/+1
2019-01-08virtio: Don't include feature strings without VIRTIO_DEBUGsf4-4/+12
They are only used if VIRTIO_DEBUG is enabled. This should make the kernel slightly smaller.
2019-01-08The child processes of snmpd(8) did not detach from the terminal.bluhm3-9/+20
Dup /dev/null to the stdio file descriptors in the children. based on a fix for httpd(8) and relayd(8); from Jan Klemkow
2019-01-08RL (NAK count reload) field in QH should be zero when using periodicuaa1-2/+7
(interrupt) transfer. When RL is not zero, interrupt transfer cannot work correctly. It causes USB2.0 hub cannot detect device attach/detach. ok by mpi@
2019-01-08Document SO_ZEROIZE socket option.bluhm1-2/+9
OK claudio@
2019-01-08If the mbuf cluster in m_zero() is read only, propagate the M_ZEROIZEbluhm1-2/+10
flag to the other references. Then the final m_free() will clear the memory. OK claudio@
2019-01-08syncflorian2-1/+1
2019-01-08Move acme-client.conf to examples. Since we no longer store theflorian3-23/+22
agreement url in here we no longer need to updated it all the time. OK deraadt
2019-01-08Remove missleading and outdated examples from man page.florian1-44/+6
/etc/examples/httpd.conf and /etc/examples/acme-client.conf (comming soon) are better places. Pointed out by & OK deraadt, OK benno
2019-01-08Botched up an if conditional in the last commit. The IP length needs toclaudio1-2/+2
bigger than the IP header len to be valid. With this I can traceroute again.
2019-01-07Extents code has its own set of flags and does not use malloc's.bluhm1-2/+2
The code in pci_init_extents() accidently passed M_NOWAIT which is EX_FAST and does no harm. Replace it with EX_NOWAIT. from Christian Ludwig; OK kettenis@
2019-01-07short circuit mail check if MAIL is unset. ok antontedu1-8/+10
2019-01-07log dns failures, even if temporary. ok bennotedu1-1/+2
2019-01-07Enabling both kcov and retguard is now possible due to the recent bump ofanton1-2/+1
NKL2_KIMG_ENTRIES on amd64, allowing larger kernels. ok mpi@; "that's great!" deraadt@
2019-01-07Don't print "allocated section '.foobar' not in segment" warning forkettenis1-6/+9
zero-sized sections. ok deraadt@, guenther@
2019-01-07Use the `iface' argument from the *attach() function instead of callingmpi1-7/+2
usbd_device2interface_handle(). ok visa@
2019-01-07Make the output fit in 80 chars when a serial number is printed.mpi1-2/+2
ok sthen@, millert@, denis@, kn@
2019-01-07add inteldrm for fw_updatesthen1-2/+3
2019-01-07Validate the version, and all length fields of IP packets passed to a raw socketclaudio1-16/+82
with INP_HDRINCL. There is no reason to allow badly constructed packets through our network stack. Especially since they may trigger diagnostic checks further down the stack. Now EINVAL is returned instead which was already used for some checks that happened before. OK florian@ Reported-by: syzbot+0361ed02deed123667cb@syzkaller.appspotmail.com
2019-01-07It is possible to call m_zero with a read-only cluster. In that case justclaudio1-6/+3
return. Hopefully the other reference holder has the M_ZEROIZE flag set as well. Triggered by syzkaller. OK deradt@ visa@ Reported-by: syzbot+c578107d70008715d41f@syzkaller.appspotmail.com