summaryrefslogtreecommitdiffstats
Commit message (Collapse)AuthorAgeFilesLines
* Fix the kgssapi so that it can be loaded as a module. Currentlyrmacklem2011-06-1910-69/+333
| | | | | | | | | | | | | the NFS subsystems use five of the rpcsec_gss/kgssapi entry points, but since it was not obvious which others might be useful, all nineteen were included. Basically the nineteen entry points are set in a structure called rpc_gss_entries and inline functions defined in sys/rpc/rpcsec_gss.h check for the entry points being non-NULL and then call them. A default value is returned otherwise. Requested by rwatson. Reviewed by: jhb MFC after: 2 weeks
* Copy lukemftp to its new home, tnftp. I'm doing this in stages so as togavin2011-06-1934-0/+24972
| | | | not confuse the CVS exporter.
* Precisely document the synchronization rules for the page's dirty field.alc2011-06-193-10/+68
| | | | | | | | | | | | | (Saying that the lock on the object that the page belongs to must be held only represents one aspect of the rules.) Eliminate the use of the page queues lock for atomically performing read- modify-write operations on the dirty field when the underlying architecture supports atomic operations on char and short types. Document the fact that 32KB pages aren't really supported. Reviewed by: attilio, kib
* Add support for using mtree(5) manifest files to define the imagemarcel2011-06-197-18/+1111
| | | | | | | | | | | | | | | | | | | | to be created. The support is based on mtree version 2.0, as used in libarchive, but adds new features on top of it. The current implementation is fully functional, but is envisioned to grow at least the following additional features over time: o Add support for the /include special command so that manifest files can be constructed using includable fragments. o Add support specifying a search path to locate content files. o Content file filters: commands that provide file contents on stdout. The manifest file eliminates the need to first construct a tree as root in order to create an image and allows images (releases) to be created directly from object trees and/or source trees. Reviewed by: deo Sponsored by: Juniper Networks, Inc
* In the libm access macros for the double type, z can sometimeskargl2011-06-191-2/+1
| | | | | | | | be used uninitialized. This can lead to spurious exceptions and bit clobbering. Submitted by: bde Approved by: das (mentor)
* rc.subr: Make sure all functions are under if [ -z "${_rc_subr_loaded}" ].jilles2011-06-191-2/+2
|
* Put a quick bandaid on internal citrus locking.kan2011-06-192-1/+3
| | | | | The code is not quite right still, but it programs from deadlocking on themselves if one enables new citrus code by mistake.
* Minimize backward seeks when trying to load ELF relocatable modules.kan2011-06-191-7/+30
| | | | | | Some of loader filesystems are very ill equipped to handle seeking backwards within the file. Namely, tftp requires trasfer to be restarted from the start of the file every time we go backwards.
* Do not set thread name to less than informative 'initial thread'.kan2011-06-191-1/+0
|
* Do not use #warning to warn about missing implementation of dt_popc(),simon2011-06-191-1/+1
| | | | | | | | | | | but just have a comment that this is broken. This is just a bandaid until somebody can fix this correctly. The code is just a broken as it was before r223262 - now buildworld just doesn't fail. Tested by: i386 + amd64 buildworld With hat: benl co-mentor
* rc.subr: Eliminate a fork from check_kern_features, like r223227.jilles2011-06-191-1/+1
| | | | MFC after: 2 weeks
* Don't #undef curses ERR in dialog.h. Otherwise, the macro will bejh2011-06-191-2/+5
| | | | | | | | unavailable if curses.h is included before dialog.h. PR: bin/156601 Obtained from: Thomas E. Dickey (upstream maintainer) Discussed with: nwhitehorn
* Add new USB ID to UDAV driver.hselasky2011-06-192-0/+2
| | | | | Submitted by: Luiz Gustavo S. Costa <lgcosta@pfsense.org> MFC after: 7 days
* sh: Add test for r223282.jilles2011-06-191-0/+6
|
* sh: Remove special support for background simple commands.jilles2011-06-183-9/+5
| | | | It expands the arguments in the parent shell process, which is incorrect.
* sh: Add do-nothing -h option.jilles2011-06-182-2/+8
| | | | | | | | | | POSIX requires a -h option to sh and set, to locate and remember utilities invoked by functions as they are defined. Given that this locate-and-remember process is optional elsewhere, it seems safe enough to make this option do nothing. POSIX does not specify a long name for this option. Follow ksh in calling it "trackall".
* Add DTrace support to the new NFS client. This is essentiallyrmacklem2011-06-1814-8/+977
| | | | | | | cloned from the old NFS client, plus additions for NFSv4. A review of this code is in progress, however it was felt by the reviewer that it could go in now, before code slush. Any changes required by the review can be committed as bug fixes later.
* libprocstat: For MAP_PRIVATE, do not consider the file open for writing.jilles2011-06-181-2/+4
| | | | | | | | | If a file is mapped with with MAP_PRIVATE, no write permission is required and changes do not end up in the file. Therefore, tools like fuser and fstat should not show the file as open for writing. The protection as displayed by procstat -v still includes write in this case, and shows 'C' for copy-on-write.
* Correct subcommand name 'unset' -> 'unscript'.pjd2011-06-181-1/+1
|
* Fix a typo in adagetattr() from r223089. In particular, this restoreskib2011-06-181-1/+1
| | | | the ability to use ahci(4) for kernel dumps.
* libprocstat: Fix typo in error messages.jilles2011-06-181-5/+5
|
* fuser: Fix skipping "SIG" on signal names (-s).jilles2011-06-181-3/+2
| | | | | | | The code did !strncasecmp(str, "sig", 4) which is not useful. Also change "sig" to "SIG" matching the uppercase signal names as of r218285. This has little effect because fuser does not enable locale.
* libprocstat: Remove spaces between function name and open parenthesis.jilles2011-06-181-2/+2
|
* libprocstat: Correct format for size_t (should be %zu, not %zd).jilles2011-06-181-3/+3
|
* Fixed dereference of a NULL pointer.mckusick2011-06-181-1/+2
| | | | Reported by: Peter Holm
* Add 'show logstate' to usage().bz2011-06-181-0/+1
| | | | MFC after: 1 week
* Add rc.d/kld to load kernel modules after local disks are up.dougb2011-06-185-3/+65
| | | | This method is many times faster than doing it in /boot/loader.conf.
* Fix clang warnings.benl2011-06-1830-76/+117
| | | | Approved by: philip (mentor)
* Remove a these days incorrect comment left from before new-arp.bz2011-06-181-1/+1
| | | | MFC after: 1 week
* Install symlinks for m_tag_* mbuf tag functions to the mbuf_tags.9 man page.bz2011-06-181-0/+16
| | | | MFC after: 1 week
* Correct a typo in the function name.bz2011-06-181-2/+2
| | | | MFC after: 1 week
* Fix vfork. Add comments.kib2011-06-181-1/+24
|
* - As with stray vector interrupts limit the reporting of stray levelmarius2011-06-181-9/+20
| | | | | | | | | | interrupts. Bringup on additional machine models repeatedly reveals firmware that enables interrupts behind our back, causing the console to be flooded otherwise. - As with the regular interrupt counters using uint16_t instead of u_long for counting the stray vector interrupts should be more than sufficient. - Cache the interrupt vector in intr_stray_vector().
* Merge from r161730:marius2011-06-184-21/+54
| | | | | | | | | | | | | | | | | | | | o Set TP using inline assembly to avoid dead code elimination. o Eliminate _tcb. Merge from r161840: Stylize: avoid using a global register variable. Merge from r157461: Simplify _get_curthread() and _tcb_ctor because libc and rtld now already allocate thread pointer space in tls block for initial thread. Merge from r177853: Replace function _umtx_op with _umtx_op_err, the later function directly returns errno, because errno can be mucked by user's signal handler and most of pthread api heavily depends on errno to be correct, this change should improve stability of the thread library. MFC after: 1 week
* rc.subr: Eliminate about 100 forks from the boot sequence.jilles2011-06-181-5/+5
| | | | | | | | | | | | With the current sh, placing eval in a command substitution always results in a fork(), even if it is the only command and only executes a single simple command. Therefore, avoid it where it can be avoided easily. Side effect: values starting with a hyphen and all whitespace are preserved. The values are defaults and names for rc.conf variables and messages to be given about obsolete ones. MFC after: 2 weeks
* Add an entry for r221407 forgotten in said revision.marius2011-06-181-0/+12
|
* Document the latest changes to sctp_opt_info() in the code.tuexen2011-06-181-4/+31
| | | | | This makes sctp_opt_info() compiliant with the latest version of the socket API ID.
* Add a missing ',' to separate arguments lost for r222465 only found inbz2011-06-181-1/+1
| | | | | | | case a complete world is built without INET support. MFC after: 10 days X-MFC with: 222465
* gre(4) was using a field in the softc to detect possible recursion.bz2011-06-182-13/+72
| | | | | | | | | | | | | | | | | | | | | | | On MP systems this is not a usable solution anymore and could easily lead to false positives triggering enough logging that even using the console was no longer usable (multiple parallel ping -f can do). Switch to the suggested solution of using mbuf tags to carry per packet state between gre_output() invocations. Contrary to the proposed solution modelled after gif(4) only allocate one mbuf tag per packet rather than per packet and per gre_output() pass through. As the sysctl to control the possible valid (gre in gre) nestings does no sanity checks, make sure to always allocate space in the mbuf tag for at least one, and at most 255 possible gre interfaces to detect loops in addition to the counter. Submitted by: Cristian KLEIN (cristi net.utcluj.ro) (original version) PR: kern/114714 Reviewed by: Cristian KLEIN (cristi net.utcluj.ro) Reviewed bu: Wooseog Choi (ben_choi hotmail.com) Sponsored by: Sandvine Incorporated MFC after: 1 week
* Let the size of the namebuf depend on the size of the ut_user field.ed2011-06-181-1/+1
|
* More expeirmentation suggests that 10ms isn't as reliable asimp2011-06-181-2/+2
| | | | | previously thought, but 100ms seems to be. Likely there's a good middle ground, but for now be conservative.
* After we get a good power signal, always wait about 10ms beforeimp2011-06-181-4/+16
| | | | | | | | | | | proceeding. On boot, some laptops with certain cards in them sometimes fail on boot, but if the card is inserted after boot it works. Experiments show that small delays here makes things more reliable. It is believed that some combinations need a little more time before the power on the card is really stable enough to be reliable once the power is stable in the bridge.
* Note how wait(3) is implemented.obrien2011-06-181-0/+13
|
* Sync with OpenBSD, primarily make the code easier to read, and a licensedelphij2011-06-182-68/+54
| | | | | | | change to standard OpenBSD ISC license. Obtained from: OpenBSD MFC after: 2 weeks
* Sync with OpenBSD (zap rcsid).delphij2011-06-181-7/+1
| | | | MFC after: 2 weeks
* The flags argument of mpool_get() is meaningful, document it.delphij2011-06-181-2/+9
| | | | MFC after: 2 weeks
* Add comment from CSRG rev 7.27 (1992/06/23 19:56:55; author: mckusick)obrien2011-06-171-0/+9
|
* Teach the compiler how to shift TSC value efficiently. As noted in r220631,jkim2011-06-171-2/+5
| | | | | | some times compiler inserts redundant instructions to preserve unused upper 32 bits even when it is casted to a 32-bit value. Unfortunately, it seems the problem becomes more serious when it is shifted, especially on amd64.
* Regenerate src.conf.5.ed2011-06-171-0/+11
|
* Add WITHOUT_UTMPX switch to the build system.ed2011-06-176-10/+50
| | | | | | | | | This knob removes the tools that are exclusively used to view and maintain the databases maintained by utmpx, namely last, users, who, wtmpcvt, ac, lastlogin and utxrm. The tool w is not in this list, because it has some other functionality which is unrelated to utmpx; it is hardlinked to the uptime tool.
OpenPOWER on IntegriCloud