summaryrefslogtreecommitdiff
AgeCommit message (Collapse)Author
2011-04-16Add swap partition entries to -F and -f output. man pageKenneth R Westerback
updates to follow. This will simplify install script fstab creation. ok deraadt@
2011-04-16Move the FPU state out of 'struct pcb' like we did for hppa since it causesMark Kettenis
evil problems with non-equivalent aliases.
2011-04-16Move the FPU state out of 'struct pcb' like we did for hppa since it causesMark Kettenis
evil problems with non-equivalent aliases.
2011-04-16Document what happens when x equals y.Martynas Venckus
2011-04-16Initialize %cr30 for proc0 with the address of proc0fpstate. Shouldn't reallyMark Kettenis
matter, since we shouldn't be using the FPU inside the kernel, but we need to initialize %cr30 with something, and this is more consistent than using the address of the pcb.
2011-04-16_LOCORE is already definedTheo de Raadt
2011-04-16C99: "The nextafter functions return y if x equals y."Martynas Venckus
Therefore, in nextafter() and nextafterf(): - if(x==y) return x; /* x=y, return x */ - if(x==y) return y; /* x=y, return y */ This matters for negative zero inputs of x or y.
2011-04-16Test nextafter and nextafterf for zero, nan and some basicMartynas Venckus
functionality. Fix pending.
2011-04-16Fix kernel build after guenther@'s signal changes.Miod Vallat
2011-04-16Blend in some code from netbsd and freebsd that reduces memory consumptionOtto Moerbeek
and speeds things up in a lot of cases. Prompted by Amit Kulkarni; ok krw@ on a slighly diffrenent incarnation
2011-04-16jmc@ is merciless. But fair.Kenneth R Westerback
2011-04-16Tweak man page and usage string with jmc@ suggestions.Kenneth R Westerback
2011-04-16use "aucatN" for aucat(1) socket path and "midicatN" for midicat(1),Alexandre Ratchov
no need to increase entropy by inventing new names. Don't forget to rebuild libsndio after this change
2011-04-16remove aucat(1) and midicat(1) socket paths from the FILES sections.Alexandre Ratchov
Besides being wrong, they are part of sndio internals and don't need to be exposed in such a high level man page.
2011-04-16for unix domain socket addresses use AUCAT_PATH and MIDICAT_PATHAlexandre Ratchov
macros instead of hardcoded strings. No object change
2011-04-16Add '-F'. Same as '-f' but uses DUIDs when writing the mount pointKenneth R Westerback
information to the specified file. After every label write, read the label to get current UID info. Some internal code cleanup with no intended functional change. ok deraadt@
2011-04-16Since aucat supports any parameter combination sio_getcap() doesn'tAlexandre Ratchov
need to query the server for supported parameters. So stop using the AMSG_GETCAP message, and remove it completely from the aucat protocol.
2011-04-16Make aucat audio and midi backends share the same code to communicateAlexandre Ratchov
with the server. As we're at it use the same protocol for midi and audio. Now, both audio and midi code use the same SNDIO_DEBUG environment variable to turn on/off DPRINTF's.
2011-04-16Allow -v (verbose logging) to work if a -D option is supplied.Stuart Henderson
Previously, a specific check was made for any -D log option being used and, if so, *no* -v log entries are made, losing potentially useful log entries. ok lum@
2011-04-16I accidentally changed group ownership of fsqueue to _smtpd, it used to beGilles Chehade
owned by wheel. This commit reverts to original behavior
2011-04-16remove trailing whitespace, no binary change.Igor Sobrado
2011-04-16rephrase argument to -g for consistency not only with useradd(8)Igor Sobrado
and usermod(8) but also with the notational conventions used in other manual pages. ok jmc@
2011-04-16Output 'starting standard daemons:' to be consistent with the rest.Antoine Jacoutot
ok deraadt@
2011-04-16Use 'CLR(<buf>->b_flags, B_READ | B_WRITE | B_DONE)' regardless ofKenneth R Westerback
what the previous IO was. Less chance of copy and paste errors. Suggested by miod@.
2011-04-16Initialize variables before use.Kenneth R Westerback
2011-04-16another variable left after a commitTheo de Raadt
2011-04-16More than a decade ago, interrupt handlers on sparc started returning 0Theo de Raadt
(interrupt was not for me), 1 (positive interrupt was for me), or -1 (i am not sure...). We have continued with this practice in as many drivers as possible, throughout the tree. This makes some of the architectures use that information in their interrupt handler calling code -- if 1 is returned (and we know this specific machine does not have edge-shared interrupts), we finish servicing other possible handlers on the same pin. If the interrupt pin remains asserted (from a different device), we will end up back in the interrupt servicing code of course... but this is cheaper than calling all the chained interrupts on a pin. This does of course count on shared level interrupts being properly sorted by IPL. There have been some concerns about starvation of drivers which incorrectly return 1. Those drivers should be hunted down so that they return -1. ok and help from various people. In snaps for about a week now.
2011-04-15unused variable on !PMAP_DIRECTTheo de Raadt
2011-04-15for uvm_pager_dropcluster in the PG_RELEASED case we specifically unbusy theOwain Ainsworth
page so that um_anfree will free it for us. uvm_anfree does a pmap_page_protect(, VM_PROT_NONE) just before it frees the page, so we don't need to do it here ourselves. ok ariane@
2011-04-15move uvm_pageratop from uvm_pager.c local to a general uvm functionOwain Ainsworth
(uvm_atopg) and use it in uvm_km_doputpage to replace some handrolled code. Shrinks the kernel a trivial amount. ok beck@ and miod@ (who suggested i name it uvm_atopg not uvm_atop)
2011-04-15Remove wrong check.Ariane van der Steldt
HPPA longjmp tests that the env parameter < the current stack pointer. The test relies on the stack being at the end of the memory space. This test is wrong for a couple of reasons: - the main stack is at 0x78000000-0x80000000, but allocations between 0x80000000-0xc0000000 are available to the program, - pthread stacks may be at any place in the address space, allowing a heap-allocated env parameter to fail the check. ok deraadt@, kettenis@, guenther@ at least
2011-04-15Add a bit of paranoia to uvm_pageinsert.Owain Ainsworth
At various times diffs have had debugging that checked that we don't insert a page into the tree on top of an existing page, leaking that page's references. Until the recent hackathon (and introduction if uvm_pagealloc_multi) the bufcache for example did a rb tree look up on insert to check (under #ifdef DEBUG || 1) so instead just check it on pageinsert every time, since RB_INSERT returns any duplicates so this check is pretty much free. ``emphatically yes'' beck@
2011-04-15When I switched uvm objects to use a per-object page tree instead of theOwain Ainsworth
global hash I forgot to remove the has declarations from struct uvm. So remove them now. pointed out by blambert@, ok beck@
2011-04-15Change wdc_reset_channel() to take a `no wait' argument. Pass in turn thisMiod Vallat
argument to wdcreset(), to have it skip waiting until active channels see their BUSY bit clear in the status register. Use this feature in the resume path, during the first reset operation. The first reset is supposed to only wake up the controller, and the disks don't come back until the second reset is issued, therefore waiting for them to report themselves as ready after the first reset, but before the second, is moot - and as a matter of fact some controllers, such as the AMD 754 and clones/offspring (e.g. Geode) keep the BUSY bit asserted after the first reset. Last, but not least, make sure wd@ata invokes wd_get_params() again before returning from the resume code, as we will still be using polled transfers for a short while. This causes the Lemote Yeelong to resume within less than one second, instead of the lousy 30 seconds wait between the two resets; and the wd_get_params() voodoo prevents it from getting spurious ide interrupts afterwards. wd_get_params() magic from dlg; rest of the work by yours truly after enough prodding by dlg@ and pirofti@, among others. ok deraadt@ dlg@
2011-04-15More than a decade ago, interrupt handlers on sparc started returning 0Theo de Raadt
(interrupt was not for me), 1 (positive interrupt was for me), or -1 (i am not sure...). We have continued with this practice in as many drivers as possible, throughout the tree. This makes some of the architectures use that information in their interrupt handler calling code -- if 1 is returned (and we know this specific machine does not have edge-shared interrupts), we finish servicing other possible handlers on the same pin. If the interrupt pin remains asserted (from a different device), we will end up back in the interrupt servicing code of course... but this is cheaper than calling all the chained interrupts on a pin. This does of course count on shared level interrupts being properly sorted by IPL. There have been some concerns about starvation of drivers which incorrectly return 1. Those drivers should be hunted down so that they return -1. ok drahn
2011-04-15More than a decade ago, interrupt handlers on sparc started returning 0Theo de Raadt
(interrupt was not for me), 1 (positive interrupt was for me), or -1 (i am not sure...). We have continued with this practice in as many drivers as possible, throughout the tree. This makes some of the architectures use that information in their interrupt handler calling code -- if 1 is returned (and we know this specific machine does not have edge-shared interrupts), we finish servicing other possible handlers on the same pin. If the interrupt pin remains asserted (from a different device), we will end up back in the interrupt servicing code of course... but this is cheaper than calling all the chained interrupts on a pin. This does of course count on shared level interrupts being properly sorted by IPL. There have been some concerns about starvation of drivers which incorrectly return 1. Those drivers should be hunted down so that they return -1. (other architectures will follow) ok kettenis drahn dlg miod
2011-04-15whenever an envelope is reinserted into the ramqueue after a trip to mda orGilles Chehade
mta, call runner_reset_events() so runner starts reprocessing ramqueue
2011-04-15p_sigacts is NULL for zombies, so FILL_KPROC() and kvm_proclist() havePhilip Guenthe
to handle that with the sigacts change. problem observed and diagnosed by claudio@ and kettenis@
2011-04-15Remove the acpi event definitions. They've not been used for over aOwain Ainsworth
year. acpi needs to use the apm definitions so that apmd speaks the same language as it, so it uses the ones in apmvar.h these days. ``sure'' marco@
2011-04-15teach walk_queue() about the new disk-queue layoutGilles Chehade
2011-04-15valid_message_id() and valid_message_uid() are no longer neededGilles Chehade
2011-04-15kill message_id and message_uidGilles Chehade
smtpd now has an evpid associated to each delivery message, the evpid is an u_int64_t where the upper 32 bits are the msgid, and the 32 bits are the envelope unique identifier for that message. this results in lots of space saved in both disk-based and ram-based queues, but also simplifies a lot of code. change has been stressed on my desktop, and has ran on my MX for the entire afternoon without a regression.
2011-04-15wcwidth() must return -1 if the character is not printable.Stefan Sperling
Diff from Alexander Polakov. OK phessler@
2011-04-15Make the file_mbswidth() function cope if wcwidth() returns -1.Stefan Sperling
ok mikeb millert
2011-04-15Remove dead assignment and newly created unused variable.Charles Longeau
Found by LLVM/Clang Static Analyzer. ok guenther@
2011-04-15Remove dead assignment.Charles Longeau
Found by LLVM/Clang Static Analyzer. ok claudio@
2011-04-15Remove dead assignments and one newly created unused variable.Charles Longeau
Found by LLVM/Clang Static Analyzer. ok henning@ krw@ claudio@
2011-04-15Do not check malloc return value against NULL, as M_WAITOK is used.Charles Longeau
ok pirofti@ guenther@
2011-04-15In days of yore one could arbitrarily whack buffer flags. Those daysKenneth R Westerback
are past. Use CLR() and SET() to modify necessary flags while leaving the flags used by the buffer cache in peace. Should make bufcache code much less confused about the state of the bufs used in reading/writing disklabels. Other such flag abuses no doubt await a visit. Errors in original diff found by miod@. ok beck@ deraadt@
2011-04-15remove unused function ikev2_flows_delete()Reyk Floeter