summaryrefslogtreecommitdiffstats
path: root/lib/libsqlite3/src/mutex_unix.c (unfollow)
Commit message (Collapse)AuthorFilesLines
2015-03-11tweak wording; "a value different to 1" -> "...other than 1", from Sevan Janiyansthen1-3/+3
2015-03-11Remove unused type definitions.mpi1-7/+1
ok miod@
2015-03-11port the idea of using clock_gettime(CLOCK_MONOTONIC) for measuringdlg1-6/+18
intervals from src/sbin/ping/ping.c r1.115. > use clock_gettime(CLOCK_MONOTONIC) to get timestamps to measure the > interval between sending a ping and getting a reply for it. > > this makes it resistant against local wall clock changes, which can > skew the intervals reported or make them go negative. this version puts clock_getting in a local gettime() function that converts to a struct timeval that all the previous callers of gettimeofday expect to get. requested by deraadt@ florian@
2015-03-11port src/sbin/ping/ping.c r1.115.dlg1-3/+9
> use clock_gettime(CLOCK_MONOTONIC) to get timestamps to measure the > interval between sending a ping and getting a reply for it. > > this makes it resistant against local wall clock changes, which can > skew the intervals reported or make them go negative. requested by deraadt@ florian@
2015-03-11use clock_gettime(CLOCK_MONOTONIC) to get timestamps to measure thedlg1-3/+9
interval between sending a ping and getting a reply for it. this makes it resistant against local wall clock changes, which can skew the intervals reported or make them go negative. ok deraadt@ florian@ makes sense to lots of others
2015-03-11add back the changes from rev 1.206, djm reverted this by mistake injsg1-2/+5
rev 1.207
2015-03-10Set verbosity to 1 (the default is 0) so we log incoming notifiesmillert1-1/+2
and zone xfers. OK florian@ deraadt@
2015-03-10Remove unused static local variable; mickey@miod1-3/+1
2015-03-10Invoke va_end() before returning, rather than in an unreachable place; mickey@miod1-3/+4
2015-03-10Make the amd64 pmap (more) mpsafe by protecting both the pmap itself and thekettenis2-31/+52
pv lists with a mutex. Rearange some code to avoid sleeping/spinning with one of these locks held, and also take care that we don't allocate/free any memory in that case. This should make pmap_enter(9), pmap_remove(9) and pmap_page_protect(9) safe to use without holding the kernel lock. Other architectures will follow. ok mlarkin@, deraadt@
2015-03-10Disable db file. It is believed to be a saner default for the commonflorian1-1/+2
use case. sthen@ noticed a problem with missing records on shutdown. OK sthen@
2015-03-10Convert to if_input().mpi1-15/+5
Tested and ok sthen@, ok dlg@
2015-03-10The st_size member of struct stat is off_t, which is signed,schwarze1-2/+2
all required by POSIX. So don't compare it against against an unsigned constant.
2015-03-10We can keep track of the pager PID without additional complexity.schwarze1-27/+23
No functional change for now, but more robust in case anybody should ever add additional child processes.
2015-03-10Convert to if_input().mpi1-8/+5
ok dlg@, kettenis@
2015-03-10Convert to if_input(), tested an ok kettenis@.mpi1-15/+9
2015-03-10Fix a regression caused in rev. 1.118, reported by kristaps@:schwarze1-4/+22
When using a pager and the first manual shown is gzip'ed, the gunzip(1) process ended up as a child of the pager process such that the man(1) process couldn't wait for it, preventing proper display of the manual. Solve this by making the pager a child of the man(1) process (instead of the other way round), which requires being a bit more careful about properly closing file descriptors after use and waiting for the pager before exiting man(1).
2015-03-10Display "Search wrapped" even when searching from the end of the file.bentley1-3/+4
From Zhihao Yuan. ok millert@ miod@
2015-03-09Explicitly cast when assigning from char * to unsigned char * and vice versa.schwarze2-5/+5
For example, gcc 4.7 wants this with -Wall. Patch from kristaps@.
2015-03-09If my calculations are correct, when this baby hits 5.8... you're gonna seemiod1-3/+3
some serious shit.
2015-03-09make the worm grow faster on larger terminals. this is more fun thantedu2-6/+12
starting with an enormous pile of worm at the start.
2015-03-09In wdcintr, do not attempt to read the status register unless WDCF_IRQ_WAITmiod1-10/+10
is not set; this used to be the case but got broken in 1.113. Fixes pciide0 at pci0 dev 2 function 0 "Acard ATP865-R" rev 0x07: DMA on armish (I/O Data).
2015-03-09Avoid doing IPv6 SLAAC for prefixes with preferred lifetime of zeromikeb1-4/+5
RFC 4941 says in 3.3.5: "In particular, an implementation MUST NOT create a temporary address with a zero Preferred Lifetime." OK sthen, henning, benno
2015-03-09Fix vertical spacing at the beginning of tables.schwarze3-12/+7
man(7) always prints a blank line, mdoc(7) doesn't. Problem in mdoc(7) reported by kristaps@. mdoc(7) part of the patch tested by kristaps@.
2015-03-09In mdoc(7), don't mistreat negative .sp arguments as large positive ones.schwarze1-4/+7
Instead, use the same logic as for man(7).
2015-03-09prevent the skipvsp flag from creeping past actual textschwarze2-1/+3
2015-03-09Flush the line preceding a table before clearing the right margin,schwarze1-3/+4
such that that line isn't output with unlimited width. Problem reported and fix OK by kristaps@.
2015-03-09Make relayd TLSv1.2-only by default.reyk2-10/+9
OK krw@ benno@ Based on revision 1.66 of usr.sbin/httpd/parse.y: Make httpd TLSv1.2-only by default. Some older browsers, like IE 10, will be incompatible with this change. We do this early in the release cycle, so there is a good chance to get more experience with the impact of it and the upcoming restricted cipher modes. OK jsing@ deraadt@ benno@ bmercer@ krw@ florian@
2015-03-09Document the TLSv1.2-only change.reyk1-5/+5
Figured out sthen@
2015-03-09Make httpd TLSv1.2-only by default. Some older browsers, like IE 10,reyk1-2/+2
will be incompatible with this change. We do this early in the release cycle, so there is a good chance to get more experience with the impact of it and the upcoming restricted cipher modes. OK jsing@ deraadt@ benno@ bmercer@ krw@ florian@
2015-03-09make -DSHORTENED the default: don't update unless there is an actualespie2-7/+7
change in dependencies: shared library versions, and explicit version requirements in dependencies. as discussed with aja@ before the lock.
2015-03-09Switch pv entries over to a pool in preparation for making the i386 (more)kettenis1-302/+42
mpsafe. Most (all?) other architectures now use pools for this, including non-direct pmap architetcures like sparc and sparc64. Use a special back-end allocator for pool pages to solve bootstrapping problems. This back-end allocator allocates the initial pages from kernel_map, switching to the uvm_km_page allocator once the pmap has been fully initialized. The old pv entry allocator allocated pages from kmem_map. Using the uvm_km_page allocator avoids certain locking issues, but might change behaviour under kva pressure. Time will tell if that's a good or a bad thing. ok mlarkin@, deraadt@
2015-03-09Fix comment grammarguenther1-2/+2
2015-03-09Unrevert post-unlock:guenther10-127/+700
* Prevent an archive from esacaping the current directory by itself: when extracting a symlink whose value is absolute or contains ".." components, just create a zero-length normal file (with additional tracking of the mode and hardlinks to the symlink) until everything else is extracted, then go back and replace it with the requested link (if it's still that zero-length placeholder). * For tar without -P, if a path in the archive has any ".." components then strip everything up to and including the last of them (if it ends in ".." then it becomes ".") This mostly follows GNU tar's behavior, except for 'tar tf' and 'tar xvf' we report the modified path that would be/was actually created instead of the raw path from the archive Above two fixes prompted by a report from Daniel Cegielka (daniel.cegielka (at) gmail.com) * For directories whose times or mode will be fixed up in the clean-up pass, record their dev+ino and then use open(O_DIRECTORY)+fstat() to verify that we're updating the correct directory before using futimens() and fchmod(). * Correct buffer overflow in handling of pax extension headers, caught by the memcpy() overlap check. previously ok millert@ deraadt@
2015-03-08use new "make -C" to avoid extra shells.espie1-7/+7
okay millert@ miod@
2015-03-08Fix some format specifiers in debug code.krw2-4/+4
Pointed out by Kor son of Rynar (sic) when trying to test some debug code. ok matthew@
2015-03-08Reject DH keys sent by a server if they are considered too small; inspiredmiod3-40/+28
by a similar BoringSSL change, but raising the limit to 1024 bits. ok jsing@ markus@ guenther@ deraadt@
2015-03-08significant typo; andreas zeilmeierderaadt1-3/+3
2015-03-08add a link for boot.lif on the media. Our options to solve this werederaadt1-1/+2
1) add link, so that installboot works by default 2) edit install.md to add sdboot as a parameter, but then default bsd.rd commandline use fails 3) modify hppa*_installboot.c for now, we do 1, though i think 3 is the right way diagnosed with krw, ok jsing
2015-03-08Fix crash on unbound-control reload introduced in update to 1.5.2.florian4-20/+27
Found the hard way be me and independently discovered and reported upstream at the same time in bug #651. OK sthen, krw; "looks reasonable" kettenis. OK to commit deraadt
2015-03-08oops, wrong file to commit a diff toderaadt1-2/+2
2015-03-08last rev fixed upgrades, but broke installs, sigh. use on-bsd.rd sdbootderaadt1-2/+2
for LIF/header creation, pre-disklabel. post-install/upgrade, this gets redone, this time with -r /mnt to pick up the new sdboot file ok krw jsing miod
2015-03-08last rev fixed upgrades, but broke installs, sigh. use on-bsd.rd sdbootderaadt1-2/+2
for LIF/header creation, pre-disklabel. post-install/upgrade, this gets redone, this time with -r /mnt to pick up the new sdboot file ok krw jsing miod
2015-03-08properly set sgl related flags on skinny controllers. this fixesdlg1-3/+5
io against physical disks on my dell perc h310s. logical disks still work fine. ok deraadt@ yasuoka@
2015-03-08Revert patch responsible for locking up machines withtobiasu2-24/+3
"Realtek 8168" rev 0x01: RTL8168 2 (0x3800). You will never guess who commited it without OK ;) ok deraadt revision 1.45 date: 2015/01/26 09:58:47; author: brad; state: Exp; lines: +22 -2; commitid: AppNYocFYbD7Hqgj; Set PCIe max read request size to 2K to help with TX performance. From FreeBSD Tested with 8168C, 8168D and 8168G. revision 1.46 date: 2015/02/19 04:58:34; author: dlg; state: Exp; lines: +2 -2; commitid: GSWXECXQW0LeGFmq; when reading the max packet size in the pcie device config and status register, correctly mask things so we're left with the mps field instead of everything but the mps field. tested by bcallah@ and jim smith
2015-03-07unbreak for w/SSH1 (default) case; ok markus@ deraadt@djm1-1/+3
2015-03-06Revert previous, the fix is not right and causes a regression asmpi1-15/+17
reported by Remi Locherer on bugs@. ok deraadt@
2015-03-06Fix radiotap and fixed rates. Radiotap was reporting the wrong rate forkettenis1-14/+14
data frames and fixed rates weren't really fixed and were converted into the wrong hardware rate. ok jsg@, deraadt@
2015-03-06Document how to use anti-spoofing rules to reject spam.millert1-3/+26
OK deraadt@ gilles@ phessler@
2015-03-06fix pkgnames versiongiovanni1-2/+2
ok deraadt@