summaryrefslogtreecommitdiff
path: root/src/lib/libc/stdlib/merge.c (unfollow)
Commit message (Collapse)AuthorFilesLines
2007-08-08Clarify the example about avoiding overflow. OK ray@ deraadt@millert1-3/+3
2007-08-08Show how to use strcspn(3) to trim newlines.ray1-2/+14
OK jmc and millert.
2007-08-06Correctly NUL terminate the message buffer that is used with theclaudio1-4/+24
-starttls option. Without this openssl s_client -starttls crashed with malloc.conf -> J. OK deraadt@, hshoexer@
2007-08-05/*FALLTHRU*/ -> /* FALLTHROUGH */ray1-2/+2
2007-07-06Reference limits.h, not sys/param.h since we document using PATH_MAXmillert1-3/+3
OK otto@
2007-07-03from ginsbach@netbsd, -r1.18:jmc1-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
2007-06-29Document behavior when no conversion could be performed. Adaptedmillert2-5/+17
from FreeBSD. With help from jmc@.
2007-06-12``dot'' notationjmc1-19/+9
is more readable than `.' notation zap some silly .Tn whilst here;
2007-06-05_FD_LOCK/UNLOCK() is libpthread specific and not needed for librthread, sokurt1-21/+35
isolate its usage to libpthread only and replace with generic non-static mutex support in the one place it is needed: - remove _FD_LOCK/UNLOCK from lseek and ftruncate in libc and make the functions weak so that libpthread can override with its own new versions that do the locking. - remove _thread_fd_lock/unlock() weak functions from libc and adjust libpthread for the change. - add generic _thread_mutex_lock/unlock/destroy() weak functions in libc to support non-static mutexes in libc and add libpthread and librthread implementations for them. libc can utilize non-static mutexes via the new _MUTEX_LOCK/UNLOCK/DESTROY() macros. Actually these new macros can support both static and non-static mutexes but currently only using them for non-static. - make opendir/closedir/readdir/readdir_r/seekdir/telldir() thread-safe for both thread libraries by using a non-static mutex in the struct _dirdesc (typedef DIR), utilizing it in the *dir functions and remove remaining and incorrect _FD_LOCK/UNLOCK() use in libc. - add comments to both thread libraries to indicate libc depends on the current implementation of static mutex initialization. suggested by marc@ - major bump libc and libpthread due to function removal, structure change and weak symbol conversions. okay marc@, tedu@
2007-06-05remove ipx-related stuff. objections nobody. major bump by kurt in a fewhenning4-385/+3
2007-05-31convert to new .Dd format;jmc105-210/+210
2007-05-26More comment typos from Diego Casati. Including winners like funtion, allmost,krw1-1/+1
oustside, seqencer, toghether, nessissary, etc.
2007-05-20Typos.ray1-3/+3
OK jmc@.
2007-05-18Remove no-op code. From tbert.ray1-3/+1
OK moritz@ and jaredy@
2007-05-17Improve reentrancy by not using global variable. Removes tworay1-31/+11
wrappers around fopen/fclose. From tbert. OK millert@, tedu@, and itojun@.
2007-05-17Add basename(3) and dirname(3) regression tests, from tbert.ray5-3/+170
OK otto@.
2007-05-16Wrap some functions, labels, and variables in #ifdefs correspondingray2-2/+8
to #ifdefs where they are used. Found by lint by bret dot lambert at gmail. OK deraadt@.
2007-05-12Use size_t for strlen results.ray1-4/+6
OK moritz@.
2007-05-12Clean up macros according to style. From tbert <bret dot lambert at gmail>.ray1-27/+27
OK moritz@ and jaredy@.
2007-05-10Use syslog_r instead of syslog in getaddrinfo. Slowly makingray1-4/+9
getaddrinfo reentrant. OK millert@ and deraadt@.
2007-05-02macros at start of line require a `.';jmc1-2/+2
2007-05-02Document the lack of error return value in arc4random.pyr1-1/+4
Sync the documentation in getpid with arc4random's format.
2007-04-21-These option are ignoredjmc1-2/+2
+These options are ignored
2007-04-10Support for optional args separated with whitespace was removedmillert1-17/+1
some time ago--it caused too many problems.
2007-04-06Add proper checks against fgets failure. From Charles Longeau.ray2-2/+4
OK moritz@, millert@, and jaredy@.
2007-03-28Add the cRLSign bit by default, so that certs generated using this filecloder1-1/+1
will be able to sign CRLs. OK reyk, hshoexer, millert
2007-03-20remove some bogus *p tests from charles longeautedu6-10/+10
ok deraadt millert
2007-03-19Get rid of useless #if 0 block, especially since the code is includedray1-5/+1
immediately after. OK millert@.
2007-03-01If NLS is disabled, strerror does not print the correct error string.bluhm1-2/+2
No binary change with NLS enabled. ok otto millert espie
2007-02-20usage(): add -P and tweak -X; from Igor Sobradojmc1-3/+3
2007-02-20Change hard coded numbers to sizeof(buf). Also change someray1-3/+3
sizeof(buf) - 1 to sizeof(buf), since fgets takes the whole buffer size. Based on diff from Charles Longeau <chl at tuxfamily dot org> long ago. OK millert@.
2007-02-19wording fix from wiz@netbsd, -r1.11;jmc1-2/+2
2007-02-19from hubertf@netbsd:jmc1-6/+18
Try to tell what this really does. Including a BUGS section on why it doesn't. *roff code by wiz@, with some input from Slava Semushin <slava.semushin@gmail.com> ok millert
2007-02-18strlen(3) returns size_t, not int.ray1-14/+16
Suggested by itojun@ in response to my getaddrinfo fixes. OK millert@.
2007-02-18strlen(3) returns size_t.ray1-4/+6
OK itojun@.
2007-02-17Remove duplicate code. No functional change.ray1-39/+22
OK itojun@, moritz@, and millert@.
2007-02-17remove two expired certificates, diff from <Christian_Rusch@genua.de>grunk1-97/+0
ok jakob@
2007-02-15Remove two mutexes by replacing getservbyname() and getservbyport()ray2-32/+29
calls with their reentrant versions. OK millert@.
2007-02-14correct a mistake concerning ifa_data;jmc1-6/+5
found by Srebrenko Sehic, corrected by millert and claudio;
2007-02-14remove size_t and int mixup. same as getaddrinfo.c 1.30 -> 1.31.itojun1-5/+2
2007-02-14Remove int pretending to be a size_t.ray1-5/+2
OK millert@.
2007-02-12get cheaper random bytes, less waste and no getpid() calls, which areotto1-2/+3
done by arc4random(); ok millert@ deraadt@
2007-02-12provide an libc internal interface to get random bytes, to be used by mallocotto1-3/+12
to get random data without calling getpid(), ok millert@ deraadt@
2007-02-07consistency tweak;jmc1-2/+2
2007-02-06fix some dodgy displays;jmc1-2/+2
2007-01-16sync with the code: int -> intmax_tsteven1-3/+3
ok jmc@
2007-01-08advertising clauses that can be droppedderaadt1-6/+2
2007-01-03Fix format string misuse in kssl_err_set(), which is notmoritz1-1/+1
called with user-supplied strings at the moment. ok markus@
2006-12-30RFC4291 declares that IPv6 numeric representation must have no more thanitojun1-3/+8
4 hex digits between colons. deraadt ok
2006-12-19a failed mmap returns MAP_FAILED, not NULL. found while exercising paxotto1-3/+3
in low-mem conditions; ok dim@