summaryrefslogtreecommitdiffstats
path: root/lib/libc (follow)
Commit message (Collapse)AuthorAgeFilesLines
...
* strtod may return HUGE_VAL on overflow, which is defined in math.h.tobias2007-11-111-2/+3
| | | | | | Therefore added math.h to SYNPOSIS. OK millert@
* Stash value of log_tag before calling closelog_r() and restore it after.millert2007-11-091-2/+6
| | | | | | When closelog() was modified to clear log_tag it inadvertantly made syslog_r() (which calls closelog_r at the end) clear log_tag as well. OK miod@ dhartmei@
* malloc/memset -> callocchl2007-11-061-3/+2
| | | | ok ray@
* sync the comments for struct stat w/ <sys/stat.h>;jmc2007-11-051-9/+9
|
* - sync the error descriptions w/ those in errlistjmc2007-11-051-18/+18
| | | | - escape "No" incase groff thinks it's a macro call
* Simplify some of the logic in fts_close(). Initially based on amillert2007-11-021-17/+14
| | | | diff from chl@. OK otto@ and chl@.
* Fix waitpid() idiom. Noticed by deraadt@millert2007-11-011-4/+3
|
* Add parentheses to avoid warning:chl2007-10-311-2/+2
| | | | | | "suggest parentheses around && within ||" ok millert@
* If we receive SIGTTOU when turning off echo, the process is alreadymillert2007-10-301-20/+27
| | | | | | | backgrounded. Do not print the password prompt in this case since the first read will result in the process receiving SIGTTIN. Fixes an issue where the password prompt would be displayed when readpassphrase() would not be able to read anything. OK deraadt@
* Repair FLT_ROUNDS operation. ok kettenis@miod2007-10-272-6/+6
|
* Make sure to use unique target names so that make -j does not break;miod2007-10-251-25/+25
| | | | feedback and ok espie@
* Change the syscall invocation sequences to no longer fetch the last fewmiod2007-10-242-8/+2
| | | | | | | | | | arguments from the stack, since the kernel will now copyin() them when necessary. This makes all system calls (but mmap()) slightly faster. WARNING! After this commit, your binaries must run against a kernel featuring m88k/m88k/trap.c r1.34 or better - i.e. a 4.1 or later kernel.
* Comment fix about time consumption of _gettemp.tobias2007-10-211-5/+2
| | | | | | FreeBSD did this in revision 1.20. OK deraadt@, krw@
* fix typo in _telldir_unlocked function prototype, to avoid warning.chl2007-10-122-6/+5
| | | | | | while there, put all function prototypes in header file. ok kurt@
* use RRSIG instead of SIG for DNSSEC. ok djm@jakob2007-10-113-6/+7
|
* add a proper test around allocsetchl2007-10-101-51/+33
| | | | | | | | | | | use a simpler way to allocated memory in allocset, mostly done by replacing malloc/realloc dance, by only one realloc add comments about variables that are not used uninitialized, even if gcc told the contrary another malloc/realloc -> realloc change Work initially started by otto@, and then I joined him ok otto@ ray@
* add a RETURN VALUES section.pyr2007-10-081-9/+9
| | | | ok jmc@
* attribute packed -> __packedgilles2007-10-081-4/+4
| | | | OK millert
* update to tzcode2007h from elsie.nci.nih.govmillert2007-10-041-2/+2
|
* fix a libpthread PANIC in seekdir(3) caused by a recursive mutex lock.kurt2007-10-022-11/+24
| | | | | | remove the recursive lock in __seekdir() and ensure all callers properly lock dd_lock prior to calling. reported and tested by bernd@ okay marc@ tedu@
* strtol -> strtonumblambert2007-09-271-19/+15
| | | | | | | | assign values to struct members directly remove now-unused variable ok otto@ ok & input millert@
* tweak previous; ok claudio henningjmc2007-09-251-5/+5
|
* updatecomment and manpage toemtion optional seventh level (rtable id)henning2007-09-241-2/+6
| | | | From: Pierre Riteau <pierre.riteau@free.fr>
* Add some more truncation checks for path construction in tmpnam(3).moritz2007-09-211-8/+24
| | | | ok ray@
* add HISTORY; shortened version of diff from Ilya A. Kovalenkojmc2007-09-191-2/+7
| | | | ok millert
* Fix comment typos; ok ray@, jmc@blambert2007-09-171-4/+4
|
* Prevent out-of-bounds memory access in tempnam(3), if the environmentmoritz2007-09-171-3/+4
| | | | | | variable TMPDIR or the argument `dir' is an empty string. With and ok millert@ ray@
* Check snprintf(3) return value for error or truncation.moritz2007-09-1712-38/+112
| | | | | | Mostly path construction, where truncation could be bad. ok and input from deraadt@ millert@ ray@
* for get the flags arg must be 0; from Tamas TEVESZ; ok millert@otto2007-09-161-2/+6
|
* Remove wrong snprintf(3) truncation checks, which can't bemoritz2007-09-121-15/+25
| | | | | | | triggered and are off-by-one anyways. Instead replace them with correct checks and add all the missing cases. ok deraadt@
* Proper use of fseek/fseeko macros.tobias2007-09-101-2/+2
| | | | OK joris@, otto@
* Add lint stubs for the longjmp family of functions which are defined inotto2007-09-095-3/+66
| | | | assembly on all platforms. ok deraadt@
* Silence erroneous "environ used, but not defined" lint warning byotto2007-09-092-3/+10
| | | | providing a stub. ok deraadt@
* typo; ok deraadt@otto2007-09-081-2/+2
|
* it's MAXNAMLEN, not MAXNAMELEN; spotted by Igor Zinovi.otto2007-09-081-5/+5
|
* IPv6 is not an ARPA protocol;jmc2007-09-071-3/+3
| | | | | from Robert Elz, netbsd-bugs pr#36933 ok otto deraadt
* Say NUL when referring to \0cloder2007-09-071-3/+3
|
* _xpg4_setrunelocale() returns an errno(2) value in the failuremoritz2007-09-061-2/+2
| | | | | | | case and 0 if the locale was found. So checking against -1 makes no sense. ok millert@
* Add missing header to avoid warningchl2007-09-051-1/+2
| | | | ok millert@ ray@
* Fix debugging code, which tried to print the netgroup namemoritz2007-09-051-3/+3
| | | | | | using the return value of _ng_print(), which returns void. ok millert@
* no need to talk about bits; ok millert jmcderaadt2007-09-051-3/+3
|
* Update free(3) section--we use mmap()/munmap(), not brk().millert2007-09-031-4/+6
| | | | Based on a diff from Mike Belopuhov. OK jmc@
* remove trailing whitespace;jmc2007-09-031-2/+2
|
* crank libc and libstdc++ majorsmillert2007-09-031-1/+1
|
* Add __cxa_atexit() support for gcc3. This provides support for shared object destructors called at dlclose() time. Inspired by similar changes in FreeBSD and NetBSD.millert2007-09-034-30/+108
|
* Add ENOMSG and EIDRM; from jsg@millert2007-09-035-46/+27
|
* add recaloc(3)millert2007-09-033-20/+62
|
* add memrchr(3)millert2007-09-033-5/+63
|
* use calloc() to avoid malloc(n * m) overflows; checked by djm canacar jsgderaadt2007-09-0213-27/+27
|
* Update to tzcode2007f grom elsie.nci.nih.gov; no actual code changesmillert2007-08-222-10/+35
|