‚š268887 113 588 495 879 163 280 315 807 315 233 234 234 222 150 464 464 190 218 119 119 143 295 155 134 159 1066 221 146 174 386 457 159 147 147 148 284 202 177 383 382 290 231 183 147 202 267 157 321 176 537 174 276 111 132 180 286 286 315 208 711 338 325 183 197 147 144 215 1332 598 276 228 319 284 109 276 224 603 603 219 219 320 320 505 209 444 197 200 120 174 133 335 135 262 375 174 216 250 281 227 187 525 266 124 151 185 236 202 257 250 155 128 282 353 3572 K 10 svn:author V 3 jhb K 8 svn:date V 27 2014-07-19T20:13:01.281118Z K 7 svn:log V 495 MFC 261904,261905,262143,262184,264921,265211,267169,267292,267294: Various PCI fixes: - Allow PCI devices to be configured on all valid bus numbers from 0 to 255. - Tweak the handling of PCI capabilities in emulated devices to remove the non-standard zero capability list terminator. - Add a check to validate that memory BARs of passthru devices are 4KB aligned. - Respect and track the enable bit in the PCI configuration address word. - Handle quad-word access to 32-bit register pairs. END K 10 svn:author V 3 des K 8 svn:date V 27 2014-07-19T20:55:13.159403Z K 7 svn:log V 402 Check if the specified group is the user's primary group before iterating over the (possibly empty) list of members. Otherwise, we get a false negative when the target group has no members listed in /etc/group. This went mostly unnoticed because root is explicitly listed as a member of wheel, so the bug is never triggered in the most common use case, which is su(8). PR: 109416 MFC after: 1 week END K 10 svn:author V 4 neel K 8 svn:date V 27 2014-07-19T20:59:08.262392Z K 7 svn:log V 785 Handle nested exceptions in bhyve. A nested exception condition arises when a second exception is triggered while delivering the first exception. Most nested exceptions can be handled serially but some are converted into a double fault. If an exception is generated during delivery of a double fault then the virtual machine shuts down as a result of a triple fault. vm_exit_intinfo() is used to record that a VM-exit happened while an event was being delivered through the IDT. If an exception is triggered while handling the VM-exit it will be treated like a nested exception. vm_entry_intinfo() is used by processor-specific code to get the event to be injected into the guest on the next VM-entry. This function is responsible for deciding the disposition of nested exceptions. END K 10 svn:author V 3 des K 8 svn:date V 27 2014-07-19T21:04:21.332332Z K 7 svn:log V 71 Add support for the "account" facility. PR: 115164 MFC after: 1 week END K 10 svn:author V 3 jhb K 8 svn:date V 27 2014-07-19T22:06:46.934954Z K 7 svn:log V 187 MFC 259942,262274,263035,263054,263211,263744,264179,264324,264468,264631, 264648,264650,264651,266572,267558: Flesh out the AT PIC and 8254 PIT emulations and move them into the kernel. END K 10 svn:author V 3 jhb K 8 svn:date V 27 2014-07-19T22:13:12.946283Z K 7 svn:log V 222 MFC 262884,263236,265407: Various uart fixes: - Open the uart emulation's backing tty in non-blocking mode. - Support 16-bit register access. - Disable the 'uart_drain()' callback when the emulated receive FIFO is full. END K 10 svn:author V 3 ian K 8 svn:date V 27 2014-07-19T22:13:27.719948Z K 7 svn:log V 714 Add dl_unwind_find_exidx() for ARM EABI, required for C++ exception handling. For statically linked apps this uses the __exidx_start/end symbols set up by the linker. For dynamically linked apps it finds the shared object that contains the given address and returns the location and size of the exidx section in that shared object. The dl_unwind_find_exidx() name is used by other BSD projects and Android, and is mentioned in clang 3.5 comments as "the BSD interface" for finding exidx data. GCC (in libgcc_s) expects the exact same API and functionality to be provided by a function named __gnu_Unwind_Find_exidx(), so we provide that with an alias ("strong reference"). Reviewed by: kib@ MFC after: 1 week END K 10 svn:author V 3 jhb K 8 svn:date V 27 2014-07-19T22:24:29.637689Z K 7 svn:log V 222 MFC 263432,265366,265376: Fixes for vcpu management in bhyve: - Use 'cpuset_t' to represent the vcpus active in a virtual machine. - Modify the "-p" option to be more flexible when associating a 'vcpu' with a 'hostcpu'. END K 10 svn:author V 10 nwhitehorn K 8 svn:date V 27 2014-07-19T23:39:17.311588Z K 7 svn:log V 132 Enable X11 via xf86-video-scfb on the Playstation 3. This commit made from an xterm running for the first time on said Playstation. END K 10 svn:author V 4 bapt K 8 svn:date V 27 2014-07-19T23:44:57.736591Z K 7 svn:log V 140 MFC: r263648, r264789, r266636 This brings: - schema validation - xpath-like interface for ucl objects Adapt pkg(7) to the new libucl API END K 10 svn:author V 4 bapt K 8 svn:date V 27 2014-07-19T23:57:36.057414Z K 7 svn:log V 140 MFC: r263648, r264789, r266636 This brings: - schema validation - xpath-like interface for ucl objects Adapt pkg(7) to the new libucl API END K 10 svn:author V 10 nwhitehorn K 8 svn:date V 27 2014-07-20T00:08:50.848493Z K 7 svn:log V 121 Fix allocation of 128MB extended memory region, broken since some careless modifications in December. MFC after: 3 days END K 10 svn:author V 4 bapt K 8 svn:date V 27 2014-07-20T00:21:38.895386Z K 7 svn:log V 57 MFC: r257315, r260445, r264803 Update byacc to 20140422 END K 10 svn:author V 4 bapt K 8 svn:date V 27 2014-07-20T00:29:41.817698Z K 7 svn:log V 370 MFC: r267131, r267132, r267133, r268493, r268671 Use NULL instead of 0 (Patch by Sascha Wildner for Dragonfly) Remove unnecessary semicolons (Patch by Sascha Wildner for Dragonfly) Add support for arbitrary http requests [1] Support EAGAIN in fetch_writev Submitted by: Alex Hornung [1] Reviewed by: des END K 10 svn:author V 4 bapt K 8 svn:date V 27 2014-07-20T00:30:28.850472Z K 7 svn:log V 370 MFC: r267131, r267132, r267133, r268493, r268671 Use NULL instead of 0 (Patch by Sascha Wildner for Dragonfly) Remove unnecessary semicolons (Patch by Sascha Wildner for Dragonfly) Add support for arbitrary http requests [1] Support EAGAIN in fetch_writev Submitted by: Alex Hornung [1] Reviewed by: des END K 10 svn:author V 4 bapt K 8 svn:date V 27 2014-07-20T00:32:22.784391Z K 7 svn:log V 97 MFC: r267376 Add a zlib pkg-config file (more and more ports requires it) Approved by: delphij END K 10 svn:author V 4 bapt K 8 svn:date V 27 2014-07-20T00:34:54.261603Z K 7 svn:log V 124 MFC: r261032 Add quiet support for kldstat -n PR: bin/180014 Submitted by: Olivier Cochard-LabbĂ© END K 10 svn:author V 5 hiren K 8 svn:date V 27 2014-07-20T02:15:14.758134Z K 7 svn:log V 25 MFC r268790 Fix a typo. END K 10 svn:author V 5 hiren K 8 svn:date V 27 2014-07-20T02:20:03.791667Z K 7 svn:log V 25 MFC r268790 Fix a typo. END K 10 svn:author V 5 hiren K 8 svn:date V 27 2014-07-20T02:38:58.490416Z K 7 svn:log V 49 MFC r250764 Fix rte leak introduced in r248070. END K 10 svn:author V 6 adrian K 8 svn:date V 27 2014-07-20T04:11:18.179139Z K 7 svn:log V 199 Correctly program the RSS redirection table entries. Without this, the RSS bucket assignments aren't correct - they're DCBA instead of ABCD in each DWORD. Tested: 82599EB ixgbe(4), TCP and UDP RSS END K 10 svn:author V 8 truckman K 8 svn:date V 27 2014-07-20T06:03:52.840490Z K 7 svn:log V 58 MFC r268373 Declaration whitespace changes for style(9). END K 10 svn:author V 6 adrian K 8 svn:date V 27 2014-07-20T07:31:55.754965Z K 7 svn:log V 39 Update the comment to be more concise. END K 10 svn:author V 3 mav K 8 svn:date V 27 2014-07-20T07:35:00.292439Z K 7 svn:log V 67 MFC r268795: Fix ctld crash on startup if target alias is not set. END K 10 svn:author V 6 adrian K 8 svn:date V 27 2014-07-20T07:36:59.506346Z K 7 svn:log V 970 Implement rss_gethashconfig() - return the currently supported hash methods by the stack. Right now the stack isn't really setup for RSS with 4-tuple UDP hashing for either IPv4 and IPv6. The specifics: * The UDP init path udp_init() and udplite_init() specify the hash as 2-tuple, so the PCBGROUPS code only tries a 2-tuple check; * The PCBGROUPS and RSS code doesn't know about the UDP hash types just yet, so they're never treated as valid hashes. * For correctness, 4-tuple can't be enabled in the general case because UDP datagrams can be more fragmented than IP datagrams may be. Strictly speaking, TCP datagrams may also be fragmented and this could cause issues with PCBGROUPS/RSS until the IP defragment path grows some code to re-calculate the RSS hash. I'll follow this commit up with awareness of the UDP 4-tuple for those who wish to configure it, but for now it'll stay disabled. No drivers (yet) know to use this function when RSS is enabled. END K 10 svn:author V 6 adrian K 8 svn:date V 27 2014-07-20T07:37:47.818547Z K 7 svn:log V 125 Add hash awareness of the IPv4 and IPv6 UDP 4-tuple. Note: it would be nice if the supported hash check would be used here! END K 10 svn:author V 6 adrian K 8 svn:date V 27 2014-07-20T07:38:38.158924Z K 7 svn:log V 51 Make the PCBGROUPS code aware of IPv4 UDP 4-tuple. END K 10 svn:author V 6 adrian K 8 svn:date V 27 2014-07-20T07:39:54.894270Z K 7 svn:log V 79 When it's time to do 4-tuple UDP IPv6 hashing, make sure this is a known type. END K 10 svn:author V 6 adrian K 8 svn:date V 27 2014-07-20T07:43:41.065178Z K 7 svn:log V 290 Disable the ixgbe(4) UDP 4-tuple hashing for the time being. A mix of fragmented and non-fragmented UDP in a single stream will end up being hashed differently, resulting in out-of-order behaviour in the receive path. This was done in the linux e1000 driver in 2011. Discussed with: jfv END K 10 svn:author V 6 adrian K 8 svn:date V 27 2014-07-20T07:45:48.429396Z K 7 svn:log V 361 Teach ixgbe(4) about rss_gethashconfig(). If RSS is enabled, ixgbe(4) will query the RSS API for the types of hashes which should be used. It'll then only enable hashes that are exposed via the RSS layer. This way it won't try to do things like enable UDP hashing if RSS explicitly states that it isn't supported in lookups. Tested: * 82599EB ixgbe(4) NIC END K 10 svn:author V 6 adrian K 8 svn:date V 27 2014-07-20T08:43:53.656696Z K 7 svn:log V 64 Add the UDP hash -> RSS mbuf hash type for the ixgbe(4) driver. END K 10 svn:author V 4 bapt K 8 svn:date V 27 2014-07-20T10:54:45.545558Z K 7 svn:log V 54 MFC: r263650, r263686 Add missing dependency on libm END K 10 svn:author V 4 bapt K 8 svn:date V 27 2014-07-20T11:00:51.078958Z K 7 svn:log V 54 MFC: r263650, r263686 Add missing dependency on libm END K 10 svn:author V 6 jilles K 8 svn:date V 27 2014-07-20T12:06:52.038636Z K 7 svn:log V 53 sh: Remove prefix() function. Use strncmp() instead. END K 10 svn:author V 3 des K 8 svn:date V 27 2014-07-20T14:49:24.093519Z K 7 svn:log V 191 Older versions of flex (like the one used in FreeBSD <= 9) expect the output file name to follow the -o flag immediately, with no intervening whitespace. Reported by: ian@ MFC after: 1 week END K 10 svn:author V 4 neel K 8 svn:date V 27 2014-07-20T16:34:35.041787Z K 7 svn:log V 108 Fix build without INVARIANTS defined by getting rid of unused variable 'exc'. Reported by: adrian, stefanf END K 10 svn:author V 5 markj K 8 svn:date V 27 2014-07-20T18:44:56.671218Z K 7 svn:log V 83 Fix the build when DTrace isn't enabled. Reported by: stefanf X-MFC-With: r268600 END K 10 svn:author V 3 pfg K 8 svn:date V 27 2014-07-20T20:05:39.044451Z K 7 svn:log V 290 Update fflush(3) to return success on a read-only stream. This has small changes to what Apple uses for compliance with SUSv3. The changes cause no secondary effects in the gnulib tests (we pass them). Obtained from: Apple Inc. (Libc 997.90.3 with changes) Reviewed by: bde Phabric: D440 END K 10 svn:author V 7 rwatson K 8 svn:date V 27 2014-07-20T20:11:34.988974Z K 7 svn:log V 285 In "procstat -v" (VM), spell out 'FL' to 'FLAG' since there are two extra columns available anyway. Also left align as we tend to do for flags fields, although you can't see that currently as the string fully fills that available columns. MFC after: 3 days Sponsored by: DARPA, AFRL END K 10 svn:author V 3 pfg K 8 svn:date V 27 2014-07-20T20:14:15.640299Z K 7 svn:log V 197 Use a correct errno in freopen. Use EBADF instead of EINVAL when working around incorrect O_ACCMODE. Phabric: D442 Obtained from: Apple Inc. (Libc 997.90.3) Reviewed by: jilles MFC after: 1 week END K 10 svn:author V 6 jilles K 8 svn:date V 27 2014-07-20T20:29:09.954959Z K 7 svn:log V 135 sh: Allow arbitrarily large numbers in break and continue. The argument is capped to loopnest, so strtol()'s [ERANGE] can be ignored. END K 10 svn:author V 3 pfg K 8 svn:date V 27 2014-07-20T20:29:28.662350Z K 7 svn:log V 91 Const-ify a character string. Obtained from: Apple Inc. (Libc 997.90.3) MFC after: 3 days END K 10 svn:author V 8 hselasky K 8 svn:date V 27 2014-07-20T21:02:35.533999Z K 7 svn:log V 50 Add new device ID. MFC after: 1 week PR: 191959 END K 10 svn:author V 3 pfg K 8 svn:date V 27 2014-07-20T21:24:29.243795Z K 7 svn:log V 109 Adjust errno on failed prepwrite. Obtained from: Apple Inc. (Libc 997.90.3) Phabric: D442 MFC after: 1 week END K 10 svn:author V 6 wblock K 8 svn:date V 27 2014-07-20T22:13:51.003755Z K 7 svn:log V 171 Correct spelling errors in ctld.8. While here, correct similar errors in ctl.conf.5 and fix a couple of contractions. PR: 191984 Submitted by: olgeni MFC after: 1 week END K 10 svn:author V 3 jhb K 8 svn:date V 27 2014-07-20T22:54:03.411634Z K 7 svn:log V 65 MFC 262331,262487,262495,262523: ZFS boot support for bhyveload. END K 10 svn:author V 3 jhb K 8 svn:date V 27 2014-07-21T00:21:56.990091Z K 7 svn:log V 228 MFC 260847,264055,264867: - Add a very simple virtio_random(4) driver for FreeBSD guests to harvest entropy from hypervisors. - Add support to bhyve for the virtio RNG entropy-source device to provide entry to bhyve guests. END K 10 svn:author V 3 jhb K 8 svn:date V 27 2014-07-21T02:17:28.743841Z K 7 svn:log V 84 MFC 264916,267611: Provide a very basic stub for the 8042 PS/2 keyboard controller. END K 10 svn:author V 3 jhb K 8 svn:date V 27 2014-07-21T02:39:17.039688Z K 7 svn:log V 444 MFC 263780,264516,265062,265101,265203,265364: Add an ioctl to suspend a virtual machine (VM_SUSPEND). Add logic in the HLT exit handler to detect if the guest has put all vcpus to sleep permanently by executing a HLT with interrupts disabled. When this condition is detected the guest with be suspended with a reason of VM_SUSPEND_HALT and the bhyve(8) process will exit. This logic can be disabled via the tunable 'hw.vmm.halt_detection'. END K 10 svn:author V 6 adrian K 8 svn:date V 27 2014-07-21T04:48:02.919479Z K 7 svn:log V 79 Add the PCBGROUPS manpage. Thanks to wblock for helping me with this manpage. END K 10 svn:author V 2 cy K 8 svn:date V 27 2014-07-21T06:45:19.185037Z K 7 svn:log V 184 MFC r268532 and r268585. When world and kernel are built without INET6 support, the userland was still built with INET6 turned on. PR: 190964 Approved by: glebius (mentor, implicit) END K 10 svn:author V 7 pluknet K 8 svn:date V 27 2014-07-21T08:42:35.527816Z K 7 svn:log V 15 [mdoc] cleanup END K 10 svn:author V 7 pluknet K 8 svn:date V 27 2014-07-21T08:47:54.387619Z K 7 svn:log V 36 Fixed fallout from previous change. END K 10 svn:author V 6 emaste K 8 svn:date V 27 2014-07-21T13:51:29.445895Z K 7 svn:log V 85 MFC r267603 by trasz: Add polish vt(4) keymap. Sponsored by: The FreeBSD Foundation END K 10 svn:author V 6 emaste K 8 svn:date V 27 2014-07-21T14:31:57.573281Z K 7 svn:log V 190 MFC r268460 by ray: Fix inconsistent token parameters for kbd_allocate() and kbd_release() in vt(4). PR: 191306 Submitted by: jau789 at gmail.com Sponsored by: The FreeBSD Foundation END K 10 svn:author V 6 emaste K 8 svn:date V 27 2014-07-21T14:36:35.714294Z K 7 svn:log V 190 MFC r268460 by ray: Fix inconsistent token parameters for kbd_allocate() and kbd_release() in vt(4). PR: 191306 Submitted by: jau789 at gmail.com Sponsored by: The FreeBSD Foundation END K 10 svn:author V 3 pfg K 8 svn:date V 27 2014-07-21T15:22:48.809194Z K 7 svn:log V 222 Add re-entrant versions of the hash functions based on the GNU api. While testing this I found a conformance issue in hdestroy() that will be fixed in a subsequent commit. Obtained from: NetBSD (hcreate.c, CVS Rev. 1.7) END K 10 svn:author V 3 pfg K 8 svn:date V 27 2014-07-21T15:26:52.508456Z K 7 svn:log V 115 Update license. NetBSD has removed the advertisement clause from this file. Obtained from: NetBSD (CVS rev. 1,8) END K 10 svn:author V 3 pfg K 8 svn:date V 27 2014-07-21T15:44:59.120502Z K 7 svn:log V 618 Fix hdestroy() compliance issue. The hcreate(3) implementation and related functions we inherited from NetBSD used to free() the key value, something that is not supported by the standard implementation. This would cause a segmentation fault when attempting to run the examples from the opengroup and linux manpages. NetBSD has added non-standard calls to provide the previous behaviour but hdestroy is not very commonly used so at this time it seems excessive to bring those to FreeBSD. Bump the __FreeBSD_version as this is an ABI change. Reference: http://bugs.dragonflybsd.org/issues/1398 MFC after: 2 weeks END K 10 svn:author V 6 emaste K 8 svn:date V 27 2014-07-21T16:21:17.646183Z K 7 svn:log V 242 MFC syscons(4) man page updates: r268050: Add a vt(4) cross reference to syscons(4) r268169: Clarify the setting of syscons driver flags Submitted by: wblock r268215: Describe kern.vty sc/vt tunable in syscons(4) Reviewed by: wblock END K 10 svn:author V 6 emaste K 8 svn:date V 27 2014-07-21T16:38:05.892997Z K 7 svn:log V 229 Hide syscons-specific workaround under DEV_SC This change is a bit ugly, but so is the coupling between the i915 driver and syscons. It isn't worth developing a more elegant solution only to support the legacy syscons console. END K 10 svn:author V 6 emaste K 8 svn:date V 27 2014-07-21T17:18:00.302478Z K 7 svn:log V 88 Use the standard way of printing the usage string Sponsored by: The FreeBSD Foundation END K 10 svn:author V 6 emaste K 8 svn:date V 27 2014-07-21T17:43:37.329557Z K 7 svn:log V 101 Remove redundant return statement after errx MFC after: 3 days Sponsored by: The FreeBSD Foundation END K 10 svn:author V 6 emaste K 8 svn:date V 27 2014-07-21T18:13:14.397037Z K 7 svn:log V 52 MFC r266847: Add missing , in converted font output END K 10 svn:author V 3 jhb K 8 svn:date V 27 2014-07-21T18:23:48.615272Z K 7 svn:log V 52 MFC 264275: Explicitly initialize 'vmname' to NULL. END K 10 svn:author V 3 jhb K 8 svn:date V 27 2014-07-21T18:26:51.618397Z K 7 svn:log V 122 MFC 264347: Account for the "plus 1" encoding of the CPUID Function 4 reported core per package and cache sharing values. END K 10 svn:author V 3 jhb K 8 svn:date V 27 2014-07-21T19:08:02.912439Z K 7 svn:log V 1238 MFC 264353,264509,264768,264770,264825,264846,264988,265114,265165,265365, 265941,265951,266390,266550,266910: Various bhyve fixes: - Don't save host's return address in 'struct vmxctx'. - Permit non-32-bit accesses to local APIC registers. - Factor out common ioport handler code. - Use calloc() in favor of malloc + memset. - Change the vlapic timer frequency to be in the ballpark of contemporary hardware. - Allow the guest to read the TSC via MSR 0x10. - A VMCS is always inactive when it exits the vmx_run() loop. Remove redundant code and the misleading comment that suggest otherwise. - Ignore writes to microcode update MSR. This MSR is accessed by RHEL7 guest. Add KTR tracepoints to annotate wrmsr and rdmsr VM exits. - Provide an alias for the userboot console and name it 'comconsole'. - Use EV_ADD to create an mevent and EV_ENABLE to enable it. - abort(3) the process in response to a VMEXIT_ABORT. - Don't include the guest memory segments in the bhyve(8) process core dump. - Make the vmx asm code dtrace-fbt-friendly. - Allow vmx_getdesc() and vmx_setdesc() to be called for a vcpu that is in the VCPU_RUNNING state. - Enable VMX in the IA32_FEATURE_CONTROL MSR if it not enabled and the MSR isn't locked. END K 10 svn:author V 6 sbruno K 8 svn:date V 27 2014-07-21T19:33:08.325077Z K 7 svn:log V 502 Merge change from upstream linux kernel submitted by OpenBSD: drm/radeon: fix-up some float to fixed conversion thinkos Spotted by Brad Smith when porting to OpenBSD. Noticed-by: Brad Smith Signed-off-by: Alex Deucher ref: https://git.kernel.org/cgit/linux/kernel/git/torvalds/linux.git/commit/?id=1cd73ff7 Remove #ifdef DUMBBELL_WIP in favor of upstream fix. Phabric: https://phabric.freebsd.org/D423 Reviewed by: dumbbell, jkim MFC after: 2 weeks END K 10 svn:author V 6 sbruno K 8 svn:date V 27 2014-07-21T20:08:53.322864Z K 7 svn:log V 180 MFC r268017 and r268018 268017: Check return of cam_periph_find() before using it in a printf. 268018: Add detection for ciss(4) controllers that are set to non-raid JBOD mode. END K 10 svn:author V 2 np K 8 svn:date V 27 2014-07-21T20:38:21.903992Z K 7 svn:log V 136 MFC r268450 (by glebius). The leak affects stable/10 too. In several cases in ip_output() we obtain reference on ifa. Do not leak it. END K 10 svn:author V 3 dim K 8 svn:date V 27 2014-07-21T21:26:10.155465Z K 7 svn:log V 226 Run mtree for BSD.tests.dist during make xdev-install, if the tests are enabled (which they are in the default configuration). Otherwise, it will fail because ${XDDESTDIR}/usr/include/atf-c does not exist. MFC after: 3 days END K 10 svn:author V 5 peter K 8 svn:date V 27 2014-07-21T22:08:49.996385Z K 7 svn:log V 189 Vendor import serf-1.3.6 + Revert r2319 from serf 1.3.5: this change was making serf call handle_response + multiple times in case of an error response, leading to unexpected behavior. END K 10 svn:author V 5 peter K 8 svn:date V 27 2014-07-21T22:09:16.485301Z K 7 svn:log V 15 Tag serf-1.3.6 END K 10 svn:author V 5 peter K 8 svn:date V 27 2014-07-21T22:10:29.532256Z K 7 svn:log V 181 Merge serf-1.3.6 + Revert r2319 from serf 1.3.5: this change was making serf call handle_response + multiple times in case of an error response, leading to unexpected behavior. END K 10 svn:author V 8 bdrewery K 8 svn:date V 27 2014-07-21T22:21:09.955316Z K 7 svn:log V 126 MFC r268114: Change NFS readdir() to only ignore cookies preceding the given offset for UFS rather than for all but ZFS. END K 10 svn:author V 3 pfg K 8 svn:date V 27 2014-07-21T22:37:33.884062Z K 7 svn:log V 510 MFC r268642: libc/gen: small updates to code originating at OpenBSD arc4random.c - CVS rev. 1.22 Change arc4random_uniform() to calculate ``2**32 % upper_bound'' as ``-upper_bound % upper_bound''. Simplifies the code and makes it the same on both ILP32 and LP64 architectures, and also slightly faster on LP64 architectures by using a 32-bit remainder instead of a 64-bit remainder. - CVS rev. 1.23 Spacing readpassphrase.c -CVS rev. v 1.24 most obvious unsigned char casts for ctype Obtained from: OpenBSD END K 10 svn:author V 3 pfg K 8 svn:date V 27 2014-07-21T22:44:06.619872Z K 7 svn:log V 510 MFC r268642: libc/gen: small updates to code originating at OpenBSD arc4random.c - CVS rev. 1.22 Change arc4random_uniform() to calculate ``2**32 % upper_bound'' as ``-upper_bound % upper_bound''. Simplifies the code and makes it the same on both ILP32 and LP64 architectures, and also slightly faster on LP64 architectures by using a 32-bit remainder instead of a 64-bit remainder. - CVS rev. 1.23 Spacing readpassphrase.c -CVS rev. v 1.24 most obvious unsigned char casts for ctype Obtained from: OpenBSD END K 10 svn:author V 3 pfg K 8 svn:date V 27 2014-07-21T22:47:59.555132Z K 7 svn:log V 126 MFC r268644: libc/stdlib: Minor cleanups to code originating in NetBSD Mostly ANSIfication and typos. Obtained from: NetBSD END K 10 svn:author V 3 pfg K 8 svn:date V 27 2014-07-21T22:48:38.931340Z K 7 svn:log V 126 MFC r268644: libc/stdlib: Minor cleanups to code originating in NetBSD Mostly ANSIfication and typos. Obtained from: NetBSD END K 10 svn:author V 3 pfg K 8 svn:date V 27 2014-07-21T22:59:40.627810Z K 7 svn:log V 227 MFC r268798, r268799, r268801: grep: Fix type. grep: fix some memory leaks. queue.c (CVS Rev. 1.4. 1.5) Fix memory leaks. NULL does not need a cast. grep.c (CVS Rev. 1.6) Use the more portable getline. Obtained from: NetBSD END K 10 svn:author V 3 pfg K 8 svn:date V 27 2014-07-21T23:00:26.965653Z K 7 svn:log V 227 MFC r268798, r268799, r268801: grep: Fix type. grep: fix some memory leaks. queue.c (CVS Rev. 1.4. 1.5) Fix memory leaks. NULL does not need a cast. grep.c (CVS Rev. 1.6) Use the more portable getline. Obtained from: NetBSD END K 10 svn:author V 3 pfg K 8 svn:date V 27 2014-07-21T23:23:20.657879Z K 7 svn:log V 412 MFC r268632: fsck_msdosfs: Assorted fixes from other BSDs. When truncating cluster chains fix the length of the cluster head. http://marc.info/?t=140304310700005&r=1&w=2 Avoid infinite loops in cluster chain linked lists. http://marc.info/?l=openbsd-tech&m=140275150804337&w=2 Avoid off-by-one on FAT12 filesystems. http://marc.info/?l=openbsd-tech&m=140234174104724&w=2 Obtained from: NetBSD (from OpenBSD) END K 10 svn:author V 8 bdrewery K 8 svn:date V 27 2014-07-22T00:33:41.816249Z K 7 svn:log V 111 MFC r268715,r268722: Document the 'show bio' command added in 2009. Also link 'show bio' to g_bio(9.) END K 10 svn:author V 3 sjg K 8 svn:date V 27 2014-07-22T00:42:55.172818Z K 7 svn:log V 351 bsd.lib.mk does not add OBJS etc to CLEANFILES so does not automatically get them flagged as .NOPATH. This hurts people who don't use obj dirs. Since its clean target seprate rm's for things, use NOPATH_FILES as list to collect things that need .NOPATH. bsd.obj.mk will add CLEANFILES to NOPATH_FILES and do the deed if needed. Reviewed by: sbruno END K 10 svn:author V 2 np K 8 svn:date V 27 2014-07-22T02:02:39.479950Z K 7 svn:log V 105 Simplify r267600, there's no need to distinguish between allocated and inlined mbufs. MFC after: 1 week END K 10 svn:author V 3 jhb K 8 svn:date V 27 2014-07-22T03:14:37.640744Z K 7 svn:log V 107 MFC 266125: Implement a PCI interrupt router to route PCI legacy INTx interrupts to the legacy 8259A PICs. END K 10 svn:author V 2 br K 8 svn:date V 27 2014-07-22T03:59:14.857085Z K 7 svn:log V 29 Rename i.MX I2C driver file. END K 10 svn:author V 6 sbruno K 8 svn:date V 27 2014-07-22T04:37:47.467884Z K 7 svn:log V 79 Supress clang warning for FreeBSD printf %b and %D formats MFC after: 2 weeks END K 10 svn:author V 6 sbruno K 8 svn:date V 27 2014-07-22T04:38:28.464483Z K 7 svn:log V 38 Remove boot1.efi during clean target. END K 10 svn:author V 3 jhb K 8 svn:date V 27 2014-07-22T04:39:16.701500Z K 7 svn:log V 242 MFC 266424,266476,266524,266573,266595,266626,266627,266633,266641,266642, 266708,266724,266934,266935,268521: Emulation of the "ins" and "outs" instructions. Various fixes for translating guest linear addresses to guest physical addresses. END K 10 svn:author V 2 br K 8 svn:date V 27 2014-07-22T04:39:32.863645Z K 7 svn:log V 44 Enable Freescale i.MX I2C driver for i.MX6. END K 10 svn:author V 6 sbruno K 8 svn:date V 27 2014-07-22T04:47:19.692820Z K 7 svn:log V 166 copyin/copyout should return 0 if they are truly emulating copyin/copyout behavior. remove stray %s in printf rewrite printf to display 64bit type without warning. END K 10 svn:author V 7 delphij K 8 svn:date V 27 2014-07-22T06:40:27.770322Z K 7 svn:log V 278 Don't save entropy inside jails. As of r126744, we no longer feed the entropy device in jails upon start, and collecting them is no longer useful. PR: conf/126744 Submitted by: Eugene Grosbein (with minor changes) MFC after: 1 week Approved by: so (des) END K 10 svn:author V 7 delphij K 8 svn:date V 27 2014-07-22T08:37:01.544872Z K 7 svn:log V 78 Correct typo introduced with r268855. MFC after: 10 days X-MFC with: r268855 END K 10 svn:author V 3 ray K 8 svn:date V 27 2014-07-22T08:52:49.156778Z K 7 svn:log V 123 Remove #ifdef-s to reduce difference to upstream. Pointed by: kib MFC after: 1 week Sponsored by: The FreeBSD Foundation END K 10 svn:author V 6 emaste K 8 svn:date V 27 2014-07-22T13:58:33.889982Z K 7 svn:log V 154 Don't pass null kmdp to preload_search_info On Xen PVH guests kmdp == NULL. Submitted by: royger MFC after: 3 days Sponsored by: The FreeBSD Foundation END K 10 svn:author V 3 pfg K 8 svn:date V 27 2014-07-22T16:10:56.183805Z K 7 svn:log V 188 rewind: always clear error indicator. Required by POSIX: http://pubs.opengroup.org/onlinepubs/009695399/functions/rewind.html Obtained from: Apple Inc. (Libc 997.90.3) MFC after: 1 week END K 10 svn:author V 3 pfg K 8 svn:date V 27 2014-07-22T16:19:01.630696Z K 7 svn:log V 134 ftello: return 1 when seeking offset on an append stream. Obtained from: Apple Inc. (Libc 997.90.3) Phabric: D442 MFC after: 2 weeks END K 10 svn:author V 3 pfg K 8 svn:date V 27 2014-07-22T16:39:11.278644Z K 7 svn:log V 95 Mostly cosmetic cleanups. In fputs() avoid implcit casting on iov.iov_len. MFC after: 3 days END K 10 svn:author V 6 marcel K 8 svn:date V 27 2014-07-22T17:30:05.766032Z K 7 svn:log V 429 In r264504, we prevented doing I/O for more than MAXPHYS by making the assumption that consumers would respect bio_completed and/or bio_resid to detect short reads. This assumption proved false and file corruption was the result. Create as many bios as we need to satisfy the original request. Check the cached chunk every time we need to do I/O to increase the hit rate. Obtained from: junipre Networks, Inc. MFC after: 1 week END K 10 svn:author V 3 pfg K 8 svn:date V 27 2014-07-22T18:37:59.814610Z K 7 svn:log V 173 Revert r268984: Check for __SAPP flag before calling sflush. This avoids performance degradation compared to the previous approach. Submitted by: ache MFC after: 2 weeks END K 10 svn:author V 7 pluknet K 8 svn:date V 27 2014-07-22T19:37:38.984705Z K 7 svn:log V 28 Grammar and spelling fixes. END K 10 svn:author V 2 np K 8 svn:date V 27 2014-07-22T19:48:21.126819Z K 7 svn:log V 60 Add missing newline to an error message. MFC after: 3 days END K 10 svn:author V 6 tuexen K 8 svn:date V 27 2014-07-22T19:54:22.744621Z K 7 svn:log V 90 Cleanup the definition of two structures which are exposed to userland. Therefore no MFC. END K 10 svn:author V 4 ache K 8 svn:date V 27 2014-07-22T19:55:25.375990Z K 7 svn:log V 142 Checking for __SAPP alone is not enough because it is emulated O_APPEND only, so works for only special fdopen() case. Add real O_APPEND too. END K 10 svn:author V 4 ache K 8 svn:date V 27 2014-07-22T20:13:46.629471Z K 7 svn:log V 108 Back the whole change out until I figure out how to obtain O_APPEND, it can't be used in this field at all. END K 10 svn:author V 3 ian K 8 svn:date V 27 2014-07-22T20:32:24.420089Z K 7 svn:log V 164 Fix EABI unwind function declarations to match the function definitions. The mismatch was noticed by clang, when using it to compile the in-tree gcc and libstdc++. END K 10 svn:author V 3 ian K 8 svn:date V 27 2014-07-22T20:49:58.826996Z K 7 svn:log V 157 Add FreeBSD to the list of environments that needs to handle R_ARM_TARGET2 relocations in unwind data as pc-relative indirect references. MFC after: 1 week END K 10 svn:author V 7 pluknet K 8 svn:date V 27 2014-07-22T22:16:23.777963Z K 7 svn:log V 59 s/PCBGROUPS/PCBGROUP/ manpage to match "options PCBGROUP". END K 10 svn:author V 7 pluknet K 8 svn:date V 27 2014-07-22T22:39:59.446737Z K 7 svn:log V 32 Re-sort synopsis, add includes. END K 10 svn:author V 4 ache K 8 svn:date V 27 2014-07-22T22:49:37.206969Z K 7 svn:log V 188 For "a"-mode files and rewind/fseek + fwrite combination return meaningful value now, like Apple does, but avoid their __sflush physical write performance degradation as much as possible. END K 10 svn:author V 5 gavin K 8 svn:date V 27 2014-07-22T22:57:26.879826Z K 7 svn:log V 258 /usr/bin/sendbug and the sendbug(1) man page were part of send-pr and are no longer installed since r267486. Add them to ObsoleteFiles.inc1, which should have been done in r267486. PR: 192010 Submitted by: Vick Khera Pointyhat to: gavin MFC after: 3 days END K 10 svn:author V 6 dteske K 8 svn:date V 27 2014-07-22T23:10:12.131123Z K 7 svn:log V 3475 Add example script `add_some_packages.sh', demonstrating how to install a list of packages using the bsdconfig(8) API, providing dialog(8) based user experience (versus plain console output were you to use pkg(8) directly to install the same list of packages). Remove example script `browse_packages_ftp.sh', made obsolete because the digests.txz and packagesite.txz databases for pkg(8) are not available via FTP (HTTP only to pkg.freebsd.org SRV hosts). Update example script `browse_packages_http.sh', made to work with new pkg(8) demonstrating how to generate a local package repository. Fix a bug in `bsdconfig packages' where packages were listed twice. This fix requires pkg(8) version 1.2.7_4 or higher. NB: It is the introduction of pkg(8) 1.2.7_4 wherein I am also able to drastically reduce the generation time of package dependencies prior to the dialog display (by utilizing the new `-I' flag to pkg-rquery(8)). While here, fix a positional argument nit for f_index_initialize() of `packages/index.subr' include (the one and only argument is positional argument 1 to state the by-ref handle, indicating the variable to set in the caller's namespace; the nit I'm fixing here is that we were querying positional argument 2 for this information incorrectly; caused by a missing hunk back around SVN r257795). Fix a bug in sysrc(8) described by PR bin/187458 "sysrc(8) silently and unexpectedly bootstraps pkg". This was caused by an explicit entry in `/usr/share/bsdconfig/common.subr' (used by sysrc(8)) that called pkg(8) to populate the $PKG_ABI global (called in a way that allows implicit bootstrap of pkg(8)). The solution to which was to find every place in bsdconfig(8) that requires the $PKG_ABI global and add a layer of protection by way of introducing the new API call f_musthavepkg_init() (provided by new include, `/usr/share/bsdconfig/packages/musthavepkg.subr' intented to mirror `/usr/share/bsdconfig/mustberoot.subr'). When the $PKG_ABI global is required, you can use `f_musthavepkg_init' to cause graceful premature termination in the event that pkg(8) has not yet been bootstrapped, and thus cannot be used to populate $PKG_ABI. NB: If running interactively ($nonInteractive is NULL or unset), the f_musthavepkg_init() API call will attempt to bootstrap pkg(8), but only if the user chooses "Yes" to a Yes/No dialog confirming it is ok to bootstrap. While here, simplify an if-conditional in `media/http.subr' include to use sh(1) inline assignment-with-break. Also, fix a bug in `media/http.subr' and `media/httpproxy.subr' wherein the error messages for various HTTP failures were not finding their way to the console (needed to pass stdout to pass-thru descriptor). While here, remove the executable bit from `packages/categories.subr', `packages/index.subr', and `packages/packages.subr' includes. Fix issues where pkg(8) complains about PACKAGESITE being defined. Previously, we would set $PACKAGESITE and export it. Now we only set $PACKAGESITE for invocations of "pkg update" -- getting rid of all the spurious warnings about PACKAGESITE being deprecated (it's still used in the case of "pkg update" for simplicity versus having to configure a config-file). Remove the leading argument from invocations of f_index_initialize() in `packages/packages.subr' include. The leading argument no longer means what it used to, pre SVN r257995). PR: bin/187458 Reviewed by: nwhitehorn MFC after: 1 week X-MFC-to: stable/10, stable/9 END