Commit message (Collapse) | Author | Age | Files | Lines | |
---|---|---|---|---|---|
* | Check for duplicate variables in the environment when setting a value | millert | 2010-08-23 | 2 | -11/+24 |
| | | | | via setenv() or putenv(). OK miod@ | ||||
* | Sync hcreate(3) with NetBSD, adding some caveats. | ray | 2010-07-28 | 1 | -12/+67 |
| | | | | OK jmc | ||||
* | getopt_long.c replaced getopt.c 6+ years ago; we can retire | blambert | 2010-07-22 | 1 | -7/+1 |
| | | | | | | the REPLACE_GETOPT macro, at long last ok millert@ | ||||
* | Document new unsetenv() error returns. | naddy | 2010-07-06 | 1 | -2/+8 |
| | | | | From Nicolas Legrand <nlegrand@ethelred.fr>; ok jmc@ | ||||
* | getpeereid() can now be a library routine using getsockopt() with | deraadt | 2010-07-01 | 3 | -3/+158 |
| | | | | | | | SOL_SOCKET and SO_PEERCRED, only issue being that it cannot return EFAULT for a page fault. The kernel code will soon be put into compat, and then in 10 years or so tedu will delete it. ok guenther millert | ||||
* | use a union to align the dns answer buffer until gcc4 is fixed | deraadt | 2010-06-29 | 1 | -5/+8 |
| | |||||
* | use a union to align the dns answer buffer until gcc4 is fixed | deraadt | 2010-06-29 | 1 | -5/+8 |
| | |||||
* | Make unsetenv(NULL) and unsetenv("") give EINVAL, per POSIX. ok deraadt@ | naddy | 2010-06-29 | 1 | -1/+5 |
| | |||||
* | Avoid using and end pointer since strnlen(string, -1) is legal | millert | 2010-06-02 | 1 | -4/+3 |
| | | | | | and would otherwise result in overflowing the end pointer and cause strnlen() to return 0. OK sthen@ | ||||
* | oops - forgot to check for trailing whitespace; | jmc | 2010-05-26 | 1 | -2/+2 |
| | |||||
* | reword the 'D' dump bit to make it clear that the malloc.out file needs | thib | 2010-05-26 | 1 | -4/+5 |
| | | | | | | | to exist before exit for malloc to dump stats in it. tweaks from jmc@ ok otto@,jmc@ | ||||
* | Add HISTORY section, mostly for strnlen() but include strlen() for | millert | 2010-05-24 | 1 | -2/+11 |
| | | | | completeness (verified). | ||||
* | remove unused variable. | chl | 2010-05-21 | 1 | -2/+1 |
| | | | | ok millert@ tedu@ | ||||
* | tweak previous; | jmc | 2010-05-19 | 3 | -15/+13 |
| | |||||
* | add posix_madvise, posix_memalign, strndup, and strnlen. mostly from | tedu | 2010-05-18 | 9 | -17/+270 |
| | | | | | brad and millert, with hints from guenther, jmc, and otto I think. ok previous. | ||||
* | Do not return success when the IPv6 address has a :: and 8 hex sections. | claudio | 2010-05-06 | 1 | -3/+4 |
| | | | | | | ::1:2:3:4:5:6:7:8 for example. PR 6277, fix by Jun KAWAI (kwj at vlax net) OK henning, gilles, jsing (who also reminded me to remove the now wrong comment about superfluous ::) | ||||
* | - nuke some unneeded Pp; from kristaps | jmc | 2010-04-07 | 1 | -6/+3 |
| | | | | - small tweak while here | ||||
* | WARNINGS -> CAVEATS, and a little neccessary cleanup; | jmc | 2010-04-01 | 2 | -24/+24 |
| | |||||
* | Modify example not to use an assignment in the if statement. We shouldn't | kettenis | 2010-03-24 | 1 | -3/+4 |
| | | | | | | teach people bad habits! ok krw@, jmc@, dlg@, thib@ | ||||
* | It's unsetenv() that doesn't like `=' in the argument, not putenv(). | kili | 2010-03-10 | 1 | -3/+3 |
| | | | | ok millert@ | ||||
* | Use size_t in appropriate places; fixes sorting of big arrays; | otto | 2010-02-08 | 1 | -9/+10 |
| | | | | | after the diff was written, I made it similar to the freebsd fix of the same code; pr6287 ok millert@ guenther@ | ||||
* | use size_t to index arrays; avoids big array bugs; ok millert@ guenther@ | otto | 2010-02-08 | 1 | -1/+1 |
| | |||||
* | Use MACHINE_CPU instead of MACHINE_ARCH to pick the correct machine dependent | miod | 2010-02-03 | 4 | -17/+17 |
| | | | | | | | files or directories when applicable. The inspiration and name of MACHINE_CPU come from NetBSD, although the way to provide it to Makefiles is completely different. ok kettenis@ | ||||
* | stucture -> structure; | jmc | 2010-01-25 | 1 | -3/+3 |
| | |||||
* | New options 'S', as a shorthand for the options most suitable as an | otto | 2010-01-13 | 2 | -3/+9 |
| | | | | extra safeguard (FGJ). Idea from deraadt@; ok deraadt@ dlg@ | ||||
* | replace a few remaining UNIX terms with .Ux macros; this diff | sobrado | 2009-12-29 | 1 | -4/+4 |
| | | | | completes the changes from Oct 22. | ||||
* | save calls to arc4random() by using a nibble at a time; not because | otto | 2009-12-16 | 1 | -24/+27 |
| | | | | | arc4random() is slow, but it induces getpid() calls; also saves a bit on stirring efforts | ||||
* | No point in refreshing the pid from inside arc4_stir() when that | guenther | 2009-12-15 | 1 | -6/+15 |
| | | | | | | | | | doesn't test it, so factor out the two places that test it into a routine and do the refreshing there. With this, arch4random_buf() doesn't trigger superfluous calls to getpid() when filling large buffers. ok deraadt@, "looks nicer indeed" otto@ | ||||
* | Make userland malloc use __LDPGSZ granularity on mips, regardless of the | miod | 2009-12-07 | 1 | -1/+3 |
| | | | | actual kernel page size. | ||||
* | missing word; | jmc | 2009-12-05 | 1 | -3/+3 |
| | | | | from trhodes@freebsd, r200095; | ||||
* | Switch the chunk_info lists to doubly-linked lists and use the queue | otto | 2009-11-27 | 1 | -51/+34 |
| | | | | | | macros for them. Avoids walking the lists and greatly enhances speed of freeing chunks in reverse or random order at the cost of a little space. Suggested by Fabien Romano and Jonathan Armani; ok djm@ | ||||
* | Don't forget to fill region from the cache with junk if needed in one case; | otto | 2009-11-27 | 1 | -1/+3 |
| | | | | from Fabien Romano and Jonathan Armani | ||||
* | No need to clear a mmapped region; from Fabien Romano and Jonathan | otto | 2009-11-27 | 1 | -2/+1 |
| | | | | Armani | ||||
* | More shrinkage, a bit for ramdisks but mostly for static binaries: | guenther | 2009-11-18 | 5 | -392/+445 |
| | | | | | | | | | | | | | | | | | - wrap with #ifndef NO_LOG_BAD_DNS_RESPONSES libc code that uses p_class() and p_type() for diagnostics, then add that define to libstub to avoid pulling in res_debug_syms.o - split rcmd() and ruserok() into separate files, as nothing uses both - split readdir_r() to its own file - split syslog_r() from syslog(), as the latter needs localtime(); many binaries no longer need to pull in all the time code after this; switch from usleep() to nanosleep() while we're at it (The profit of analysis of -Wl,-M,--cref output) Chops 888kB from /bin and /sbin on i386 ok deraadt@, miod@ | ||||
* | permit -DMALLOC_STATS to compile again | todd | 2009-11-02 | 1 | -2/+2 |
| | | | | | noticed by Jonathan Armani & Fabien Romano ugh+ok otto@ | ||||
* | s/Mhz/MHz/, MHz is a multiple of the SI unit hertz (whose symbol is Hz). | sobrado | 2009-10-31 | 1 | -2/+2 |
| | |||||
* | rcsid[] and sccsid[] and copyright[] are essentially unmaintained (and | deraadt | 2009-10-27 | 1 | -5/+1 |
| | | | | | | | unmaintainable). these days, people use source. these id's do not provide any benefit, and do hurt the small install media (the 33,000 line diff is essentially mechanical) ok with the idea millert, ok dms | ||||
* | Check mmap return value against MAP_FAILED not NULL. | pirofti | 2009-10-20 | 1 | -2/+2 |
| | | | | Okay deraadt@, otto@. | ||||
* | teach gdtoa & its subroutines that malloc can fail; in which case | martynas | 2009-10-16 | 2 | -2/+6 |
| | | | | | | ecvt, fcvt, gcvt, *printf, strtof, strtod, strtold act per ieee 1003.1. after these massive changes, remove unused files which would not work now. reported by Maksymilian Arciemowicz; ok theo | ||||
* | rewrite the history section, prompted by Paul Stoeber; ok deraadt@ jmc@ | otto | 2009-10-10 | 1 | -25/+28 |
| | |||||
* | make getaddrinfo(3) accept numeric servname when ai_socktype is not | fgsch | 2009-09-02 | 1 | -4/+2 |
| | | | | | specified in hint or hints is NULL. claudio@ ok | ||||
* | various MLINK fixes from Alan R. S. Bueno; | jmc | 2009-08-13 | 1 | -3/+3 |
| | |||||
* | promote correct style for error checking | eric | 2009-07-09 | 1 | -7/+7 |
| | | | | ok tedu@ deraadt@ krw@ | ||||
* | abs conforms c99 -> imaxabs conforms c99. ok millert@ | martynas | 2009-06-21 | 1 | -3/+3 |
| | |||||
* | quieten compiler by converting pointers to uintptr_t before truncating them | deraadt | 2009-06-08 | 1 | -5/+5 |
| | | | | | to u_int32_t to do integer math with (in a situation where that is legit) ok otto millert | ||||
* | compare and shift buffer against a fixed length not strlen derived values. | pyr | 2009-06-05 | 1 | -6/+6 |
| | | | | ok otto@ | ||||
* | simplify the 'family' option parser and make it more evident what we're | pyr | 2009-06-04 | 2 | -25/+18 |
| | | | | | | now doing. ok deraadt@ | ||||
* | Don't assume that we can overwrite strings in the environment. | millert | 2009-06-04 | 1 | -1/+3 |
| | | | | | Someone may have passed a read-only string to putenv() (I'm looking at you cron!). | ||||
* | Add a resolv.conf option to specify the order in which getaddrinfo | pyr | 2009-06-04 | 2 | -8/+63 |
| | | | | | | | | | | | PF_UNSPEC queries are made. While there change the default from inet6 first then inet4 to inet4 first then inet6, this prevents the many people with IPv4 only connectivity from constantly trying to contact IPv6 addresses, and also unbreaks many ports who don't use getaddrinfo right. ok deraadt@, plenty of cheering in the room wrt the idea, not loud enough complaining from the v6 crowd. | ||||
* | Make putenv(), setenv() and unsetenv() standards compliant. The | millert | 2009-06-03 | 5 | -86/+117 |
| | | | | | | standard explicitly disallows passing setenv a name with a '=' in it but historic BSD behavior is to allow this but to ignore the '=' and anything after it. |