Hajimu UMEMOTO
f35528f852
remove needless res_init() call.
...
Inspired by: NetBSD
2005-04-14 11:44:43 +00:00
Peter Wemm
c050415d18
Adapt the libpthread patch for using i386_set_gsbase() to libthr.
2005-04-14 00:44:07 +00:00
Peter Wemm
72a79166ea
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 Wemm
4453c6dc67
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 Wemm
53193c146a
Add stubs for the %fs/%gs base management calls.
2005-04-14 00:01:35 +00:00
Yoshihiro Takahashi
365971ecad
Merge two slice_type_name() functions.
2005-04-13 13:42:38 +00:00
David Xu
787e88a3ac
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
David Xu
b9da3fd798
Fill traceme and events fields.
2005-04-12 23:33:08 +00:00
David Xu
7a4cd8d366
Conditionally report initial thread event.
2005-04-12 03:13:49 +00:00
David Xu
4faae5e992
Add missing event reporting code.
2005-04-12 03:08:11 +00:00
David Xu
a80845eab1
Sync with debugger code in libthr.
2005-04-12 03:03:16 +00:00
David Xu
d245d9e13f
Add debugger event reporting support, current only TD_CREATE and TD_DEATH
...
events are reported.
2005-04-12 03:00:28 +00:00
Alan Cox
7e266fcd1f
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
Alan Cox
fb41e04787
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
Xin LI
13c273c81a
Remove duplicated "bytes".
...
Submitted by: Wojciech A. Koszek [dunstan freebsd czest pl]
PR: 79747
2005-04-10 12:15:25 +00:00
Alan Cox
6524eb94a1
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
Alan Cox
e5dd4df84c
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
Hajimu UMEMOTO
e8ffd81605
unbreak build without YP defined.
...
Submitted by: Andrea Campi <andrea+freebsd_cvs_at_webcom.it>
2005-04-09 14:20:18 +00:00
Stefan Farfeleder
cf00abe993
Remove unused variables and assignments.
2005-04-08 21:24:23 +00:00
Stefan Farfeleder
fd42c4d829
Use prototypes in the function definitions.
2005-04-08 21:15:38 +00:00
Stefan Farfeleder
e413b7d2f8
Remove unused variable.
2005-04-08 20:58:47 +00:00
Alan Cox
26f6218be9
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
Alan Cox
b5c9ad687a
Eliminate unneeded instructions that are a vestige of mechanical
...
translation from i386.
2005-04-08 05:10:18 +00:00
David Schultz
07f3bc5b9c
Add roundl(), lroundl(), and llroundl().
2005-04-08 01:24:08 +00:00
David Schultz
4bb190a74b
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
David Schultz
fc87986708
Fix a (coincidentally harmless) bug.
2005-04-08 00:52:16 +00:00
Olivier Houchard
e0d6cac076
Use the new atomic_cmpset_32().
2005-04-07 22:06:05 +00:00
David Xu
62a2d99ce5
Adjust hash function for smaller pthread structure size.
2005-04-07 06:09:17 +00:00
Alan Cox
0417d4e3e9
Eliminate an unneeded instruction that is a vestige of mechanical
...
translation from i386.
2005-04-07 05:46:46 +00:00
Peter Wemm
8d6f45f534
Fix strict-alias warnings by removing excessive (and wrong) casts.
2005-04-07 04:33:15 +00:00
Alan Cox
91c09a383a
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
Hajimu UMEMOTO
2424b11851
- 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
Hajimu UMEMOTO
1b482912d1
MUTEX_INITIALIZER should be used instead of
...
PTHREAD_MUTEX_INITIALIZER, here.
2005-04-06 15:16:04 +00:00
David Xu
bc1eb018c1
Remove unique id field which is no longer used by debugger.
2005-04-06 13:57:31 +00:00
David Xu
02e98e495b
Remove debug symbol from installed library, one can always
...
use compiled version in libthr directory.
2005-04-06 13:48:11 +00:00
Hajimu UMEMOTO
148b7ece93
separate gai_strerror(3) from getaddrinfo.c.
...
Requested by: phantom
2005-04-06 12:45:51 +00:00
Tim Kientzle
81a4ac6ddb
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
David Schultz
46691dfbe7
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
Hajimu UMEMOTO
d7057edb15
make yp stuff re-entrant.
...
Obtained from: NetBSD
2005-04-05 18:25:23 +00:00
Hajimu UMEMOTO
069eb2cafb
protect _yp_domain with mutex lock.
...
Inspired by: NetBSD
2005-04-05 18:07:59 +00:00
Hajimu UMEMOTO
78ebcde839
add missing mutex unlock.
2005-04-05 17:13:28 +00:00
Poul-Henning Kamp
a8bc22b47a
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
David Xu
2ec2da8602
Export thread address.
2005-04-05 11:38:30 +00:00
David Schultz
d06a0070af
Build exp2(), exp2f(), and related documentation.
2005-04-05 02:57:39 +00:00
David Schultz
90232fdf16
Document exp2() and exp2f(), and make other minor tweaks and updates.
2005-04-05 02:57:28 +00:00
David Schultz
f8d6ede6b5
Implement exp2() and exp2f().
2005-04-05 02:57:15 +00:00
David Xu
619f4fce79
Pass exact number of threads.
2005-04-04 23:43:53 +00:00
Hajimu UMEMOTO
9def31dcd7
make _files_getaddrinfo() re-entrant.
...
Obtained from: NetBSD
2005-04-04 19:45:27 +00:00
David Xu
fb91fbdc5d
Export pthread_condattr_getclock, pthread_condattr_setclock.
2005-04-03 23:52:29 +00:00
David Schultz
f0ceb98f93
Replace the current strspn() and strcspn() with significantly faster
...
implementations inspired by the ones in DragonFly. Unlike the
DragonFly versions, these have a small data cache footprint, and my
tests show that they're never slower than the old code except when the
charset or the span is 0 or 1 characters. This implementation is
generally faster than DragonFly until either the charset or the span
gets in the ballpark of 32 to 64 characters.
2005-04-02 18:52:44 +00:00