summaryrefslogtreecommitdiff
AgeCommit message (Collapse)Author
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@
2008-03-15Because the shuffle code initialisation is a specific case of shufflingDamien Miller
a set of incrementing integers (and not an arbitrary set of values) it is possible to populate the array as we shuffle it in a single forward pass. Clever optimisation from didickman AT gmail.com; ok deraadt@ mcbride@ (same change as netinet/ip_id.c)
2008-03-15revert - I'm a dumbfuck who doesn't know his own APIDamien Miller
2008-03-15off by one at end of arrayDamien Miller
2008-03-15Because the ip_id code initialisation is a specific case of shufflingDamien Miller
a set of incrementing integers (and not an arbitrary set of values) it is possible to populate the array as we shuffle it in a single forward pass. Clever optimisation from didickman AT gmail.com; ok deraadt@ mcbride@
2008-03-15explicitly report whether the lower or upper limit is exceeded; ok sthen@ ↵Constantine A. Murenin
ckuethe@
2008-03-15move zerodotzero up so more stuff can use itDavid Gwynne
this is an ok bit of a bigger diff that reyk wanted split up
2008-03-14Make sure the most often changing bits of tv_usec are used for lladdrMarc Balmer
generation. ok brad
2008-03-14"-Aa" are not required flags; sort synopses; improve description of "-a"Igor Sobrado
written with invaluable advice from jmc@ ok jmc@
2008-03-14synchronize the synopsis and usage; improve description of flag "-a"Igor Sobrado
written with invaluable advice from jakemsr@, jmc@, ratchov@ ok jmc@
2008-03-14Don't even try to attach pcons(4) if we have a real console.Mark Kettenis
2008-03-14- punctuate and order the tokens list, to stop it looking scrappyJason McIntyre
- it doesn;t make sense to list esm(4) in SEE ALSO
2008-03-14add a new ber function ber_add_astring() that strdups the string andReyk Floeter
sets the be_free flag (which is required in some cases). this will make it easier because it is done manually at some places in the code. discussed with dlg
2008-03-14xref cdcef(4). ok mbalmer, jmcStuart Henderson
2008-03-14IP_MAX_MEMBERSHIPS was bumped to 4095 in -r1.74; from Matthew DempskyJason McIntyre
2008-03-14Do not allow pppoe(4) interfaces to be attached to anything but EthernetBrad Smith
or VLAN interfaces. Based on a similar change from NetBSD. ok canacar@
2008-03-14Add a "%l" token to signal whether a sensor value is in or out of bounds,Chris Kuethe
without regard for the specific value. It's a big heavy binary hammer... ok & style feedback from cnst
2008-03-13Make this catch up with some changed structs. Fix indentation while I'm there.Mark Kettenis
2008-03-13Do not increment the input packet counter in these drivers asBrad Smith
ieee80211_input() already does this. Mentioned by Peter Philipp in PR 5248. ok claudio@ mglocker@
2008-03-13Add prtc(4).Mark Kettenis
2008-03-13Attach prtc(4) if no (hardware) real-time clock was found.Mark Kettenis
2008-03-13prtc(4)Mark Kettenis
2008-03-13Add prtc(4).Mark Kettenis
2008-03-13First shot at a driver to get the time-of-day on the e10k.Mark Kettenis
2008-03-13document the just-committed %s token.Chris Kuethe
ok mbalmer
2008-03-13Allow a program invoked on state change to receive sensor status. PerhapsChris Kuethe
you might want to toggle an error light when a sensor is not OK. Perhaps you might want to schedule a shutdown if a sensor is reporting bad news. Now you can do this, and cancel that pending shutdown (or turn off the error light) if the sensor decides all is well. ok mbalmer (who came up with an almost identical diff months ago) useful feedback and generally positive responses from deraadt, henning, msf
2008-03-13Remove code to set mmu context to 0. It should already be set to 0 at thatMark Kettenis
point; this code is probably a leftover from some code that tried to find out the number of available context dynamically. tested by ckuethe@, jsg@, sthen@
2008-03-13when a file was locally removed and a diff was done againstStuart Henderson
an opencvs server (with either gnu or opencvs as the client), no actual diff output was produced. traced to the typo fixed in this diff. ok joris
2008-03-13Add __data_start symbol to all ELF archs to consistently mark the beginningKurt Miller
of the writable sections. This is useful for garbage collectors such as boehm-gc to locate these sections in a uniform way. input and okay drahn@, miod@
2008-03-13use RCS_PARSE_FULLY for CVS_OP_ADMIN as well.Joris Vink
2008-03-13properly initialize variablesJoris Vink
2008-03-13make sure we start 4 servers on udp if called withThordur I. Bjornsson
no arguments, like the man page promises. ok deraadt@, blambert@ From tcuji@pwns.ms