summaryrefslogtreecommitdiffstats
path: root/lib/libc/stdlib/hcreate.c (unfollow)
Commit message (Collapse)AuthorFilesLines
2011-07-24use the right sysctl, doh!fgsch2-4/+4
pointed out by Moritz Grimm (mgrimm-at-mrsserver-dot-net)
2011-07-24Sync wcslcpy and wcslcat with strlcpy and strlcat. OK deraadt@millert2-50/+26
2011-07-24Rewrite the main loop of the "sed s/..." command, shortening it by tenschwarze1-49/+43
lines and simplifying it by removing the switch statement implementing /g, /1, and /2 separately and repetitively. The idea to make the loop control variable slen, i.e. the length of the string remaining to be processed, signed, and stay in the loop even when slen == 0 (i.e. at the end of the string), lifted from FreeBSD by otto@. On i386, process.o shrinks by 440 bytes, and the sed binary by 23 bytes. This fixes multiple aspects of the replacement of multiple (/g) or specific (e.g. /2) instances of zero-length matches, both with BREs and EREs, both with and without a trailing newline character on the input. Feedback and OK otto@.
2011-07-24Also run the new tests of "sed -E 's/..." with the input lacking aschwarze1-8/+42
trailing newline. Will be fixed by a commit to sed/process.c right afterwards. While here, assert my copyright and add a license. OK otto@
2011-07-24OS fingerprinting can only be done on rules that explicitly specify TCPmcbride1-6/+5
now, put it in the IPPROTO_TCP case of the pf_test_rule() inner loop. ok henning sthen
2011-07-24nudge people towards pkglocatedb as a viable alternative to pkg_info -E.espie1-2/+6
2011-07-24fix linkat(2) prototypematthew1-3/+3
2011-07-24AT&T recently released a new version of UNIX (System III).schwarze2-3/+7
This will soon be needed for the HISTORY of string(3).
2011-07-24Handle 'show' specially to prepare for regress tests on pfrke_routemcbride5-161/+165
and pfrke_cost entries. Output becomes sorted in table order.
2011-07-24back out conv=sync change; the disk subsystem changes which "required"deraadt2-3/+3
this are gone, and halex points out that one of the dd's in use has no conv= support.
2011-07-24Update PF table regress tests to work with -current.mcbride15-46/+69
2011-07-23TCP out-of-band data is not reliable. Allow socket splicingbluhm8-28/+44
regression tests to tolerate missing urgent bytes.
2011-07-23Print the daemon name before starting, and ok/failed afterwards, providingsthen1-2/+6
better visual cues as to what's happening. Feedback/ok aja@ schwarze@
2011-07-23Properly align the stack early on in the ld.so startup code such that code runkettenis1-1/+6
from .init that uses SSE doesn't randomly trigger SIGBUS. ok drahn@, miod@
2011-07-23Replace the IPv6 header walking loop in pf_test_state_icmp() withbluhm1-61/+76
the common function pf_walk_header6(). For that, pf_walk_header6() can now extract both the information wether it is a fragment and the final protocol if it is the first fragment. This allows to match the icmp6 too big packet of a first fragment to the reassembled packet's state. This is neccesary if a refragmented fragment is to big for the Path-MTU. Note that pd.proto contains the real protocol number for the first fragment and IPPROTO_FRAGMENT for later fragments. pd.virtual_protocol is set to PF_VPROTO_FRAGMENT for all fragments. ok mcbride@
2011-07-23Add missing .Sm macros (from matthew@).schwarze1-42/+21
While here, * use .Ic rather than .Sy for commands and fix an .Xr * remove duplicate $Id$ and multiple useless .Tn and .Xo * avoid lengthy .Bd and .Sm where they are not needed OK matthew@ jmc@
2011-07-23avoid weird warnings in case we run into a strange package.espie1-1/+6
2011-07-23uncomment net.inet6.ip6.rediraccept from /etc/sysctl.conf as well if thefgsch1-1/+3
user picks up rtsol. reported in bugs@ by Rene Maroufi (info at maroufi dot net). bluhm@ ok
2011-07-23mention net.inet6.ip6.rediraccept as well around rtsold_flags.fgsch1-1/+2
sthen@ ok.
2011-07-22Fix PMAPDEBUG compilemiod1-2/+2
2011-07-22Use dirfd(dirp) instead of dirp->dd_fd.matthew1-2/+2
No binary change.
2011-07-22syncmiod3-3/+3
2011-07-22use ifmedia_delete_instance() when destroying a vetherderaadt1-1/+2
from Martin Pelikan
2011-07-22Sync 'block return' behaviour for ICMP packets with our IP stack:mcbride1-3/+6
Rather than silently dropping ALL icmp packets, return icmp/icmp6 error for 'informational' message types (but continue dropping ICMP errors unconditionally). ok markus sthen henning
2011-07-22update to lynx2.8.7rel.2, with local patches:avsm209-54016/+96357
- restore local lynx.cfg settings [avsm] - fix makefile races [espie] - read/write result checking fixes to avoid unsigned comparisons vs -1 [krw] - initialize all the InputFieldData members correctly [fgsch] - fix socklen_t test to include <sys/types.h> [miod] - fgets(3) returns NULL on error, not 0. No functional change [cloder] ok krw@, tests by Simon Kuhnle and Martin Pieuchot
2011-07-22fix typos, martin pelikanhenning4-10/+10
2011-07-22Mention the Huawei E181.dcoppa1-2/+3
OK sthen@
2011-07-22Add the Huawei E181.dcoppa4-6/+13
From Chris Turner <c.turner(at)199technologies(dot)com> OK sthen@
2011-07-22unify kernel building on various platforms.espie23-342/+79
feedback from miod@ and deraadt@
2011-07-22Show (in the example) that < and > can be used multiple times; ok jmc@otto1-4/+5
jasper@
2011-07-22tweak previous;jmc1-4/+4
2011-07-22Speed up igetnext() by passing the record we want to parse in tomillert1-130/+184
getent() as toprec. Makesd cap_mkdb faster when building termino.db. OK nicm@
2011-07-22syncderaadt1-0/+57
2011-07-22Doh, fix a memory leak when an invalid file descriptor is passed to amatthew1-3/+7
*at(2) function. ok guenther@, thib@
2011-07-21- update smtpctl.8 to reflect realitygilles8-21/+165
- bring back 'smtpctl schedule' and 'smtpctl remove' to life Things you should know: The ramqueue data structure is not finished yet and lacks an envelope tree for evpid lookups. I wanted to wait until I'm done but too many people are affected by not being able to reschedule envelopes, this is a quick fix. So right now there's an O(rrible) complexity as both commands will perform a (possibly aborted) queue scan leading to O(n). I will make that O(log n) soon. Also, smtpctl remove no longer supports removing an entire message, I will fix that very soon too.
2011-07-21Support for the eBenton EBT-700 netbook, which is similar to the Lemotemiod5-63/+151
Yeeloong, but with a 7" display with a 800x480 resolution, and no webcam. There are still problems to get it booting from disk from PMON (colour me unsurprised), which are being looked at. Loading the boot blocks from a FAT USB stick, to then boot the kernel from the disk, is a reliable workaround in the meantime. Tested by Ban Keong Yee (bankeong dot yee on gmail) who is the ``lucky'' owner of such a machine, thanks for your time!
2011-07-21- add a MALLOC_OPTIONS section header. the content is already there, but havingjasper1-3/+3
a section will help people looking for just the MALLOC_OPTIONS. ok otto@ jmc@
2011-07-21Adjust work directory name.ajacoutot1-5/+5
2011-07-21Mention the Huawei E1750 USB modem.dcoppa1-3/+5
Also add two other devices that were previously forgotten. ok jsg@, sthen@
2011-07-21Add the Huawei E1750 USB modemdcoppa4-6/+13
From bsd.user(at)mail(dot)ru ok jsg@, sthen@
2011-07-21no more vnode_if.src;jmc1-5/+2
2011-07-21sundry tweakage;jmc4-15/+14
2011-07-21Index the sensor array starting from 0 not sc_vd_id_low. On my R310 thissthen1-4/+3
is 1 so there, this avoids writing past the end of malloc'd space during init. Also means the correct sensor address is registered so sysctl hw.sensors works. Was: hw.sensors.mpii0.drive0=unknown (sd0), UNKNOWN Now: hw.sensors.mpii0.drive0=online (sd0), OK ok dlg@
2011-07-20- Make constants const.martynas14-50/+50
- Fix aliasing issue in s_frexpf.c; spotted by gcc. Many other ones were fixed in NetBSD long ago, but this one was forgotten. It looks like recently they fixed it too.
2011-07-20During mailbox and special file checks, skip all files that can'tschwarze1-7/+10
be stat(2)'ed, but do not complain about those that were just removed, because removing files is not a security risk in itself. Sorry, i can't remember the original reporter of the issue; reported again by mk@; patch looks good to Andrew Fresh.
2011-07-20For now, disable msi interrupts. Reading through the linux driver onemarco1-2/+2
gets the impression that there are all kinds of preconditions and a whitelist as well. I will be working on this whitelist but for now disable it because it is hanging at boot for several people. ok deraadt
2011-07-20For intermediate computations use single or extended counterpartsmartynas16-50/+49
where appropriate, to avoid precision loss.
2011-07-20spell FALLTHROUGH correctlysthen1-2/+2
2011-07-20Document complex math library.martynas22-31/+1300
2011-07-20- Replace digicert 2nd-level cert with the root which issued it.sthen1-114/+247
Allows https checkouts from github to work. - Add digicert's other root certs. Fingerprints carefully checked against those in the built-in roots supplied with Mozilla. ok dcoppa@ jcs@