summaryrefslogtreecommitdiffstats
path: root/lib
Commit message (Collapse)AuthorAgeFilesLines
* hostalias() is not thread-safe. So, introduce _res_hostalias()ume2005-04-153-14/+29
| | | | | | and use it. Obtained from: BIND9
* remove needless res_init() call.ume2005-04-141-9/+0
| | | | Inspired by: NetBSD
* Adapt the libpthread patch for using i386_set_gsbase() to libthr.peter2005-04-142-16/+41
|
* Use the i386_set_gsbase() syscall if it is implemented in the kernel.peter2005-04-144-32/+82
| | | | | This is a little hairy here because the allocation and usage of this functionality is split into two places in libpthread.
* Attempt i386_set_gsbase() before using the user_ldt code. Unimplementedpeter2005-04-141-1/+4
| | | | sysarch() calls return EINVAL, not SIGSYS.. so we can trivially adapt.
* Add stubs for the %fs/%gs base management calls.peter2005-04-145-0/+149
|
* Merge two slice_type_name() functions.nyan2005-04-131-23/+4
|
* o Code cleanup, eliminate private thread id map, directlydavidxu2005-04-131-187/+64
| | | | | use lwpid as thread id. o Export tls pointer.
* Fill traceme and events fields.davidxu2005-04-121-0/+8
|
* Conditionally report initial thread event.davidxu2005-04-121-1/+2
|
* Add missing event reporting code.davidxu2005-04-121-0/+65
|
* Sync with debugger code in libthr.davidxu2005-04-124-46/+173
|
* Add debugger event reporting support, current only TD_CREATE and TD_DEATHdavidxu2005-04-129-16/+64
| | | | events are reported.
* Add a machine-specific, optimized implementation of strcat.alc2005-04-102-1/+166
| | | | | | PR: 73111 Submitted by: Ville-Pertti Keinonen <will@iki.fi> (taken from NetBSD) MFC after: 3 weeks
* Eliminate a conditional branch and as a side-effect eliminate a branch toalc2005-04-101-5/+4
| | | | | | | | a return instruction. (The latter is discouraged by the Opteron optimization manual because it disables branch prediction for the return instruction.) Reviewed by: bde
* Remove duplicated "bytes".delphij2005-04-101-1/+1
| | | | | Submitted by: Wojciech A. Koszek [dunstan freebsd czest pl] PR: 79747
* Add a machine-specific, optimized implementation of strcpy.alc2005-04-102-1/+113
| | | | | | PR: 73111 Submitted by: Ville-Pertti Keinonen <will@iki.fi> (taken from NetBSD) MFC after: 3 weeks
* Add a machine-specific, optimized implementation of strcmp.alc2005-04-092-1/+75
| | | | | | PR: 73111 Submitted by: Ville-Pertti Keinonen <will@iki.fi> (taken from NetBSD) MFC after: 3 weeks
* unbreak build without YP defined.ume2005-04-091-0/+4
| | | | Submitted by: Andrea Campi <andrea+freebsd_cvs_at_webcom.it>
* Remove unused variables and assignments.stefanf2005-04-084-9/+3
|
* Use prototypes in the function definitions.stefanf2005-04-082-34/+14
|
* Remove unused variable.stefanf2005-04-081-3/+2
|
* Add machine-specific, optimized implementations of bcmp and memcmp.alc2005-04-083-1/+67
| | | | | | PR: 73111 Submitted by: Ville-Pertti Keinonen <will@iki.fi> (taken from NetBSD) MFC after: 3 weeks
* Eliminate unneeded instructions that are a vestige of mechanicalalc2005-04-081-10/+4
| | | | translation from i386.
* Add roundl(), lroundl(), and llroundl().das2005-04-087-18/+120
|
* These files should include s_lround.c instead of s_lrint.c.das2005-04-083-3/+3
| | | | This only matters for efficiency, not for correctness.
* Fix a (coincidentally harmless) bug.das2005-04-081-5/+4
|
* Use the new atomic_cmpset_32().cognet2005-04-074-50/+0
|
* Adjust hash function for smaller pthread structure size.davidxu2005-04-071-1/+1
|
* Eliminate an unneeded instruction that is a vestige of mechanicalalc2005-04-071-7/+5
| | | | translation from i386.
* Fix strict-alias warnings by removing excessive (and wrong) casts.peter2005-04-072-2/+2
|
* Add machine-specific, optimized implementations of bcopy, bzero, memcpy,alc2005-04-076-0/+212
| | | | | | | | memmove, and memset. PR: 73111 Submitted by: Ville-Pertti Keinonen <will@iki.fi> (taken from NetBSD) MFC after: 3 weeks
* - we are no longer shareing any resources to be locked betweenume2005-04-062-27/+12
| | | | | | getaddrinfo(3) and getipnodeby*(3). - use definitions in reentrant.h. - remove obsolete comment.
* MUTEX_INITIALIZER should be used instead ofume2005-04-061-1/+1
| | | | PTHREAD_MUTEX_INITIALIZER, here.
* Remove unique id field which is no longer used by debugger.davidxu2005-04-063-15/+2
|
* Remove debug symbol from installed library, one can alwaysdavidxu2005-04-061-1/+1
| | | | use compiled version in libthr directory.
* separate gai_strerror(3) from getaddrinfo.c.ume2005-04-063-28/+62
| | | | Requested by: phantom
* A number of improvements to ZIP support.kientzle2005-04-066-67/+338
| | | | | | | | | | | | | * Handles entries with compressed size >2GB (signed/unsigned cleanup) * Handles entries with compressed size >4GB ("ZIP64" extension) * Handles Unix extensions (ctime, atime, mtime, mode, uid, etc) * Format-specific "skip data" override allows ZIP reader to skip entries without decompressing them, which makes "tar -t" a lot faster. * Handles "length-at-end" entries generated by, e.g., "zip -r - foo" Many thanks to: Dan Nelson, who contributed the code and test files for the first three items above and suggested the fourth.
* Fix a long-standing bug in k_rem_pio2(), which led to large errors whendas2005-04-051-1/+1
| | | | | | tanf() was called with big arguments close to multiples of pi/2. Reported by: ucbtest via bde
* make yp stuff re-entrant.ume2005-04-051-26/+15
| | | | Obtained from: NetBSD
* protect _yp_domain with mutex lock.ume2005-04-051-3/+24
| | | | Inspired by: NetBSD
* add missing mutex unlock.ume2005-04-051-0/+1
|
* natd core dumps when -reverse switch is used because of a bug inphk2005-04-051-2/+2
| | | | | | | | | | | | | | | | | | | | | libalias. In /usr/src/lib/libalias/alias.c, the functions LibAliasIn and LibAliasOutTry call the legacy PacketAliasIn/PacketAliasOut instead of LibAliasIn/LibAliasOut when the PKT_ALIAS_REVERSE option is set. In this case, the context variable "la" gets lost because the legacy compatibility routines expect "la" to be global. This was obviously an oversight when rewriting the PacketAlias* functions to the LibAlias* functions. The fix (as shown in the patch below) is to remove the legacy subroutine calls and replace with the new ones using the "la" struct as the first arg. Submitted by: Gil Kloepfer <fgil@kloepfer.org> Confirmed by: <nicolai@catpipe.net> PR: 76839 MFC after: 3 days
* Export thread address.davidxu2005-04-053-0/+9
|
* Build exp2(), exp2f(), and related documentation.das2005-04-051-2/+3
|
* Document exp2() and exp2f(), and make other minor tweaks and updates.das2005-04-052-88/+37
|
* Implement exp2() and exp2f().das2005-04-053-0/+532
|
* Pass exact number of threads.davidxu2005-04-041-1/+1
|
* make _files_getaddrinfo() re-entrant.ume2005-04-041-22/+19
| | | | Obtained from: NetBSD
* Export pthread_condattr_getclock, pthread_condattr_setclock.davidxu2005-04-031-0/+2
|
OpenPOWER on IntegriCloud