ume
84cd058069
Now, our getservbyname(3) is thread-safe. So, we don't need
...
to protect it with mutex lock.
2005-04-15 18:15:12 +00:00
ume
b890d3a924
- add getserv{byname,byport,ent}_r for internal use within libc.
...
- make getserv{byname,byport,ent} thread-safe.
Reviewed by: gnn
2005-04-15 18:09:39 +00:00
ume
874d0b2c0e
hostalias() is not thread-safe. So, introduce _res_hostalias()
...
and use it.
Obtained from: BIND9
2005-04-15 14:42:29 +00:00
ume
4e19552072
remove needless res_init() call.
...
Inspired by: NetBSD
2005-04-14 11:44:43 +00:00
peter
09dd25461d
Adapt the libpthread patch for using i386_set_gsbase() to libthr.
2005-04-14 00:44:07 +00:00
peter
effade8d74
Use the i386_set_gsbase() syscall if it is implemented in the kernel.
...
This is a little hairy here because the allocation and usage of this
functionality is split into two places in libpthread.
2005-04-14 00:13:20 +00:00
peter
b1e2cc301b
Attempt i386_set_gsbase() before using the user_ldt code. Unimplemented
...
sysarch() calls return EINVAL, not SIGSYS.. so we can trivially adapt.
2005-04-14 00:02:37 +00:00
peter
0085f3944e
Add stubs for the %fs/%gs base management calls.
2005-04-14 00:01:35 +00:00
nyan
8cb7fa819d
Merge two slice_type_name() functions.
2005-04-13 13:42:38 +00:00
davidxu
b930b579e1
o Code cleanup, eliminate private thread id map, directly
...
use lwpid as thread id.
o Export tls pointer.
2005-04-13 04:57:38 +00:00
davidxu
86af0653a0
Fill traceme and events fields.
2005-04-12 23:33:08 +00:00
davidxu
6d18f49aa2
Conditionally report initial thread event.
2005-04-12 03:13:49 +00:00
davidxu
fe159b7e4f
Add missing event reporting code.
2005-04-12 03:08:11 +00:00
davidxu
d4b0e7aa18
Sync with debugger code in libthr.
2005-04-12 03:03:16 +00:00
davidxu
9a450de5e5
Add debugger event reporting support, current only TD_CREATE and TD_DEATH
...
events are reported.
2005-04-12 03:00:28 +00:00
alc
954dc912e4
Add a machine-specific, optimized implementation of strcat.
...
PR: 73111
Submitted by: Ville-Pertti Keinonen <will@iki.fi> (taken from NetBSD)
MFC after: 3 weeks
2005-04-10 18:58:49 +00:00
alc
dd9927c96a
Eliminate a conditional branch and as a side-effect eliminate a branch to
...
a return instruction. (The latter is discouraged by the Opteron
optimization manual because it disables branch prediction for the return
instruction.)
Reviewed by: bde
2005-04-10 18:12:07 +00:00
delphij
25da6ba29d
Remove duplicated "bytes".
...
Submitted by: Wojciech A. Koszek [dunstan freebsd czest pl]
PR: 79747
2005-04-10 12:15:25 +00:00
alc
e8d9acfcff
Add a machine-specific, optimized implementation of strcpy.
...
PR: 73111
Submitted by: Ville-Pertti Keinonen <will@iki.fi> (taken from NetBSD)
MFC after: 3 weeks
2005-04-10 05:11:06 +00:00
alc
3b2204c89d
Add a machine-specific, optimized implementation of strcmp.
...
PR: 73111
Submitted by: Ville-Pertti Keinonen <will@iki.fi> (taken from NetBSD)
MFC after: 3 weeks
2005-04-09 20:47:08 +00:00
ume
25ba0eb9d9
unbreak build without YP defined.
...
Submitted by: Andrea Campi <andrea+freebsd_cvs_at_webcom.it>
2005-04-09 14:20:18 +00:00
stefanf
4bb1e32851
Remove unused variables and assignments.
2005-04-08 21:24:23 +00:00
stefanf
087a85c41b
Use prototypes in the function definitions.
2005-04-08 21:15:38 +00:00
stefanf
4ab1822ce9
Remove unused variable.
2005-04-08 20:58:47 +00:00
alc
795592cb95
Add machine-specific, optimized implementations of bcmp and memcmp.
...
PR: 73111
Submitted by: Ville-Pertti Keinonen <will@iki.fi> (taken from NetBSD)
MFC after: 3 weeks
2005-04-08 05:15:55 +00:00
alc
5382a820b8
Eliminate unneeded instructions that are a vestige of mechanical
...
translation from i386.
2005-04-08 05:10:18 +00:00
das
9e535d4519
Add roundl(), lroundl(), and llroundl().
2005-04-08 01:24:08 +00:00
das
f6ba87d746
These files should include s_lround.c instead of s_lrint.c.
...
This only matters for efficiency, not for correctness.
2005-04-08 00:52:27 +00:00
das
0e893416ea
Fix a (coincidentally harmless) bug.
2005-04-08 00:52:16 +00:00
cognet
e8d51f9d09
Use the new atomic_cmpset_32().
2005-04-07 22:06:05 +00:00
davidxu
70cc2b7368
Adjust hash function for smaller pthread structure size.
2005-04-07 06:09:17 +00:00
alc
8a09ae8295
Eliminate an unneeded instruction that is a vestige of mechanical
...
translation from i386.
2005-04-07 05:46:46 +00:00
peter
4e9e14d84a
Fix strict-alias warnings by removing excessive (and wrong) casts.
2005-04-07 04:33:15 +00:00
alc
2a04601bdc
Add machine-specific, optimized implementations of bcopy, bzero, memcpy,
...
memmove, and memset.
PR: 73111
Submitted by: Ville-Pertti Keinonen <will@iki.fi> (taken from NetBSD)
MFC after: 3 weeks
2005-04-07 03:56:03 +00:00
ume
9e123fecdc
- we are no longer shareing any resources to be locked between
...
getaddrinfo(3) and getipnodeby*(3).
- use definitions in reentrant.h.
- remove obsolete comment.
2005-04-06 15:36:34 +00:00
ume
6b5a5d627d
MUTEX_INITIALIZER should be used instead of
...
PTHREAD_MUTEX_INITIALIZER, here.
2005-04-06 15:16:04 +00:00
davidxu
7965a0881a
Remove unique id field which is no longer used by debugger.
2005-04-06 13:57:31 +00:00
davidxu
a537d608eb
Remove debug symbol from installed library, one can always
...
use compiled version in libthr directory.
2005-04-06 13:48:11 +00:00
ume
5060b25c36
separate gai_strerror(3) from getaddrinfo.c.
...
Requested by: phantom
2005-04-06 12:45:51 +00:00
kientzle
9e9b9ab4e9
A number of improvements to ZIP support.
...
* 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.
2005-04-06 04:19:30 +00:00
das
2cf8d684e8
Fix a long-standing bug in k_rem_pio2(), which led to large errors when
...
tanf() was called with big arguments close to multiples of pi/2.
Reported by: ucbtest via bde
2005-04-05 23:27:47 +00:00
ume
2a95059b6b
make yp stuff re-entrant.
...
Obtained from: NetBSD
2005-04-05 18:25:23 +00:00
ume
f75687616b
protect _yp_domain with mutex lock.
...
Inspired by: NetBSD
2005-04-05 18:07:59 +00:00
ume
f0e5ae4885
add missing mutex unlock.
2005-04-05 17:13:28 +00:00
phk
2148892921
natd core dumps when -reverse switch is used because of a bug in
...
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
2005-04-05 13:04:35 +00:00
davidxu
0f782800e9
Export thread address.
2005-04-05 11:38:30 +00:00
das
0109642bce
Build exp2(), exp2f(), and related documentation.
2005-04-05 02:57:39 +00:00
das
637d45da87
Document exp2() and exp2f(), and make other minor tweaks and updates.
2005-04-05 02:57:28 +00:00
das
f9c4f97265
Implement exp2() and exp2f().
2005-04-05 02:57:15 +00:00
davidxu
d33a2129b5
Pass exact number of threads.
2005-04-04 23:43:53 +00:00