summaryrefslogtreecommitdiff
path: root/sys/kern
AgeCommit message (Collapse)Author
2006-12-12Complete gwk's previous patch to stop setperf methods from returningDimitry Andric
errors to userland: make all cpu_setperf functions return void. Tested by many, ok gwk@
2006-12-11allow bit 32 to be printed; bug spotted and fix tested by dlgTheo de Raadt
2006-12-08A more permanent solution to setperf methods returning error values andGordon Willem Klok
the higher level sysctl code passing them to userland. Distinct diff from the one I passed around internally with less crazy semantics. Also nuke some trailing spaces in a few places. "just go ahead" deraadt@
2006-12-01spell kqueue, not kqeueCamiel Dobbelaar
ok jmc
2006-11-30s/completly/completely/Michael Knudsen
ok brad
2006-11-29Correct the calculation of block address for specfs block i/o onKenneth R Westerback
devices with sectorsizes other than 512. e.g. cd's. Fixes PR #5235 from Paul Stoeber with a slightly tweaked diff. NetBSD did the same with their r1.59 in 2001, closing their PR#3261 and PR#14026. tweak suggestions and ok pedro@
2006-11-29Update the sensor description based on the GPS operation mode. InitialMarc Balmer
diff received from matthieu. ok matthieu
2006-11-29We don't use mb_map anymore since a long time already. Remove it.Miod Vallat
2006-11-29Kernel stack can be swapped. This means that stuff that's on the stackMiod Vallat
should never be referenced outside the context of the process to which this stack belongs unless we do the PHOLD/PRELE dance. Loads of code doesn't follow the rules here. Instead of trying to track down all offenders and fix this hairy situation, it makes much more sense to not swap kernel stacks. From art@, tested by many some time ago.
2006-11-28Let nmea(4) use tty timestamps if they are enabled. Using a GPS receiverMarc Balmer
that provides a PPS signal, more precision and less jitter can be expected. With my test setting (a Garmin GPS 18 LVC hooked up to a i386 machine) I observed a skew of 0.03 to 0.05 seconds between the tty timestamp and the soft timestamp. "put it in" deraadt
2006-11-28Make malloc() print out a warning message when returning NULL due toPedro Martelletto
M_CANFAIL, idea from miod@, okay deraadt@
2006-11-24When copying out struct statfs to userland, we need to zero out the fsidArtur Grabowski
field unless it's root that's asking. This far, this has been done by putting a struct statfs on the stack and modifying it. struct statfs is large. Large things on the stack are bad. Create copyout_statfs() that copies out a struct statfs to userland, does the necessary root check and gives userland what it needs withtout wasting stack space. pedro@, deraadt@ ok.
2006-11-22If M_CANFAIL is set and the malloc() size is to bigThordur I. Bjornsson
return NULL instead of panic()'ing. ok pedro@, deraadt@
2006-11-20vprint() should be defined if DIAGNOSTIC || DEBUG. Noticed by (andTom Cosgrove
original diff from) Jake < antipsychic (at) hotmail.com >. Discussed with Mickey and Miod. ok miod@ pedro@
2006-11-18more fixes from bret lambert; ok pedroJason McIntyre
2006-11-18typos; from bret lambertJason McIntyre
2006-11-17typos from bret lambert;Jason McIntyre
2006-11-17missing punctuation in comments; from bret lambertJason McIntyre
2006-11-17Make getpeereid() work on both sides of a connection. The client can now getClaudio Jeker
the euid/egid of the server it connects to. The euid and egid are captured in the bind() call -- this is the equivalent of the client behaviour where the same thing is done in connect(). tested and ok espie@, ok henning@, go for it deraadt@
2006-11-15typos; from bret lambertJason McIntyre
2006-11-14grammar, spelling, and style fixes from bret lambert;Jason McIntyre
kern_descrip.c change ok deraadt
2006-11-14properly check for native emulation binaries, so that the correct sysctlTheo de Raadt
mib numbers are appended to the syscall record; broken by niklas in 1.39
2006-11-06force a new sensor task to be run as soon as possible. previously it usedDavid Gwynne
to have to wait its timeout before the first run, which led to some weird values or states being visible after boot, but before the first update. for jolan@
2006-10-31undo unp_internalize in case of errors; report Christian Biere; ok claudioMarkus Friedl
2006-10-30Timecounter based implementation of adjfreq(2). Largely from art@Otto Moerbeek
Tested by various using not (yet) committed amd64 timecounter code. ok deraadt@
2006-10-30use vp->v_type to index into vtypes rather then vp->v_tag,Thordur I. Bjornsson
fixing odd output in the 'show vnode' ddb code. ok mickey@
2006-10-23fix control message length check, needs CMSG_ALIGN()Henning Brauer
reported by ryo@nerv.org to netbsd, noticed by miod, ok millert
2006-10-21Retire B_LOCKED and BQ_LOCKED. The last real usage of theThordur I. Bjornsson
flag and the buffer queue went away when LFS was removed. ok, pedro@ "looks sane", deraadt@ testing: tybollt@solace.miun.se
2006-10-21tbert sent me a diff to change some 0 to NULLTed Unangst
i got carried away and deleted a whole bunch of useless casts this is C, not C++. ok md5
2006-10-19some buffers (containing metadata) can only be written during theMichael Shalayeff
bdwrite call made on 'em due to otherwise pending softdeps and thus being deferred by the sybcer. promote bdwrite into bawrite for those cases. tested by many. pedro@ ok
2006-10-18Return ECONNABORTED when a non-blocking socket has been shutdown() forKurt Miller
receives. Previously a non-blocking socket would mask this error by returning EWOULDBLOCK and mislead applications to think accept() may eventually succeed. Corrects a pthreads deadlock reported by Tero Koskinen <tero.koskinen at iki.fi> okay kettenis@, theo@, markus@
2006-10-17Kill unused code.Alexander Yurchenko
ok art@
2006-10-16regenPedro Martelletto
2006-10-16Use daddr64_t for logical blocks, okay krw@ thib@ mickey@Pedro Martelletto
2006-10-11Remove unused variable and simplify m_copym0(). Diff from bret.lambert at ↵Marco Pfatschbacher
gmail.com. Kill another unused variable in m_devget(). Pointed out by mcbride. Rename all offset variables from off0 to off. OK markus@, deraadt@
2006-10-09bret lambert sent a patch removing register. i made it ansi.Ted Unangst
2006-10-03regenPedro Martelletto
2006-10-03Introduce daddr64_t and use it for physical block numbersPedro Martelletto
Okay weingart@, "I'm game with putting my name on it" dlg@
2006-09-30no malloc debug but configured kmemstats allow 'sh mal' to print smth ↵Michael Shalayeff
useful; miod@ ok
2006-09-22regenPedro Martelletto
2006-09-22Put the LFS syscall stubs back in, turns out libc is unable to buildPedro Martelletto
without those, even though they're currently not implemented
2006-09-22regenPedro Martelletto
2006-09-22Remove LFS system callsPedro Martelletto
2006-09-22Unplug LFS from VFSPedro Martelletto
2006-09-19A bit of microoptimisation that doesn't hurt readability: Don't doMichael Knudsen
timeout_del() if we're going to timeout_add() in the next block. ok dlg (a while ago), markus
2006-08-28Another grammar nit; "please go ahead" jmc@.Tom Cosgrove
2006-08-28typos; from tbertJason McIntyre
(one not taken)
2006-08-17chose proper mountpoint in making decision on upgradingMichael Shalayeff
bwrte() to async op. this fixes in particular panics w/ softdep ffs mounted at a dir in an async mounted (mfs) file system and also a few other evil scenarios. this also matches a netbsd change 1.76 . tested by many on many archs; pedro@ ok
2006-08-10Fix a panic when more than the default number of sempahores areTodd C. Miller
allocated. Problem debugged by thib@
2006-08-09Propagate error on getnewbuf(), effectively allowing callers to bePedro Martelletto
notified of posted signals for the current process, okay tedu@. Based on initial diagnosis by R. Tyler Ballance <tyler@bleepsoft.com>