summaryrefslogtreecommitdiff
path: root/lib/libc/stdlib
AgeCommit message (Collapse)Author
2001-12-15Use __sh__ instead of __sh3__.thorpej
2001-11-04fix WARNS=2 (-Wshadow) warningslukem
2001-10-31Inspired by Stevens' APUE and the implementation example in XSH:kleink
* Don't return if wait()ing for the child is interrupted. * Fix a race condition for the parent's SIG{INT,QUIT} disposition. * While we're here, convert from using signal(3) to sigaction(2).
2001-09-16Drop unnecessary whitespace and .Pp, sort SEE ALSO, sort sections,wiz
and some minor fixes.
2001-09-16Sort SEE ALSO and remove trailing comma.enami
2001-06-19Add x86_64 to the list of if defined(blah) for endian determinationfvdl
(surely this can be done in a better way).
2001-06-09remove confusing comparison with srand (it does not return the old seed)assar
use .Sh AUTHORS and .An for author
2001-06-07Add sradixsort to the NAME section.simonb
2001-05-10Add an underscore for consistency.mycroft
2001-05-07For consistency add a _DIAGASSERT() case, and remove some cruft.kleink
2001-05-07Add a _DIAGASSERT() case, and remove some cruft.kleink
2001-05-07Use <stddef.h> rather than <stdio.h> if it's just NULL that's wanted.kleink
2001-05-07need stdio.h for NULL...lukem
2001-05-06More fixes:christos
1. use uintptr_t instead of u_long 2. check for overflow in map_pages and malloc_pages 3. bring in fixes from FreeBSD [int -> size_t, and a missing THREAD_UNLOCK] 4. rewrite map_pages to use sbrk() only to grow memory (avoids extra syscall and elides bug in brk(2) that ross is fixing) 5. restore the break point to its original value if the mmap(2) for the page directory or the alignment sbrk breaks. reviewed by: chuq and ross tested by: make build and reboot Now memtest nearly works; unfortunately there is no way currently to lower the break point as we free, so memtest keeps trying to reduce memory when mlock() fails and that does not work.
2001-05-03PR/12810: Chris ?: malloc core-dumps when given large number as the argument.christos
This is because integer overflow occurs in the computation of the size of the page directory array. We now detect that, and return ENOMEM.
2001-04-28* Move definitions of exact-width integer types from <machine/types.h>kleink
to <sys/types.h> and <sys/stdint.h>. * Add a new C99 <stdint.h> header, which provides integer types of explicit width, related limits and integer constant macros. * Extend <inttypes.h> to provide <stdint.h> definitions and format macros for printf() and scanf(). * Add C99 strtoimax() and strtoumax() functions. * Use the latter within scanf(). * Add C99 %j, %t and %z printf()/scanf() conversions for intmax_t, pointer-type and size_t arguments.
2001-04-24don't claim that options are illegal, cf lib/12715joda
2001-03-22document EXIT_SUCCESS and EXIT_FAILURE, since they've been aroundcgd
since ANSI and (for portability, since ANSI) in some circles they're the preferred exit status codes.
2001-03-21Sprinkle some restrict qualifiers.kleink
2001-03-16Add documentation of nmemb parameter, per PR 10567fair
2001-02-21Add support for ARM VFP-format doubles, conditional on __VFP_FP__.bjh21
2001-02-21fix _DIAGASSERT usage in hsearch()lukem
2001-02-19nuke a ref to __progname that somehow crept incgd
2001-02-19convert from __progname to getprogname()cgd
2001-02-19LP64ross
2001-02-16add hcreate.3msaitoh
2001-02-14update for current status of implementationcgd
2001-02-14build new hsearch() codecgd
2001-02-14add new, from scratch implementation of hsearch() et al that actually workscgd
2001-02-14move db/man/hcreate.3 to stdlib/hcreate.3cgd
2001-02-12don't extern char *__progname; it's never used!cgd
2001-02-09__arm26__ || __arm32__ -> __arm__bjh21
Not least because the unified NetBSD/arm compiler probably won't predefine __arm26__ or __arm32__.
2001-01-12slighly clarify how endbyte is used, so that this matches implementation ↵jdolecek
more closely
2001-01-08link sradixsort(3) -> radixsort(3)lukem
2001-01-05we now have utrace, support it herejdolecek
2001-01-04sprinkle _DIAGASSERT() aroundlukem
2000-12-21first import of citrus LC_CTYPE locale. singlebyte only at this moment.itojun
shot-term TODO: - enable multibyte locales. this includes loadable locale modules (#ifdef DLRUNE). - populate LC_CTYPE definition files. - other functions such as iconv() - make libc functions more friendly with multibyte. - multilingualize other LC_xx - torture tests XXX don't forget to "make depend" when you rebuild libc, multibyte.c is moved from lib/libc/stdlib to lib/libc/locale.
2000-12-20fix sbrk castschristos
2000-12-20avoid nested extern declarationchristos
2000-12-20fix nested externchristos
2000-12-19fix nested extern declaration.christos
2000-12-13Radixsort wants a const u_char ** as a fisrt argument, not just agarbled
u_char **. Fix this manpage.
2000-11-26Be SUS-conformant regarding return value when option argument is missing.wiz
Handle "-" correctly.
2000-11-26Reorder sections to conform more to mdoc.samples; remove non-mdocwiz
section header; fix two typos.
2000-10-05make random(3) manpage meet with actual implementation.itojun
argument to srandom() and initstate() were changed in lib/libc/stdlib/random.c 1.28 -> 1.29, and manpage was left behind.
2000-08-25Some (popular) programs expect to be able to re-initialize `optind'thorpej
to 0 and have getopt(3)/getopt_long(3) continue to function properly. This happens to work with GNU getopt_long(3), so mimmick the behavior. Fixes pkg/10980 (Manuel Bouyer): rsyncd was relying on this behavior.
2000-07-08Correct format mismatch for field widthssommerfeld
2000-07-06avoid losing precision warningschristos
2000-07-05remove extra period in SEE ALL sectionmsaitoh
2000-06-14fix up NetBSD RCS Ids to match the standard, and the leading comment ascgd
to match as well. No functional changes.