summaryrefslogtreecommitdiffstats
Commit message (Collapse)AuthorAgeFilesLines
* test(1): List non-standard primaries.jilles2013-05-311-1/+12
|
* test: Remove -ntXY and -otXY primaries.jilles2013-05-313-279/+28
| | | | | | | | | | | | | | | This reverts commit r247274. As maintainer of sh, I disapprove of this feature addition. It is too specific and can be done without easily using find(1) or stat(1). I will add some hints to the test(1) man page shortly. In general, FreeBSD sh is not the place to invent new shell language features. This is how it has been maintained and adding features randomly does not work with that. The new syntax (e.g. [ FILE1 -ntca FILE2 ]) looks cryptic to me.
* Style changes. No intended functional changes.gibbs2013-05-311-5/+5
| | | | | | | | o rename flush_requests => xbd_flush_requests o rename xbd_setup_ring => xbd_alloc_ring Sponsored by: Spectra Logic Corporation MFC after: 1 week
* Style cleanups. No intended functional changes.gibbs2013-05-311-725/+687
| | | | | | | | o Group functions by by their functionality. o Remove superfluous declarations. o Remove more unused (#ifdef'd out) code. Sponsored by: Spectra Logic Corporation
* dup(2): Clarify return value, in particular of dup2().jilles2013-05-311-4/+5
|
* Add a "kern.features" MIB for 32bit support under a 64bit kernel.obrien2013-05-311-0/+2
|
* sigaction(2): *at system calls are async-signal safe.jilles2013-05-311-0/+14
|
* sigaction(2): Extend description of async-signal safe functions:jilles2013-05-311-13/+108
| | | | | * Improve description when unsafe functions are unsafe. * Add various safe functions from POSIX.1-2008 and Austin Group issue #692.
* Style cleanups. No intended functional changes.gibbs2013-05-312-659/+664
| | | | | | | | | | | | | | | | o This driver is the "xbd" driver, not the "blkfront", "blkif", "xbf", or "xb" driver. Use the "xbd_" naming conventions for all functions, structures, and constants. o The prevailing convention for structure fields in this driver is to prefix them with an abreviation of the structure type. Update "recently added" fields to match this style. o Remove unused data structures. o Remove superfluous casts. o Make a pass over the whole driver and bring it closer to style(9) conformance. Sponsored by: Spectra Logic Corporation MFC after: 1 week
* fork(2): Add information about fork() in multi-threaded processes.jilles2013-05-311-0/+12
| | | | | There is nothing about pthread_atfork(3) or extensions like calling malloc(3) in the child process as this may be unreliable or broken.
* Fix misspelling of structure field name.ed2013-05-311-1/+1
|
* Improve portion of the dialog(1) API in dialog.subr responsible fordteske2013-05-3138-1368/+1743
| | | | | | | | | | | | | | | | | | | | calculating widget sizes. Instead of forking a sub-shell to calculate the optimum size for a widget, use a byRef style call-out to set variables in the parent namespace. For example, instead of: size=$( f_dialog_buttonbox_size title btitle msg ) $DIALOG --title title --backtitle btitle --msgbox msg $size The new API replaces the above with the following: f_dialog_buttonbox_size height width title btitle msg $DIALOG --title title --backtitle btitle --msgbox msg $height $width This reduces the number of forks, improves performance, and makes the code more readable by revealing the argument-order for widget sizing. It also makes performing minor adjustments to the calculated values easier as you no longer have to split-out the response (which required knowledge of ordering so was counter-intuitive).
* Fix "automatic" login, broken by revision 69825 (12 years, 5 months ago).marcel2013-05-311-14/+10
| | | | | | | | | | | | | | | | | | | | | | | | | The "automatic" login feature is described as follows: The USER environment variable holds the name of the person telnetting in. This is the username of the person on the client machine. The traditional behaviour is to execute login(1) with this username first, meaning that login(1) will prompt for the password only. If login fails, login(1) will retry, but now prompt for the username before prompting for the password. This feature got broken by how the environment got scrubbed. Before the change in r69825 we removed variables that we deemed dangerous. Starting with r69825 we only keep those variable we know to be safe. The USER environment variable fell through the cracks. It suddenly got scrubbed (i.e. removed from the environment) while still being checked for. It also got explicitly removed from the environment to handle the failed login case. The fix is to obtain the value of the USER environment variable before we scrub the environment and used the "cached" in subsequent checks. This guarantees that the environment does not contain the USER variable in the end, while still being able to implement "automatic" login. Obtained from: Juniper Networks, Inc.
* Explicitly use a pair of parentheses to ensure correct evaluationdelphij2013-05-312-3/+3
| | | | | | | ordering for bitwise operation. Submitted by: swildner (DragonFly) MFC after: 2 weeks
* Fix a long standing logic bug introduced in r167814. The code was added tojkim2013-05-311-1/+1
| | | | | | | get RSDP from loader(8) hint via kenv(2) but the bug nullified the new code and we always fell back to the previous method, i. e., sysctlbyname(3). MFC after: 3 days
* Style fixes to vn_ioctl().jhb2013-05-311-14/+15
| | | | Suggested by: bde
* Simplify the definition of vm_page_lock_assert(). There is no compellingalc2013-05-311-7/+6
| | | | | | | | reason to inline the implementation of vm_page_lock_assert() in the !KLD_MODULES case. Use the same implementation for both KLD_MODULES and !KLD_MODULES. Reviewed by: kib
* fork(2): #include <sys/types.h> is not needed.jilles2013-05-311-2/+1
|
* sh: Add test cases for break outside a loop.jilles2013-05-312-0/+19
| | | | | | In most shells (including our sh), break outside a loop does nothing with status 0, or at least does not abort. Therefore, scripts sometimes (buggily) depend on this.
* Make netif_free() safe to call on a partially initialized softc.gibbs2013-05-311-2/+5
| | | | | Sponsored by: Spectra Logic Corporation MFC after: 1 week
* Apply the ad* => ada* IDE device name transition to the Xen blockgibbs2013-05-311-10/+10
| | | | | | | | front driver. Submitted by: Bei Guan <gbtju85@gmail.com> Reviewed by: gibbs MFC after: 1 week
* Different approach to making all compilers happy.obrien2013-05-311-2/+1
|
* Allow building with clang (which is being really stupid here...).obrien2013-05-311-0/+1
|
* xpt_create_path() requires mfi_io_lock to be held, so do it.sbruno2013-05-311-0/+3
| | | | | | | | mfi(4) doesn't panic on host startup now. MFC this if svn 249468-242726 is shoveled back to stable/9 Obtained from: Yahoo! Inc.
* - Convert the bufobj lock to rwlock.jeff2013-05-3118-210/+157
| | | | | | | | | | - Use a shared bufobj lock in getblk() and inmem(). - Convert softdep's lk to rwlock to match the bufobj lock. - Move INFREECNT to b_flags and protect it with the buf lock. - Remove unnecessary locking around bremfree() and BKGRDINPROG. Sponsored by: EMC / Isilon Storage Division Discussed with: mckusick, kib, mdf
* Revert files with no local changes to their vendor state to ease futuredelphij2013-05-315-6/+0
| | | | upgrading.
* Remove unused files.delphij2013-05-3123-12238/+0
|
* If the -r option is given we cannot enter capability mode.pjd2013-05-301-2/+4
| | | | | | The option tells kdump to convert numeric UIDs and GIDs into user and group names plus to convert times and dates into locallized versions. This all needs opening various files at various occasions.
* Add macros which allow one to define SDT probes with six or seven arguments;markj2013-05-301-0/+49
| | | | | | | | | | | | they are needed when porting some of the Solaris providers (ip, iscsi, and tcp in particular). dtrace_probe() only takes five arguments from the probe site, so we need to add the appropriate cast to allow for more than five arguments. The extra arguments are later copied out of dtrace_probe()'s stack frame by dtrace_getarg() (or the provider-specific getarg method) as needed. MFC after: 1 week
* Diff reduction against tcpdump revision ↵delphij2013-05-301-2/+1
| | | | 949a22064d3534eddeb8aa2b9c36a50e45fe16fa.
* Convert Makefile to have only one file for each line, while I'm there, sortdelphij2013-05-301-32/+134
| | | | SRCS to ease future upgrades.
* - Checking for spurious interrupts is only necessary when using INTx.marius2013-05-301-11/+17
| | | | | | | | | | Actually, this may be further optimized for controller variants supporting one-shot MSIs but I'm lacking the necessary hardware for testing. - Add some missing synchronization of the statistics and status DMA maps. MFC after: 1 week
* MFV: tcpdump 4.4.0.delphij2013-05-3042-7887/+4677
|\ | | | | | | MFC after: 4 weeks
| * Vendor import of tcpdump 4.4.0.delphij2013-05-3078-7924/+5872
| |
* | After the object lock was dropped, the object' reference count couldkib2013-05-301-5/+5
| | | | | | | | | | | | | | | | | | | | | | change. Retest the ref_count and return from the function to not execute the further code which assumes that ref_count == 1 if it is not. Also, do not leak vnode lock if other thread cleared OBJ_TMPFS flag meantime. Reported by: bdrewery Tested by: bdrewery, pho Sponsored by: The FreeBSD Foundation
* | Remove the capitalization in the assertion message. Print the addresskib2013-05-301-1/+1
| | | | | | | | of the object to get useful information from optimizated kernels dump.
* | Assert that OBJ_TMPFS flag on the vm object for the tmpfs node iskib2013-05-301-0/+2
| | | | | | | | | | | | cleared when the tmpfs node is going away. Tested by: bdrewery, pho
* | - Do supply arguments as pointers to bce_get_{pg,rx}_buf() that are notmarius2013-05-301-114/+86
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | altered or actually needed there any longer. - Honor errors passed to the DMA mapping callbacks. - In bce_get_rx_buf(), do not reserve stack space for more DMA segments than actually necessary. - In bce_get_pg_buf(), take advantage of bus_dmamap_load_mbuf_sg(9). - In bce_rx_intr(), remove a pointless check for an empty mbuf pointer which can only happen in case of a severe programming error. Moreover, recovering from that situation would require way more actions with header splitting enabled (which it is by default). - Fix VLAN tagging in the RX path; do not attach the VLAN tag twice if the firmware has been told to keep it. [1] Obtained from: OpenBSD [1] MFC after: 1 week
* | Update byacc to 20130304bapt2013-05-3037-1724/+1768
| |
* | - As a follow-up to r247565, make firmware images that do not requiremarius2013-05-303-157/+101
| | | | | | | | | | | | | | | | | | | | | | | | patching at runtime actually const. - Remove pointless softc members by employing the corresponding constants directly. - Remove pointless returns. - Remove unnecessary inclusion of opt_device_polling.h. - Replace an outdated and now bogus comment in bce_tick() with the appropriate one. MFC after: 1 week
* | Restore (at least temporarily) SHARED=symlinks in the build includesbrooks2013-05-301-1/+1
| | | | | | | | | | | | stage of buildworld. This was accidentally included in r251140. Reported by: jhb
* | Always define INSTALL_DDIR and define it such that it contains no extrabrooks2013-05-301-5/+6
| | | | | | | | | | | | | | | | / characters rather than removing them later on. This should fix release builds. PR: conf/178963 Reviewed by: gjb, hrs
* | Bring in a number of new features, mostly implemented by Michio Honda:luigi2013-05-305-320/+1292
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | - the VALE switch now support up to 254 destinations per switch, unicast or broadcast (multicast goes to all ports). - we can attach hw interfaces and the host stack to a VALE switch, which means we will be able to use it more or less as a native bridge (minor tweaks still necessary). A 'vale-ctl' program is supplied in tools/tools/netmap to attach/detach ports the switch, and list current configuration. - the lookup function in the VALE switch can be reassigned to something else, similar to the pf hooks. This will enable attaching the firewall, or other processing functions (e.g. in-kernel openvswitch) directly on the netmap port. The internal API used by device drivers does not change. Userspace applications should be recompiled because we bump NETMAP_API as we now use some fields in the struct nmreq that were previously ignored -- otherwise, data structures are the same. Manpages will be committed separately.
* | clarify usage of NETMAP_BUFluigi2013-05-301-2/+2
| |
* | - Merge from r249476: Ensure that PCI bus BUS_GET_DMA_TAG() method seesmarius2013-05-303-14/+33
| | | | | | | | | | | | | | | | | | | | the actual PCI device which makes the request for DMA tag, instead of some descendant of the PCI device, by creating a pass-through trampoline. - Sprinkle const on tables. - Use NULL instead of 0 for pointers. - Take advantage of nitems(). MFC after: 1 week
* | add support for rate-limiting in the sender (-R ...)luigi2013-05-301-17/+139
| | | | | | | | Obtained from: Giuseppe Lettieri
* | add a compile-time option to copy packets instead of doingluigi2013-05-301-3/+12
| | | | | | | | the buffer swapping.
* | remove use of deprecated ioctl()luigi2013-05-302-3/+1
| |
* | MFV: libpcap 1.4.0.delphij2013-05-3055-4054/+8648
| | | | | | | | MFC after: 4 weeks
* | Add __sync_synchronize().ed2013-05-302-0/+48
| | | | | | | | | | This function can easily be implemented on top of the mb() macro provided by <machine/atomic.h>.
OpenPOWER on IntegriCloud