summaryrefslogtreecommitdiff
AgeCommit message (Collapse)Author
2008-10-09replace M_WAITOK with M_NOWAITCharles Longeau
ok krw@ kettenis@
2008-10-09remove unused variableCharles Longeau
ok millert@ jsing@
2008-10-09In compile_subst(), adjust for the fact that the initial bufferTodd C. Miller
that is passed in may now be larger than _POSIX2_LINE_MAX. Thanks to pedro@ for the test case. OK pedro@
2008-10-09Change sb_timeo to unsigned, so that even if some calculation (ie. n * HZ)Theo de Raadt
becomes a very large number it will not wrap the short into a negative number and screw up timeouts. It will simply become a max of 65535. Since this happens when HZ is cranked to a high number, this will still only take n seconds, or less. Safer than crashing. Prompted by PR 5511 ok guenther
2008-10-09plug memleak by calling ber_free() after sending a trap to cleanup theReyk Floeter
BER write buffer.
2008-10-09Don't strip newline when reading lines; matches the original behavior.Todd C. Miller
From otto@
2008-10-09remove a dead store.Charles Longeau
Found by LLVM/Clang Static Analyzer. ok weingart@
2008-10-09Implement CPU_INFO_UNIT for everyone, not just MP kernels.Artur Grabowski
ok miod@
2008-10-09pass NULL rather than 0 for interrupt time usage to calcru()Kevin Lo
ok art@
2008-10-09add -y to usage();Jason McIntyre
2008-10-09- add -d to usageJason McIntyre
- sync -f arg name with man page synopsis
2008-10-09Use the reference count in struct process to update the proc countPhilip Guenthe
for users by the correct amount when changing real UID on (r)threaded processes. ok art@ tedu@
2008-10-09Put a reference count in struct process to prevent use-after-freePhilip Guenthe
if the main thread reaches the reaper ahead of some other thread in the process. ok art@ tedu@
2008-10-09support setting PermitEmptyPasswords in a Match blockDamien Miller
requested in PR3891; ok dtucker@
2008-10-09Add fallback ioctl handlers for MTU and multicast to ether_ioctl().Brad Smith
2008-10-09stop waiting for the printer to become ready, see PR 5427 for moreTheo de Raadt
information. Also explains PR 4124 and 5318
2008-10-09Use ether_ioctl().Brad Smith
2008-10-09cosmetic change for ioctl funtions.. move splnet out from variable declaration.Brad Smith
2008-10-08cosmetic change for ioctl funtions.. move splnet out from variable declaration.Brad Smith
2008-10-08Add -y option to force logging via syslog rather than stderr.Damien Miller
Useful for daemonised ssh connection (ssh -f). Patch originally from and ok'd by markus@
2008-10-08document -d. ok millert@Martynas Venckus
2008-10-08SIOCAIFADDR can fail with EEXIST either if the local or the destinationClaudio Jeker
address already exists so mention both addresses in the error message. From PR4584 (alexander at beard dot se) I just tuned the error message a bit.
2008-10-08syncDamien Bergamini
2008-10-08new PCI ID for Intel WiFi Link 5350.Damien Bergamini
2008-10-08use (unsigned) in rate calculation for > 2 billion interrupts. This willTheo de Raadt
do until when we tweak struct uvmexp to have unsigned 64 bit counters, and when we do, it will not break. from PR 4046, ok millert
2008-10-08better commentsOleg Safiullin
2008-10-08Allow sed to handle arbitrarily long lines. Also plug a memoryTodd C. Miller
leak noticed in the process. Closes PR 5303. OK otto@ deraadt@
2008-10-08sync man pageYojiro Uo
"Option N.V. Globetrotter HSDPA Modem" is moved to umsm(4) from ubsa(4)
2008-10-08Older IT8712F chips have 8-bit watchdog timeout counter.Oleg Safiullin
Use minutes for 16-bit values.
2008-10-08As the Option N.V. Globetrotter HSDPA Modem is not compatibleYojiro Uo
with ubsa(4), it is moved to umsm(4). ok jsg@, reported by Daniele Pilenga
2008-10-08For "gunzip -N", the name stored in the gzip header has no directory,Todd C. Miller
so write the uncompressed file in the same directory we would use were the -N option not specified. Closes PR 5224
2008-10-08Fix the order of traversal when printing the queues. Properly placesCan Erkin Acar
child queues under their respective interface root queues. Reported by jared r r spiegel via PR 5861.
2008-10-08o chip revision is 4-bit valueOleg Safiullin
o some #define's instead of digits
2008-10-08Correct exit codes for extra files. PR 5072.Matthias Kilian
Reminded by millert. ok millert, deraaadt
2008-10-08Don't extend amaps beyond what their supposed maximum. This code path isArtur Grabowski
not taken anymore, but it doesn't hurt to be correct. from NetBSD, through mickey in pr 5812 prodded by otto@
2008-10-08prevent access to output_paragraph with negative offset; PR 5518; okOtto Moerbeek
deraadt@
2008-10-08Get rid of the second table entry pool (pfr_kentry_pl2); we're alreadyRyan Thomas McBride
using the default interrupt handler for both, so there's no need to keep table entries created in interrupt context separate. ok henning art
2008-10-08uhci(4) at cardbus(4) seems to work (to the same extent that ohci(4) andTheo de Raadt
ehci(4) work; ie. it has the same variety of unplug bugs)
2008-10-07Kill a bunch of #ifdef freebsd/netbsd code in *_drv.c. No binary change.Owain Ainsworth
2008-10-07- noieee_src: adapt complex versions of the functions it alreadyMartynas Venckus
supports (which is all, except the float ones) ok millert@
2008-10-07Kill the linux-ready negative return codes in ``shared'' code. We handleOwain Ainsworth
them wrong in several cases that i've noticed and Merging when needed is still fairly simple, anyway. This shaves another 500 bytes from an amd64 kernel due to not having to flip the sign on some things. It also stops my eyes bleeding. Tested by a few along with the last diff that went in.
2008-10-07re-enable ieeefp mode on alpha again, now that the kernel code isMartynas Venckus
fixed. tested by me and naddy@. ok theo
2008-10-07unbreak ieeefp emulation code wrt converting double to unsignedMartynas Venckus
long ints for alpha. we've got only one instruction (cvttq) to convert double-t to quadword, and float64_to_int64 did not take into account the unsigned conversions therefore, overflow always occured, and half of the unsigned range (LONG_MAX .. ULONG_MAX) was broken introduce roundAndPackInt64NoOverflow and float64_to_int64_no_overflow for softfloat, that works with unsigned integers as well. note that this will return zero for nan/inf/oflow/uflow, raising exception flag perl is happy now looked over by miod@ tested by naddy@, and by me on nick@'s alpha
2008-10-07Move dev->driver over to being a pointer to a const struct, instead of stupidlyOwain Ainsworth
filling in a pre-allocated one on each attach. Makes the code a bunch nicer, shrinks a kernel by about 1.5k on amd64, helps with my sanity, and paves way for later changes. Tested by a few for a couple of weeks now.
2008-10-07The 'l' command should not encode newlines. Also document thatTodd C. Miller
backspace is escaped as \b. OK phessler@ and jmc@
2008-10-07Make sure page 0 is selected when we initialize the PHY. Fixes problemsMark Kettenis
with the eephy(4) that attaches to nfe(4) on machines like the Sun Ultra 40. ok deraadt@
2008-10-07Fix memory leak bug during scope evaluation (now without introducing a bugMark Kettenis
in evaluation of the Return() operator). Based jordan@'s diff from rev. 1.133. ok jordan@, marco@
2008-10-07protect better against races from incoming signals; slightly changedTheo de Raadt
from 5394 by tracking the fd instead of the fp. ok beck
2008-10-07If we fail to read the MAC address from the eeprom, fallback to readingJoel Sing
the MAC address registers. In most cases these already have the correct MAC address. This should address PR5743. Thanks to Rodolfo Gouveia for testing earlier diffs. ok dlg@
2008-10-07There is no /usr/old/bin/sed so compare test results against /usr/bin/sedTodd C. Miller