Stefan Farfeleder
8f58ab910f
Use double additions to raise the inexact exception to work around problems
...
with long double addition on sparc64.
2005-04-22 09:57:55 +00:00
Stefan Farfeleder
9eb30792de
Fix raising the inexact exception (FE_INEXACT) if the result differs from the
...
argument.
Noticed by: das
2005-04-22 08:30:33 +00:00
Alan Cox
c0862430d5
Eliminate an unpredictable branch from bcmp().
...
Reviewed by: bde
2005-04-21 23:07:20 +00:00
Alexander Kabaev
f2da7e0e49
Do not try to store 64 bits into 32 bit errno variable. With the changed libc
...
data layout, this was corrupting _PathLocale variable leading to programs
dumping core in non-default locales.
2005-04-21 12:47:08 +00:00
Joseph Koshy
d56c5d4bec
Add event aliases for P6 and K8 PMCs.
2005-04-21 05:50:25 +00:00
Marcel Moolenaar
ca8cf1ec04
Build libpmc on all architectures (FWIW :-)
...
Ok'd by: jkoshy@
2005-04-20 20:50:32 +00:00
Marcel Moolenaar
04e9feb06c
o Do not include <machine/pmc_mdep.h>. It's automaticly included for
...
us when <sys/pmc.h> is included.
o Replace "#if __i386__" and "#if __amd64__" with the equivalent of
"#ifdef __i386__" and "#ifdef __amd64__" (resp.) These tokens are
not defined on all platforms.
o Conditionally compile pmc_parse_mask() on i386 and amd64 only. It's
only referenced there. This will change when support for other
platforms is added, of course.
Ok'd by: jkoshy@
2005-04-20 20:48:24 +00:00
Joseph Koshy
c570de2caf
Remove extra Id keyword.
2005-04-20 05:36:43 +00:00
Joseph Koshy
90f629a16a
Remove superfluous CFLAGS lines. Use the conditional '?=' construct
...
for WARNS lines.
Submitted by: ru
2005-04-19 14:43:59 +00:00
Hajimu UMEMOTO
92b6f7be5a
- add getproto{byname,bynumber,ent}_r for internal use within libc.
...
- make getproto{byname,bynumber,ent} thread-safe.
2005-04-19 14:41:13 +00:00
Hajimu UMEMOTO
d7d66e8c85
- nuke deprecated and unused getnodeby(3).
...
- remove unused variable.
Obtained from: KAME
2005-04-19 12:28:17 +00:00
Joseph Koshy
ebccf1e3a6
Bring a working snapshot of hwpmc(4), its associated libraries, userland utilities
...
and documentation into -CURRENT.
Bump FreeBSD_version.
Reviewed by: alc, jhb (kernel changes)
2005-04-19 04:01:25 +00:00
Hajimu UMEMOTO
a87b3988c9
rename the NIS related fields to have yp_ prefix.
...
Suggested by: delphij
2005-04-18 18:34:58 +00:00
Xin LI
ffe49790ef
Do not check whether a pointer is NULL, since free(3) already takes care of
...
this case.
Reviewed by: ume
2005-04-18 03:45:23 +00:00
David Schultz
fe769cdd95
Add a sysctl that returns the full path of a process' text file.
...
This information is needed by things like `gdb -p' and Sun's javac,
and previously it could only be obtained via procfs
2005-04-18 02:10:37 +00:00
Tim Kientzle
48a54ddbd0
Portability enhancement: MS Windows won't restore metadata if the file
...
is still open, so close the file as soon as we've written the
file contents, before we attempt to restore metadata.
Thanks to: Kees Zeelenberg
2005-04-17 22:49:00 +00:00
Andrey A. Chernov
db7354df52
Fix truncl.3 MLINKS
2005-04-17 19:57:52 +00:00
Tim Kientzle
fec57dbcd5
Update "make distfile" to use newest automake/autoconf from ports.
...
Thanks to: Juergen Lock
2005-04-17 17:51:05 +00:00
Xin LI
6d44c5c74b
Fix build for !YP case.
...
BTW. Shall we change these fields to have yp_ prefix? That will make the
code easier to read.
2005-04-17 15:10:30 +00:00
Hajimu UMEMOTO
109e5709c0
libc-internal interfaces should have two underscores in front
...
of their names.
Pointed out by: das
2005-04-17 14:42:52 +00:00
Xin LI
5c83bb4912
Wrong working directory, sorry. The previous patch was what I have
...
seen in NetBSD's tree, and this one is what I have submitted for review.
Pointy hat to: me
2005-04-17 04:00:55 +00:00
Xin LI
f5d25e4900
Remove a check about whether sa->sa_len is equal to salen from
...
getnameinfo(3). POSIX standard does not require a sa_len field
in sockaddr struct, hence such requirement will cause problem
for portability.
PR: standards/80008
Requested by: Xin Liu <lx@knight.6test.edu.cn>
Reviewed by: freebsd-standards (das)
MFC After: 2 weeks
2005-04-17 03:56:07 +00:00
David Schultz
1be5319a76
Be bug-for-bug compatible with the C standard with respect to
...
printf("%#.0o", 0). Cite an amusing passage from a defect report.
2005-04-16 22:36:51 +00:00
David Schultz
a4ca7ca8ac
More optimized math functions.
2005-04-16 21:12:55 +00:00
David Schultz
2f2ee27de4
Implement truncl() based on floorl().
2005-04-16 21:12:47 +00:00
Robert Watson
a6c2bc8bcb
When parsing the second {uid,gid} in an identity phrase for ugidfw,
...
check the password or group database before attempting to parse as an
integer, as is done for the first {uid,gid} in an identity phrase.
Obtained from: TrustedBSD Project
Sponsored by: SPAWAR, SPARTA
2005-04-16 11:58:55 +00:00
Robert Watson
89afecd482
In practice, you need to include <sys/types.h> and
...
<security/mac_bsdextended/mac_bsdextended.h> in order to include
<ugidfw.h>, so document that.
MFC after: 3 days
2005-04-16 11:32:46 +00:00
Hajimu UMEMOTO
62e8b17d72
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
Hajimu UMEMOTO
96f79dca76
- 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
Hajimu UMEMOTO
159d2a98c5
hostalias() is not thread-safe. So, introduce _res_hostalias()
...
and use it.
Obtained from: BIND9
2005-04-15 14:42:29 +00:00
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