Commit message (Collapse) | Author | Age | Files | Lines | |
---|---|---|---|---|---|
* | Don't call lstat() before readlink() just to see if it's a symlink, | guenther | 2016-08-28 | 1 | -14/+17 |
| | | | | | | as readlink() will tell you that more cheaply. ok millert@ | ||||
* | Pull in <time.h> for clock_gettime() | guenther | 2016-08-26 | 1 | -1/+2 |
| | | | | ok deraadt@ | ||||
* | wrterror() is fatal, delete dead code; ok tom@ natano@ tedu@ | otto | 2016-08-17 | 1 | -61/+22 |
| | |||||
* | add a bit of spacing to previous, to keep the notes about deprecated | jmc | 2016-08-15 | 2 | -4/+6 |
| | | | | | | functions out the way of the main body; ok guenther | ||||
* | Reduce qabs() and qdiv() to aliases of llabs() and lldiv(). | guenther | 2016-08-14 | 12 | -228/+36 |
| | | | | | | Merge the manual pages and call them deprecated there. ok and manpage tweak jmc@, ok natano@ | ||||
* | Obvious minor fixes: | schwarze | 2016-08-05 | 2 | -36/+57 |
| | | | | | | | | * Add missing .Dv, .Ev, and .Fa macros. * Delete deprecated .Tn macros. * Mark up global variable names with .Va, not with .Fa or .Li. * Mark up config file commands with .Ic, not with .Fa. * Fix HISTORY, trivial to verify from the CSRG archive CD. | ||||
* | Make RES_OPTIONS point directly to resolv.conf(5) instead of going through | martijn | 2016-08-05 | 1 | -3/+3 |
| | | | | | | resolver(3). OK jmc@ | ||||
* | J/j is a three valued option, document and fix code to actuall support that | otto | 2016-07-06 | 1 | -3/+5 |
| | | | | | with a little help from jmc@ for the man page bits ok jca@ and a reluctant tedu@ | ||||
* | adapt S option: add C, rm F (not relevant with 0 cache and disables | otto | 2016-06-30 | 1 | -3/+3 |
| | | | | chunk rnd), rm P: is default | ||||
* | Back out previous; otto saw a potential race that could lead to a | tb | 2016-06-28 | 1 | -32/+23 |
| | | | | | | double unmap and I experienced a much more unstable firefox. discussed with otto on icb | ||||
* | defer munmap to after unlocking malloc. this can (unfortunately) be an | tedu | 2016-06-27 | 1 | -23/+32 |
| | | | | | | | expensive syscall, and we don't want to tie up other threads. there's no need to hold the lock, so defer it to afterwards. from Michael McConville ok deraadt | ||||
* | increase the minimum for auto rounds to 6. that was the previous low bound | tedu | 2016-06-26 | 1 | -2/+2 |
| | | | | for login.conf, and we don't want to go lower. | ||||
* | Fix typo; the period should be outside the parens. From Michael McConville | millert | 2016-06-02 | 1 | -3/+3 |
| | |||||
* | The icdb magic number doesn't need to be visible to static links | guenther | 2016-05-30 | 1 | -2/+2 |
| | | | | ok tedu@ | ||||
* | Remove dead support for changing BDB hash algorithm and cache of alternatives | guenther | 2016-05-29 | 1 | -5/+4 |
| | | | | ok natano@ millert@ deraadt@ | ||||
* | Prefer AF_* over PF_* and 'address family' over 'protocol family' | guenther | 2016-05-29 | 1 | -9/+9 |
| | | | | ok jung@ | ||||
* | rcmd(3) and rcmdsh(3) use getaddrinfo(3) not gethostbyname(3). | millert | 2016-05-28 | 2 | -9/+9 |
| | |||||
* | Use getaddrinfo() instead of the non-standard gethostbyname2(). | millert | 2016-05-28 | 1 | -5/+14 |
| | | | | OK deraadt@ jca@ jung@ florian@ | ||||
* | The destination string is declared as "s" but referred to as "dst" | millert | 2016-05-26 | 1 | -5/+5 |
| | | | | | in some cases. Be consistent and use "dst" everywhere like for strlcat(3) and strncat(3). From Tim Kuijsten. | ||||
* | Remove iruserok(_sa)? and __ivaliduser(sa)? | guenther | 2016-05-23 | 2 | -90/+20 |
| | | | | ok millert@ deraadt@ | ||||
* | Eliminate __check_rhosts_file and __rcmd_errstr: they were only used by | guenther | 2016-05-23 | 1 | -5/+1 |
| | | | | | | rlogind and rshd (remember them?) ok deraadt@ | ||||
* | Stop exposing <sys/localedef.h> and various symbols internal to the libc | guenther | 2016-05-23 | 1 | -0/+106 |
| | | | | | | | locale implementation: _{Current,Default}*Locale, __[mn]locale_changed, __mb_len_max_runtime ok millert@ schwarze@ deraadt@ | ||||
* | Add RETURN VALUES section and .Xr to memmem(3). | schwarze | 2016-05-11 | 1 | -3/+4 |
| | | | | | From Michal Mazurek <akfaew at jasminek dot net>. OK tedu@ | ||||
* | Oops: the caching of TCB address in single-threaded processes on archs with | guenther | 2016-05-10 | 1 | -2/+2 |
| | | | | slow TCB_GET (alpha, arm, mips64, sh) was broken when I switched CPP symbols. | ||||
* | Use a Thread Information Block in both single and multi-threaded programs. | guenther | 2016-05-07 | 3 | -135/+252 |
| | | | | | | | | | | | | | | | | | This stores errno, the cancelation flags, and related bits for each thread and is allocated by ld.so or libc.a. This is an ABI break from 5.9-stable! Make libpthread dlopen'able by moving the cancelation wrappers into libc and doing locking and fork/errno handling via callbacks that libpthread registers when it first initializes. 'errno' *must* be declared via <errno.h> now! Clean up libpthread's symbol exports like libc. On powerpc, offset the TIB/TCB/TLS data from the register per the ELF spec. Testing by various, particularly sthen@ and patrick@ ok kettenis@ | ||||
* | Remove a vax remnant (that was really a no-op anyway). | millert | 2016-05-02 | 1 | -3/+1 |
| | |||||
* | Remove old NeXT-specific cruft. From mmcc@ | millert | 2016-05-01 | 1 | -13/+1 |
| | |||||
* | Allow setenv(3) and putenv(3) to operate on a NULL environ pointer. | millert | 2016-04-25 | 1 | -11/+15 |
| | | | | | | The getenv(3) and unsetenv(3) functions already support this. This will make it easier to emulate the glibc clearenv() function in ports. Based on a diff from and OK jca@ | ||||
* | two times a define to an inline function, from Michael McConville; ok djm@ | otto | 2016-04-12 | 1 | -10/+19 |
| | |||||
* | tweak MALLOC_STATS printing (switched off by default), prodded by | otto | 2016-04-09 | 1 | -14/+14 |
| | | | | Michael McConville | ||||
* | redundant memset(3), from Michael McConville, ok armani@ | otto | 2016-04-09 | 1 | -2/+1 |
| | |||||
* | Prefer _MUTEX_*LOCK over _THREAD_PRIVATE_MUTEX_*LOCK() when thread-specific | guenther | 2016-04-05 | 2 | -8/+8 |
| | | | | | | data isn't necessary. ok mpi@, ok&tweak natano@ | ||||
* | Update example in comment: setlogin doesn't use {PROTO,DEF}_WRAP() now | guenther | 2016-04-05 | 1 | -8/+8 |
| | |||||
* | Document ``use after free'' error message | otto | 2016-04-03 | 1 | -2/+4 |
| | |||||
* | for some time now mandoc has not required MLINKS to function | jmc | 2016-03-30 | 4 | -112/+4 |
| | | | | | | | | | | | | correctly - logically complete that now by removing MLINKS from base; authors need only to ensure there is an entry in NAME for any function/ util being added. MLINKS will still work, and remain for perl to ease upgrades; ok nicm (curses) bcook (ssl) ok schwarze, who provided a lot of feedback and assistance ok tb natano jung | ||||
* | properly guard to macros | mmcc | 2016-03-17 | 1 | -5/+5 |
| | | | | ok otto@ | ||||
* | small step towards multiple pools: move two globls into the struct dir_info | otto | 2016-03-14 | 1 | -112/+126 |
| | | | | ok @stefan armani@ | ||||
* | environ and __progname are not declared in a public header; declare them | guenther | 2016-03-13 | 4 | -10/+4 |
| | | | | | | in libc's hidden/stdlib.h instead of in each .c file that needs one ok deraadt@ gsoares@ mpi@ | ||||
* | Remove sentences in RETURN VALUES sections saying that functions with | mmcc | 2016-03-12 | 4 | -25/+8 |
| | | | | | | | | | | | | | void return types 'return no value'. This is obvious and therefore unneccessary to mention. We spare rewind(3)'s sentence because espie@ pointed out that it's a warning - the function masks a potential error. This commit also adds a sentence to X509_free clarifying that it's NULL-safe. This bit was discussed with doug@. ok martijn@, sentiment supported by schwarze@ | ||||
* | un-vax; | jmc | 2016-03-10 | 1 | -3/+3 |
| | |||||
* | refactor option letter parsing into a subfunction, to increase clarity | deraadt | 2016-02-25 | 1 | -93/+102 |
| | | | | | about which options are turned on/off by 's' and 'S' ok tedu | ||||
* | compare pointer to NULL in example code | mmcc | 2016-02-07 | 1 | -3/+3 |
| | |||||
* | be more forceful about not using these. | espie | 2016-02-05 | 1 | -2/+9 |
| | | | | improvements sthen@, jmc@. okay millert@, jca@ jmc@ | ||||
* | Fix err(3) calls after allocation failures in examples. | schwarze | 2016-02-05 | 1 | -8/+8 |
| | | | | | | There is long-standing consensus that err(1, NULL) is the best idiom after failure of malloc(3) and friends. Quirk in the manual noticed by tb@. | ||||
* | Don't crash dumping malloc stats if malloc_init hasn't been called, noted by | otto | 2016-01-26 | 1 | -1/+3 |
| | | | | David CARLIER | ||||
* | Long ago, malloc internally had two kinds of failures, warnings and errors. | tedu | 2016-01-06 | 2 | -14/+7 |
| | | | | | | | | The 'A' option elevated warnings to errors, and has been the default for some time. Then warnings were effectively eliminated in favor of everything being an error, but then the 'a' flag turned real errors into warnings! Remove the 'a' option entirely. You shouldn't have used it anyway. ok tb tdeval | ||||
* | Follow style(9) and drop lint /* NOTREACHED */ annotations from | tb | 2016-01-04 | 2 | -6/+4 |
| | | | | | | | | the examples. Diff from Juuso Lapinlampi < wub () partyvan ! eu >, thanks! ok schwarze@ | ||||
* | another case where bad things would happen after wrterror | tedu | 2015-12-30 | 1 | -2/+4 |
| | |||||
* | if somebody makes the mistake of disabling abort, don't deref null in | tedu | 2015-12-30 | 1 | -2/+4 |
| | | | | validate_junk. from Michal Mazurek | ||||
* | Remove NULL-checks before free() and a few related dead assignments. | mmcc | 2015-12-28 | 2 | -8/+5 |
| | | | | ok and valuable input from millert@ |