summaryrefslogtreecommitdiffstats
path: root/lib/libc/stdlib (unfollow)
Commit message (Collapse)AuthorFilesLines
2021-03-10Don't return ERR if resize didn't change sizemillert6-20/+25
This is a backport of the ncurses 5.9 20120707 patch. Previously, getch() would return ERR if SIGWINCH was received but the window didn't actually change size. This can happen, for example, when the xterm font is changed. OK tb@
2021-03-10Fix redrawing of a multiline PS1 prompt in vi mode.millert1-8/+9
From gotroyb127 OK tb@
2021-03-10Typofix previouskn1-2/+2
2021-03-10Guard TLS1_get_{client_,}version() macros with #ifndef LIBRESSL_INTERNAL.jsing1-1/+3
These are no longer used (and should not be used) internally.
2021-03-10Revise TLS extension regress to match version handling changes.jsing1-57/+25
2021-03-10Improve internal version handling.jsing9-108/+145
Add handshake fields for our minimum TLS version, our maximum TLS version and the TLS version negotiated during the handshake. Initialise our min/max versions at the start of the handshake and leave these unchanged. The negotiated TLS version is set in the client once we receive the ServerHello and in the server at the point we select the highest shared version. Provide an ssl_effective_version() function that returns the negotiated TLS version if known, otherwise our maximum TLS version - this is effectively what is stored in s->version currently. Convert most of the internal code to use one of these three version fields, which greatly simplifies code (especially in the TLS extension handling code). ok tb@
2021-03-10do not request client certificate unless requirederic1-3/+1
issue hit by florian@ diff by jsing@ ok tb@
2021-03-10The ktrace record for recvmsg/recvfrom could contain extract bits inderaadt1-3/+10
msg_flags (they get set internally). Correct the record to only contain what the caller requested.
2021-03-10cleanup the 3 ways (2 for ipv4, 1 for ipv6) of doing dynamic addressderaadt1-10/+21
allocation. not the perfect text yet, but it is better. discussed with florian and jmc
2021-03-10Let MAIR comment catch up with reality.kettenis1-2/+5
2021-03-10Fix typo for ATS attribute member in IORT root complex struct.patrick1-2/+2
2021-03-10Expand the maximum length for CHAP challenge to 96 octets. npppdyasuoka1-2/+2
couldn't handle ICCN message which has a ProxyAuthenChallenge AVP longer than 24 octets. Juniper actually send such challenges. Reported and tested by Ryan Freeman.
2021-03-10Fix "phone number" spelling.patrick1-3/+3
ok yasuoka@
2021-03-10spellingjsg68-162/+162
ok gnezdo@ semarie@ mpi@
2021-03-10sndiod: When a slot structure is recycled allocate new controlratchov1-27/+8
Trying to rename the program level control is not needed anymore. When a slot is given to another program, the new ctl_{new,del}() functions can be used to delete the control of the old program and create a new one for the new program. Cleaner, simpler.
2021-03-10sndiod: Style tweak: swap if/else code blocks in slot_new()ratchov1-16/+16
2021-03-10When adding files from the manifest only the .crl need to be first, afterclaudio1-34/+12
that the order does not matter so simplify the code and just walk the list twice. Add the .crl first and then in the second round all other files. OK job@
2021-03-10pmap_avail_setup() is the only place physmem is calculated, delete a bunchderaadt1-9/+2
of code which thinks it could be done elsewhere. ok kurt
2021-03-10Import regenerated moduli file.dtucker7-811/+891
2021-03-10no need to reset buffer after send_msg() as that is done for us;djm1-3/+1
patch from Mike Frysinger
2021-03-09Also log transforms on IKE SA rekey.tobhe1-3/+10
2021-03-09Node without a "status" property should be considered enabled as well.kettenis1-3/+3
ok patrick@
2021-03-09Issuing FIOSETOWN and TIOCSPGRP ioctl commands on a tun(4) device leaksanton1-2/+3
device references causing a hang while trying to remove the same interface since the reference count will never reach zero. Instead of returning, break out of the switch in order to ensure that tun_put() gets called. ok deraadt@ mvs@ Reported-by: syzbot+2ca11c73711a1d0b5c6c@syzkaller.appspotmail.com
2021-03-09Shorten the if_cloners_lock name preventing it from being truncated inanton1-2/+2
the top(1) wait column. ok mvs@
2021-03-09Recognize Apple Firestorm cores.kettenis1-1/+3
2021-03-09Zap stray Xrkn1-2/+1
2021-03-09Fix TRUNK synopsis alignmentkn1-2/+6
2021-03-09Remove documentation for all port modules no longer supported. ok sthen@tracey1-153/+12
2021-03-09Add support for 30-bit color modes.kettenis1-2/+4
2021-03-09Fix some old phrasing on how to set up a trap handler which aren't correctmartijn1-7/+18
anymore after moving it from its own subprocess to snmpe. feedback and OK jan@
2021-03-09Dedicated regress test for snmp(1) instead of semi-relying on snmpd(8)'smartijn2-2/+1173
regress for basic functionality. This regress covers quite a few usecases, but there's still plenty missing. feedback and OK bluhm@
2021-03-09document zstd support in EXTRACT_CASES and change from a big code samplesthen1-30/+32
that isn't directly usable to a shorter table and example of what one might need to add to EXTRACT_CASES when making a change; ok espie@
2021-03-09Kernel drops fewer messages in sendsyslog(2), adapt syslogd(8)bluhm13-15/+300
tests. Kernel stashes logs temporarily, test it. Fix some races in existing tests.
2021-03-09Early daemons like dhcpleased(8), slaacd(8), unwind(8), resolvd(8)bluhm4-36/+168
are started before syslogd(8). This resulted in ugly sendsyslog(2) dropped logs and the real message was lost. Create a temporary stash for log messages within the kernel. It has a limited size of 100 messages, and each message is truncated to 8192 bytes. When the stash is exhausted, the well-known dropped message is generated with a counter. After syslogd(8) has setup everything, it sends a debug line through libc to flush the kernel stash. Then syslogd receives all messages from the kernel before the usual logs. OK deraadt@ visa@
2021-03-09Replace time_t startup_time with struct timespec link_timeout.krw3-12/+19
Feedback from otto@
2021-03-09Add initial bits for Check Point UTM-1 EDGE N.visa3-3/+15
From Thaison Nguyen
2021-03-09Allow cursor to be just after match if copying, GitHub issue 2602.nicm1-3/+6
2021-03-09Copy mode improvements from Anindya Mukherjee:nicm2-79/+55
- Fix word and word-end for wrapped lines. - Fix copying of selection end on wrapped lines. - Fix wrapped word selection edge case. - Update select-line to respect wrapped lines. - Update window_copy_..._pos() functions to use grid_reader. GitHub issue 2605.
2021-03-09Change the implementation of the malloc cache to keep lists ofotto1-152/+118
regions of a given size. In snaps for a while, committing since no issues were reported and a wider audience is good. ok deraadt@
2021-03-09dhcpleased wants /var (but contains code to handle when it isn't there).deraadt1-3/+3
But in the nfs diskless case, we can do better by starting it a little later. This disrupts nfs diskless on dynamic addresses a little, if it ever actually worked with dhclient, but anyone doing that deserves the headache. ok florian
2021-03-09Do not adjust (uhm.. zero) the swap 'b' partition size if physmem isderaadt1-2/+2
zero (should not happen, but did), because the auto-allocate code will put a filesystem on that partition. ok otto kurt
2021-03-09ofw_read_mem_regions() can skip calculation of physmem. pmap.cderaadt1-5/+1
already calculates _usable_ memory and updates physmem (if it is 0), whereas ofw_read_mem_regions() was counting usable+unuseable memory. ie. 4G or more on some machines. powerpc's 32-bit pagetable cannot use memory beyond 4G phys addr. (On a 4G machine, physmem64 was calculated as 0, which caused the installer's auto-diskabel code to place /tmp on the b partition). ok gkoehler, works for kurt also
2021-03-08Enable ixl(4).patrick2-2/+4
2021-03-08Start looking at parsing text to find separators.lum1-5/+26
2021-03-08Put regex tests into a function.lum1-40/+32
2021-03-08Revert commitid: AZrsCSWEYDm7XWuv;claudio3-10/+14
Kill SINGLE_PTRACE and use SINGLE_SUSPEND which has almost the same semantic. This diff did not properly kill SINGLE_PTRACE and broke RAMDISK kernels.
2021-03-08dhclient relationship with "inet autoconf" is incorrect, it activatedderaadt1-5/+5
dhcpleased.
2021-03-08We no longer "accept" RAs in the kernel, delete misleading comment.florian1-2/+1
2021-03-08Note that slaacd(8) is enabled by default. Also note that if youflorian1-5/+2
disabled it in the past and then note that IPv6 autoconfiguration doesn't work for you, you will quickly note that we will point and laugh.
2021-03-08Add another Type Cover devicejcs1-1/+2
from Fredrik Engberg