summaryrefslogtreecommitdiff
AgeCommit message (Collapse)Author
2008-03-17syncTheo de Raadt
2008-03-17option 252 is generally used to specify an autoproxy-script on a subnet.David Gwynne
ok krw@ henning@
2008-03-16s/273.16/273.15/g, then refactor the formulae to ensure that theConstantine A. Murenin
double to int64_t conversions happen sooner rather than later discussed with / ok by kettenis
2008-03-16text simplification;Jason McIntyre
2008-03-16some more agp/vga bits;Jason McIntyre
2008-03-16Include <sparc64/dev/starfire.h> instead of having our own definitions.Mark Kettenis
2008-03-16Add some e10k support code.Mark Kettenis
2008-03-16Set up interrupt translation for e10k.Mark Kettenis
2008-03-16Add some e10k support code.Mark Kettenis
2008-03-16- add NAME entries for arc4random_buf and arc4random_uniformJason McIntyre
- simplify a macro call (Do/Dc -> Dq)
2008-03-16Add missing MLINKSTheo de Raadt
2008-03-16sync with sys/statfs.h; ok jmc@Otto Moerbeek
2008-03-16actually print the now available large numbersOtto Moerbeek
2008-03-16bumpOtto Moerbeek
2008-03-16Add the semi-standard _SC_PHYS_PAGES and _SC_AVPHYS_PAGES, sysconf(3) variable.Mark Kettenis
ok espie@
2008-03-16diff from djm@ committed at his request:Otto Moerbeek
introduce two new APIs for requesting strong random numbers: arc4random_buf() - fill an arbitrary memory range with random numbers arc4random_uniform() - return a uniformly distributed random number below a specified upper bound, avoiding the bias that comes from a naive "arc4random() % upper_bound" construction. these mirror similarly-named functions in the kernel; lots of discussion deraadt@ mcbride@
2008-03-16indentTheo de Raadt
2008-03-16statvfs supportOtto Moerbeek
2008-03-16regenOtto Moerbeek
2008-03-16Widen some struct statfs fields to support large filesystem stataOtto Moerbeek
and add some to be able to support statvfs(2). Do the compat dance to provide backward compatibility. ok thib@ miod@
2008-03-16for some reason the pchb dependency on agp got left in. kill it.Owain Ainsworth
2008-03-16agp now attaches at vga.Owain Ainsworth
2008-03-16Make agp(4) attach at vga(4) instead of pchb(4). This is because sometimesOwain Ainsworth
agp and drm need to use the same memory mapping, the best way to deal with that is to allow them to share (that's coming later), for this to work cleanly we move the attach point of agp. Ideally most agp drivers would attach at pchb, with only agp_i810 (and any that work similarly) attaching at vga, but this will do for now. ok kettenis@, miod@.
2008-03-16avoid errno trashing, ok mpf henningTheo de Raadt
2008-03-16syslogd leaves zombies around if multiple |/pathto/mylogprogMarco Pfatschbacher
children died in a row. Do waitpid(2) in a loop until there's nothing left. OK henning@, millert@
2008-03-16use ellipsis to show that more than one disk is allowedIgor Sobrado
ok jmc@
2008-03-16Reduce the number of unnecessary time(3)/gettimeofday(2) calls, and make sureConstantine A. Murenin
that the time always goes forward, so reports are neither duplicated nor lost. Report state changes stabilised through dampening immediately, instead of delay- ing them until the next reporting window; previously, it was common for check() to lag one second behind report(), hence the initial report was delayed one extra minute (this then reduces the number of sleep(3)/nanosleep(2) calls, too). ok ckuethe; some man-page suggestions jmc
2008-03-16implement the hrSWRun portion of the HOST-RESOURCES mib. you can see whatsDavid Gwynne
running now, which is another thing my nms at work likes. ok reyk@
2008-03-16usage statements are preceeded with usage:David Gwynne
ok reyk@
2008-03-15provide sizeofa for counting the number of elements in an array. use it forDavid Gwynne
passing the length of the mib in all these sysctl calls. ok reyk@
2008-03-15Make GENERIC.MP work on the e10k. The e10k is a bit funky since UPA onlyMark Kettenis
supports 32 ports, and a machine with up to 64 CPUs obviously needs more. So the machine has a special ASIC that does port translation, and because of that we need to distinguish between port ID's and interrupt target ID's.
2008-03-15- len is size_t, but n uses len and is an int. Matching those typesRay Lai
should be good, plus it prevents weird things from happening if len > INT_MAX. - Since n is now size_t, compare it against 0 instead of >= 0. - temp is used to store individual bytes, so use char instead (matches fp and tp). - millert noted that the comma operator may not guarantee order of execution, so replace with semicolons. Found by lint, OK millert.
2008-03-15Convert c to unsigned char, like it says in the manual. Also addRay Lai
cast to make it explicit. Found by lint, OK millert.
2008-03-15In statclock(), fix local index type in the profiling code. AvoidsMiod Vallat
out-of-bounds array accesses on some platforms.
2008-03-15Support the old-prom XVideo boards by rewriting the sbus range registers;Miod Vallat
tested by Thorsten Glaser <tg@mirbsd.de> on sparc; while there, pretty and shrink dmesg output.
2008-03-15tweak previous;Jason McIntyre
2008-03-15seperate out space vs len calculations; ok hshoexerTheo de Raadt
2008-03-15Repair usage of CMSG_SPACE and CMSG_LEN. While there, send three fdsHans-Joerg Hoexer
instead of just two as this decreases the propability that things just work although the sizes are wrong (ie. 8 aligns correctly on both 32 and 64 bit platforms even with wrong usage of CMSG_{LEN,SPACE} whereas 12 doesn't).
2008-03-15space allocated is sum of CMSG_SPACE()'s. length given to the kernelTheo de Raadt
is the sum of all the CMSG_SPACE()'s, except for the last element use CMSG_LEN(). Insane, right? ok kettenis hshoexer
2008-03-15Repair the simple cases for msg_controllen where it should just beTheo de Raadt
CMSG_SIZE(sizeof(int)), not sizeof(buffer) which may be larger because of alignment; ok kettenis hshoexer
2008-03-15show the correct idiomTheo de Raadt
2008-03-15This should set msg_control using CMSG_SIZE(), and not assume thatTheo de Raadt
sizeof(buffer) is the right size (alignments can mess it up). Code is apparently not used, but it is better if all examples show the correct idiom ok hshoexer
2008-03-15Repair more msg_controllen dealing with structures or arrays ofTheo de Raadt
descriptors; ok hshoexer, also looked at by kettenis and henning
2008-03-15repair msg_controllen and also an errant buf[CMSG_LEN(..)] declTheo de Raadt
2008-03-15Repair the simple cases for msg_controllen where it should just beTheo de Raadt
CMSG_SIZE(sizeof(int)), not sizeof(buffer) which may be larger because of alignment; ok kettenis hshoexer
2008-03-15Fix several CMSG-related bugs. Chaining CMSG's is tricky since you need toMark Kettenis
use CMSG_SPACE for all except the last one, which should be CMSG_LEN. This makes calculate .msg_controllen tricky. Also make sure that we can receive multiple CMSG's again. ok deraadt@, hshoexer@
2008-03-15Document video modes.Miod Vallat
2008-03-15if the device supports the PCI capabilities list and the verbose flagReyk Floeter
is specified, print all PCI capabilities by name instead of just the initial capabilities pointer. ok dlg@ kettenis@
2008-03-15After 15 years of fun, fix Torek's ovbcopy() operation when copying shortsMiod Vallat
backwards.
2008-03-15When installing via NFS, only retry the mount five times (instead of theJoel Sing
default 10,000 times). ok deraadt@ krw@ thib@