Hajimu UMEMOTO
2c08ac2b38
- do validation check and IPv4-mapped IPv6 address handling before
...
any query.
- don't query against IPv6 link-local address.
- use IN6_IS_ADDR_V4{MAPPED,COMPAT} macros.
- use memcpy() instead of bcopy().
Inspired by: NetBSD
2005-04-29 19:55:23 +00:00
Hajimu UMEMOTO
86726f325b
NETDB_INTERNAL is not fit, here. return NO_RECOVERY for h_errno.
2005-04-29 17:36:54 +00:00
Hajimu UMEMOTO
49e0283df8
our get{addr,name}info() is considered thread-safe.
2005-04-29 14:37:51 +00:00
Hajimu UMEMOTO
0d389e7212
we cannot use inet_ntoa(3), here. so, use inet_ntop(3), instead.
2005-04-29 12:01:36 +00:00
Stefan Farfeleder
66116c07a7
Revert the last change, the conversion from long double to double can raise
...
unwanted underflow exceptions.
Pointed out by: das
2005-04-28 19:45:55 +00:00
Hajimu UMEMOTO
850bc9af6b
sync _map_v4v6_host*() with bind9's. it treats align better bit.
...
Obtained from: BIND9
2005-04-28 18:52:40 +00:00
Hajimu UMEMOTO
b8ab0f4506
we don't need mutex lock to call _gethostbynis*(), anymore.
2005-04-28 18:21:11 +00:00
Hajimu UMEMOTO
aa2f4ec72a
make gethostby*() thread-safe.
2005-04-28 18:03:43 +00:00
Hajimu UMEMOTO
7b671d902b
_gethostbynis{addr,name}() can handle an IPv6, now.
2005-04-28 17:44:44 +00:00
Hajimu UMEMOTO
a2a775011c
make getnetby*() thread-safe.
2005-04-28 15:32:55 +00:00
Hajimu UMEMOTO
bcb131aa3c
hide implementation specific internal functions from netdb.h.
...
it is needed to make get{host,net}by*() thread-safe.
2005-04-27 19:12:57 +00:00
David Xu
920d31ef8d
Remove COMPAT_32BIT, it is no longer needed.
2005-04-27 01:29:03 +00:00
Peter Wemm
3bbf3512ad
Provide stub functions for i386_set_ldt() and i386_get_ldt() even when
...
compiling as an amd64 support binary. They will return EINVAL on an amd64
kernel, but this simplifies other #ifdefs that were getting a bit nasty.
2005-04-26 20:51:15 +00:00
Peter Wemm
8fa4081fe3
No longer use _amd64_set_gsbase(). Use i386_set_gsbase() even when
...
building for amd64.
2005-04-26 20:46:11 +00:00
Peter Wemm
1ec622fdd6
Remove the special _amd64_set_gsbase() code for #ifdef COMPAT_32BIT, now
...
that the amd64 kernel implements i386_get/set_gsbase(). All the rest of
the ldt backwards compat code should go away soon.
2005-04-26 20:41:48 +00:00
Hajimu UMEMOTO
b190ee6140
our get{proto,serv}by*() use a thread-specific data space.
2005-04-26 18:04:09 +00:00
Maxime Henrion
7d72cda3d3
Use __func__ throughout devstat.c instead of defining a func_name
...
variable in each function.
2005-04-26 15:02:01 +00:00
Hajimu UMEMOTO
72572cc6ea
add IPv6 awareness for NIS query of gethostby*().
...
Inspired by: NetBSD
2005-04-26 14:55:47 +00:00
Maxime Henrion
140490e266
Make this compile with GCC4 by fixing a signedness issue.
...
Reviewed by: md5(1)
2005-04-26 14:51:09 +00:00
Maxime Henrion
b92367948a
Make this compile with GCC4 by fixing a few signedness related warnings.
...
Reviewed by: md5(1)
2005-04-26 14:25:11 +00:00
Hajimu UMEMOTO
a72b0131c9
ensure parsing numeric address before any host query.
...
Inspired by: NetBSD
2005-04-25 17:36:28 +00:00
Hajimu UMEMOTO
4801b1f131
remove unused variable.
2005-04-25 14:52:13 +00:00
Xin LI
b49627d7a7
Remove unused file.
...
Confirmed by: tjr [1]
[1] PERFORCE CHANGESET 57044:
http://perforce.freebsd.org/changeView.cgi?CH=57044
2005-04-25 02:29:03 +00:00
Tim Kientzle
d2c5caadde
Update zconf.h and gzio.c with changes from ZLib 1.2.1 to ZLib 1.2.2.
...
These are two of the three files that have non-trivial differences from
the vendor branch. minigzip.c is the third, but there were no changes
from ZLib 1.2.1 to ZLib 1.2.2 in that file.
The rest of the files I intend to get reverted back to the vendor
branch (with cooperation of cvsadmin@).
PR: i386/76294
2005-04-24 22:04:34 +00:00
Hajimu UMEMOTO
71d0cbb671
if last line didn't have trailing space, network address was also
...
treated as an alias.
2005-04-24 18:22:39 +00:00
Tim Kientzle
c9d3530b69
This commit was generated by cvs2svn to compensate for changes in r145474,
...
which included commits to RCS files with non-trunk default branches.
2005-04-24 17:11:32 +00:00
Tim Kientzle
61933f067b
ZLib 1.2.2
2005-04-24 17:11:32 +00:00
Alan Cox
97cd6892ba
Optimize the instruction alignment.
2005-04-23 18:45:36 +00:00
Tim Kientzle
8d8311c95f
Fix broken ACL configuration on FreeBSD 4 and Linux.
...
Thanks to: Greg Lewis, Juergen Lock, Jaakko Heinonen for reporting and testing
2005-04-23 17:56:34 +00:00
Tim Kientzle
256543d9b1
Certain filenames between 245 and 255 characters long would cause an
...
internal error if pax extended attributes were being generated. Being
< 255 characters, the first-pass path editing (to generate a
ustar-compatible name for the main entry) wouldn't occur, and the
second-pass path editing (to generate a ustar name for the pax
attributes entry) assumed the input was already < 245 chars.
The core problem here was using an abbreviated algorithm for the
second pass that relied on the first pass having already run. The
rewritten code is much simpler: It just uses the full path-shortening
algorithm for building both ustar pathnames. This way, the second
ustar pathname will always be short enough.
Thanks to: Mark Cammidge
Related to: bin/74385
2005-04-23 17:46:51 +00:00
Joseph Koshy
67edd22983
Note events affected by processor errata.
2005-04-23 05:45:18 +00:00
David Xu
ff87e1a6ba
Remove unused variable.
2005-04-23 03:34:43 +00:00
David Xu
a364e127e3
Now libthr only uses GDT based tls on i386. using LDT can only increase
...
clock cycles and has 8191 threads limitation.
2005-04-23 03:31:59 +00:00
David Xu
80c9676e8b
Use thr_new syscall to create a new thread, obscure context operations
...
is no longer needed.
2005-04-23 02:48:59 +00:00
Tom Rhodes
0a5660df88
Fix two typos in comments.
2005-04-23 02:20:35 +00:00
David Xu
3466f35a77
Add i386_get_gsbase, i386_set_gsbase since old libc doesn't have the
...
functions, otherwise user ports have to be rebuilt.
2005-04-23 02:14:38 +00:00
Tom Rhodes
043d661d53
Properly spell default in a comment.
2005-04-22 23:11:57 +00:00
Tom Rhodes
d5f93c9179
Enforce style.Makefile(5).
...
Glanced at by: ru (some time ago).
2005-04-22 18:57:32 +00:00
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