summaryrefslogtreecommitdiffstats
path: root/usr.bin/diff/diffdir.c (unfollow)
Commit message (Collapse)AuthorFilesLines
2009-06-07Change the way fds passed over a socket are retreived on the receiving side.eric32-79/+233
Currently the receiver fetches an imsg via imsg_get() and if he expects an fd, he then calls imsg_get_fd() to fetch the next fd queued on the imsgbuf from which the imsg came. This changes hides the fd queueing mechanism to the API user. When closing an imsg with an fd, the message is flagged so that the receiving end knows it must dequeue the fd in imsg_get() and return it with the imsg structure. This way there is no (less) possible screw up from imsg_get_fd() not being called directly after imsg_get() by the user. The retreived imsg is self-contained. ok pyr@, "I like that" henning@
2009-06-07de-spaghetti:schwarze1-36/+20
If code is used from exactly one place, don't jump back dozens of lines to reach it, only to "goto" back where you came from. Instead, simply put the code where it belongs. Also fixes a regression that crept in in rev. 1.30: After clearing the variable __ypmode, don't try to make decisions based on its former value. As a bonus, garbage collect the grname variable and the _ypmode enum type. ok millert@
2009-06-07More tersification. Fixes verbiage issue reported by jdixon@ onkrw2-13/+10
icb.
2009-06-07fix a minor memory leak spotted by deraadt@; ok millert@ deraadt@schwarze1-8/+6
2009-06-07Use the new kvm_getfile2 interface to do the dirty work. OK deraadt@millert4-791/+231
2009-06-07Add kvm_getfile2 which uses KERN_FILE2 when possible, fallingmillert7-9/+911
back on kmem grovelling for non-live kernels. OK deraadt@
2009-06-07Add KERN_FILE2 sysctl analogous to KERN_PROC2 but for file structures,millert4-9/+412
along with vnode type-specific info to make it more useful for fstat(1). OK deraadt@
2009-06-07on amd64, store a pointer to the loaded data and the type. This willoga3-9/+51
eventually be needed by bouncebuffers, and I need it for some of my evil graphics shitz. ok kettenis@ with some tweaks
2009-06-07fix uninitialized or undefined value returned to callerchl1-2/+2
found by LLVM/Clang Static Analyzer. with a remind from oga@ about 80 cols wrap ok oga@
2009-06-07extend uvm_page_physload to have the ability to add "device" pages to theoga5-27/+51
system. This is needed in the case where you need managed pages so you can handle faulting and pmap_page_protect() on said pages when you manage memory in such regions (i'm looking at you, graphics cards). these pages are flagged PG_DEV, and shall never be on the freelists, assert this. behaviour remains unchanged in the non-device case, specifically for all archs currently in the tree we panic if called after bootstrap. ok art@, kettenis@, ariane@, beck@.
2009-06-07Modify the uc_entries allocation check such that the lhs is a constant.millert1-2/+2
OK deraadt@
2009-06-07Make the imsg protocol network-safe.eric11-33/+121
ok pyr@
2009-06-07Initial documentation for the new stuffclaudio1-3/+23
2009-06-07First attempt at reload support for RIBs. There is some magic that I doclaudio4-7/+47
not fully understand but at least no flames are comming out of my test box anymore.
2009-06-07No need to malloc, copy, have a single read access, and free right away.schwarze1-18/+6
Thus, garbage collect one variable, one strdup, one free, two ifs, one else and a couple of assignments. No functional change. ok millert@
2009-06-06Unrevert the curpmap change with the addition of correct %gs handlingguenther10-118/+172
in the IPI handler so that it works when it interrupts userspace, waiting for the droppmap IPI to complete when destroying it, and (most importantly) don't call pmap_tlb_droppmap() from cpu_exit(). Tested by myself and ckuethe, as our machines choked on the original. ok @art
2009-06-06Don't allocate an mbuf cluster without checking to see if it willblambert1-2/+3
actually get us anything. ok thib@
2009-06-06Somehow I missed comitting this.art1-2/+1
2009-06-06Update est.c, make it capable of using ACPI if the PSS is available butgwk2-203/+447
still support all different methods of getting states without e.g. (highest/lowest state), and on i386 use the tables. The only change should be the deletion of the mV from the printf at boot. ok jsg@
2009-06-06make it possible to abort transfers of broken ftp servers. firstmartynas1-5/+24
interrupt will do the standard abort procedure per rfc959. second interrupt will force the abort, and close the connection. done after email from halex@ couple of months ago. liked by many "I like this a lot" marco@. ok halex@, millert@, phessler@
2009-06-06Consolidate error handling in read case.blambert1-16/+15
ok thib@
2009-06-06ipi_reloadcr3 uses CPUVAR, so it needs to set up %fs in order toguenther1-1/+5
work if it interrupts userspace ok kettenis@ "you haven't committed that yet?" art@
2009-06-06change the imsg header fields a bit to prepare for upcoming changes.eric22-110/+132
add a flag field, use u_int32_t for pid_t and extend type to 32 bits for padding. ok pyr@
2009-06-06Reorder IMSG types to put the "exported" ones further down so they do notclaudio1-29/+29
change that often anymore.
2009-06-06We need miod's no-coredumps-on-ramdisks diff, because we have grown thederaadt3-3/+33
media just a wee bit too much.
2009-06-06Fix bgpctl show rib prefix/len command. Problem reported by Insan Praja.claudio1-40/+16
2009-06-06mention that the timeout is in milliseconds... because i always forget.ckuethe1-3/+3
2009-06-06Disable interrupts durring the lock step frequency/voltage change. Genericgwk2-4/+15
IPIs are handled without blocking interrupts. This solves the random lockups people have been seeing with apmd -C, thanks to marco@ for showing me how to reliably recreate this hang, and claudio@ for telling me it was also affecting his Athlon64 machine so I stopped chasing bugs in est. ok oga@, weingart@
2009-06-06Uninitialized variable causing havoc on flush. Found by rivo nurgesclaudio1-2/+2
2009-06-06- don't mess with assert()/__assert(), use KASSERT() insteadjasper2-8/+6
ok jsg@ thib@
2009-06-06syncderaadt1-1/+1
2009-06-06INTMAX_TYPE / UINTMAX_TYPE are always in terms of long long.martynas1-0/+5
reported by sturm@. fixes libarchive on mips64. ok millert@, miod@. tested by jasper@.
2009-06-06When getting a fault in the kernel, we checked for biglock and failedart1-5/+1
immediately when biglock wasn't held. But there is nothing inherently wrong with doing copyin/copyout faults without holding biglock, so just remove the check because it prevent us from doing copyin in syscall before we grab the biglock.
2009-06-06If ntpd decides the clock has become unsynced, reset the number of savedckuethe1-2/+4
time corrections. Once the clock is synced again, start computing a fresh frequency correction. ok henning
2009-06-06Turns up the polling rate of sensors and makes ntpd calculate frequencyckuethe1-3/+3
corrections more often. Due to physical effects crystal oscillators aren't really stable beyond 1000s or so - at least not the kind found in pc's. ok henning
2009-06-06this one missed the last batch.pyr1-2/+2
2009-06-06Get ready for including imsg.h from a lib, when it comes along.pyr9-18/+18
2009-06-06In case of memory exhaustion, ypmatch_add may both leak memory and leaveschwarze1-36/+28
invalid data on the list, inviting later NULL pointer access. noticed by deraadt@, algorithm proposed by millert, implemented by me; feedback and ok millert@
2009-06-06make ntpd imsg-in-a-lib ready as well. extensive testing done, nopyr6-132/+412
behavior change. ok eric@
2009-06-06All caller of buf_acquire were doing bremfree before the call.art9-22/+11
Just put it in the buf_acquire function. oga@ ok
2009-06-06- remove unused macro from iostat.cjasper2-11/+4
- minor space nit in engine.c ok canacar@
2009-06-06Since all callers of uvm_pagedeactivate did pmap_page_protect(.., VM_PROT_NONE)art6-29/+10
just move that into uvm_pagedeactivate. oga@ ok
2009-06-06add LCD-4300Uyuo1-2/+3
2009-06-06regenyuo2-4/+9
2009-06-06add another UDL deviceyuo2-2/+4
- LCD-4300U (century corp.) ok mglocker@
2009-06-06syncderaadt24-0/+70
2009-06-06Oops, forgot to pass dflags to diffreg. Now the flags work again.ray3-17/+19
OK millert
2009-06-06Pull changes from rcsdiff, similar to what was pulled into cvsdiff.ray3-92/+109
OK millert
2009-06-06Swedens National Day is today. ok jj@, halex@ and art@. -mojmaja1-1/+2
2009-06-06remove unused variable prevlen and a second initialization of ifp.sthen1-6/+2
adjusted from a diff from chl@; ok naddy, Brad agrees.