Commit message (Collapse) | Author | Age | Files | Lines | |
---|---|---|---|---|---|
* | man page bits for new malloc; ok jmc@ | otto | 2008-07-28 | 1 | -43/+33 |
| | |||||
* | Almost complete rewrite of malloc, to have a more efficient data | otto | 2008-07-28 | 1 | -1443/+835 |
| | | | | | | structure of tracking pages returned by mmap(). Lots of testing by lots of people, thanks to you all. ok djm@ (for a slighly earlier version) deraadt@ | ||||
* | First pass at removing clauses 3 and 4 from NetBSD licenses. | ray | 2008-06-26 | 2 | -18/+4 |
| | | | | | | | | | Not sure what's more surprising: how long it took for NetBSD to catch up to the rest of the BSDs (including UCB), or the amount of code that NetBSD has claimed for itself without attributing to the actual authors. OK deraadt@ | ||||
* | remove _thread_malloc_init prototype | otto | 2008-06-14 | 1 | -2/+1 |
| | |||||
* | grammar fixes; | jmc | 2008-06-13 | 1 | -3/+3 |
| | |||||
* | remove _MALLOC_LOCK_INIT; major bump; ok deraadt@ | otto | 2008-06-13 | 2 | -8/+2 |
| | |||||
* | Add strtof() to libc, some ports seem to like it. Currently it's a simple | landry | 2008-06-13 | 3 | -9/+64 |
| | | | | | | | call to strtod() with bounding check. Discussed with pyr@ and otto@ ok otto@ deraadt@ | ||||
* | fix an Xr, and use a more appropriate macro; | jmc | 2008-06-09 | 1 | -4/+4 |
| | |||||
* | arc4random_stir() does not use /dev/arandom anymore, but sysctl kern.arandom | deraadt | 2008-06-08 | 1 | -4/+6 |
| | |||||
* | fix math screwup that reintroduced a bias for upper_bounds in range | djm | 2008-06-04 | 1 | -2/+2 |
| | | | | | | | (2^30,2^31). Nothing in the tree yet requests random numbers bounded by this range. report jakob!deraadt; ok deraadt@ | ||||
* | kill an Xr to a non-existent man page, ulimit(1); | jmc | 2008-05-20 | 1 | -5/+3 |
| | |||||
* | remove recalloc(3); it is buggy and impossible to repair without big | otto | 2008-05-19 | 3 | -62/+20 |
| | | | | costs; ok jmc@ for the man page bits; ok millert@ deraadt@ | ||||
* | garbage collect the portability bits for the removed select() support. | brad | 2008-05-11 | 1 | -11/+1 |
| | | | | ok djm@ deraadt@ | ||||
* | convert select() => poll(), saves a runtime malloc+free per retry | djm | 2008-04-18 | 1 | -23/+16 |
| | | | | feedback deraadt@ drahn@; ok deraadt@ | ||||
* | permit _ in the middle of a DNS name component | deraadt | 2008-04-16 | 1 | -2/+3 |
| | |||||
* | Improve the libc DNS resolver ID generation algorithm to be more | djm | 2008-04-13 | 1 | -43/+79 |
| | | | | | | | resistant to prediction atacks by wrapping the existing LCG in a random permutation generator based on a Luby-Rackoff block cipher. lots of discussion and final ok deraadt@ | ||||
* | Use arc4random_buf() when requesting more than a single word of output | djm | 2008-04-13 | 1 | -2/+2 |
| | | | | | | | Use arc4random_uniform() when the desired random number upper bound is not a power of two ok deraadt@ millert@ | ||||
* | - do not call pthread_atfork(3) handlers when a multithreaded program | kurt | 2008-04-04 | 1 | -2/+7 |
| | | | | | | calls vfork(2). "untested, but looks OK" marc@ - document vfork(2), popen(3) and system(3) don't call atfork handlers in multithreaded programs. okay jmc@ | ||||
* | Zero state buffers on return. OK deraadt@ | millert | 2008-04-02 | 1 | -1/+5 |
| | |||||
* | bcmp(3) tries to return length, which is a size_t, as an int. | ray | 2008-03-19 | 1 | -4/+4 |
| | | | | | | | | Instead, just return 1 if there is a difference. Found by lint. OK millert. | ||||
* | - add NAME entries for arc4random_buf and arc4random_uniform | jmc | 2008-03-16 | 1 | -2/+4 |
| | | | | - simplify a macro call (Do/Dc -> Dq) | ||||
* | Add missing MLINKS | deraadt | 2008-03-16 | 1 | -1/+2 |
| | |||||
* | diff from djm@ committed at his request: | otto | 2008-03-16 | 2 | -3/+84 |
| | | | | | | | | | | | | | | 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@ | ||||
* | - len is size_t, but n uses len and is an int. Matching those types | ray | 2008-03-15 | 1 | -6/+12 |
| | | | | | | | | | | | | | | | 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. | ||||
* | Convert c to unsigned char, like it says in the manual. Also add | ray | 2008-03-15 | 1 | -4/+3 |
| | | | | | | cast to make it explicit. Found by lint, OK millert. | ||||
* | use pgfree pool like other code does to reserve free list slots. | otto | 2008-02-20 | 1 | -6/+6 |
| | | | | | prevents a few "cannot free mem because i need mem to free mem" scenarios (one found by weingart@). ok weingart@ millert@ miod@ | ||||
* | - make arc4random*() functions thread safe. Use a custom spinlock function | kurt | 2008-01-01 | 2 | -42/+69 |
| | | | | | | | | | | | instead of the generic pthread macros since free(3) uses __arc4_getbyte() when freeing small sized allocations and the generic pthread macros call malloc(3). - eliminate passing pointers to a static variable with global scope (rs) for additional code clarity and reduction. - shlib minor bumps for libc and libpthread due to new functions. From andreas@ with some bits from me. okay tedu@ marc@ w/some spot checking from millert@ | ||||
* | typos; ok jmc@ | martynas | 2007-11-27 | 1 | -2/+2 |
| | | | | sys/dev/pci/pciide.c from naddy@ | ||||
* | fix misleading comment; the _MUTEX_LOCK/_MUTEX_UNLOCK macros work with | kurt | 2007-11-19 | 1 | -2/+2 |
| | | | | both static and non-static mutexs. | ||||
* | Put limits.h in front of stdlib.h as style(9) recommends. | tobias | 2007-11-13 | 2 | -8/+8 |
| | | | | OK millert@ | ||||
* | strtod may return HUGE_VAL on overflow, which is defined in math.h. | tobias | 2007-11-11 | 1 | -2/+3 |
| | | | | | | Therefore added math.h to SYNPOSIS. OK millert@ | ||||
* | Add parentheses to avoid warning: | chl | 2007-10-31 | 1 | -2/+2 |
| | | | | | | "suggest parentheses around && within ||" ok millert@ | ||||
* | Make sure to use unique target names so that make -j does not break; | miod | 2007-10-25 | 1 | -25/+25 |
| | | | | feedback and ok espie@ | ||||
* | use RRSIG instead of SIG for DNSSEC. ok djm@ | jakob | 2007-10-11 | 3 | -6/+7 |
| | |||||
* | add a RETURN VALUES section. | pyr | 2007-10-08 | 1 | -9/+9 |
| | | | | ok jmc@ | ||||
* | add HISTORY; shortened version of diff from Ilya A. Kovalenko | jmc | 2007-09-19 | 1 | -2/+7 |
| | | | | ok millert | ||||
* | Check snprintf(3) return value for error or truncation. | moritz | 2007-09-17 | 1 | -1/+5 |
| | | | | | | Mostly path construction, where truncation could be bad. ok and input from deraadt@ millert@ ray@ | ||||
* | Add missing header to avoid warning | chl | 2007-09-05 | 1 | -1/+2 |
| | | | | ok millert@ ray@ | ||||
* | no need to talk about bits; ok millert jmc | deraadt | 2007-09-05 | 1 | -3/+3 |
| | |||||
* | Update free(3) section--we use mmap()/munmap(), not brk(). | millert | 2007-09-03 | 1 | -4/+6 |
| | | | | Based on a diff from Mike Belopuhov. OK jmc@ | ||||
* | remove trailing whitespace; | jmc | 2007-09-03 | 1 | -2/+2 |
| | |||||
* | Add __cxa_atexit() support for gcc3. This provides support for shared ↵ | millert | 2007-09-03 | 4 | -30/+108 |
| | | | | object destructors called at dlclose() time. Inspired by similar changes in FreeBSD and NetBSD. | ||||
* | add recaloc(3) | millert | 2007-09-03 | 3 | -20/+62 |
| | |||||
* | add memrchr(3) | millert | 2007-09-03 | 3 | -5/+63 |
| | |||||
* | use calloc() to avoid malloc(n * m) overflows; checked by djm canacar jsg | deraadt | 2007-09-02 | 6 | -12/+12 |
| | |||||
* | Clarify the example about avoiding overflow. OK ray@ deraadt@ | millert | 2007-08-08 | 1 | -3/+3 |
| | |||||
* | Show how to use strcspn(3) to trim newlines. | ray | 2007-08-08 | 1 | -2/+14 |
| | | | | OK jmc and millert. | ||||
* | /*FALLTHRU*/ -> /* FALLTHROUGH */ | ray | 2007-08-05 | 1 | -2/+2 |
| | |||||
* | Reference limits.h, not sys/param.h since we document using PATH_MAX | millert | 2007-07-06 | 1 | -3/+3 |
| | | | | OK otto@ | ||||
* | from ginsbach@netbsd, -r1.18: | jmc | 2007-07-03 | 1 | -2/+7 |
| | | | | | | | | Document that getopt_long(3) can and will accept unique abbreviated long option names. This feature has been present since getopt_long(3) was first released in NetBSD 1.5. This is also standard GNU getopt_long(3) behavior. ok millert |