ume
0adfc804de
don't see RES_USE_INET6 when called from getipnodeby*().
2005-05-01 07:39:45 +00:00
ume
eff8f31f8b
oops, gethostbyaddr(3) must return h_addr as an IPv4-mapped
...
IPv6 address when RES_USE_INET6 was set, according to RFC 2133
section 6.2.
2005-04-30 20:07:01 +00:00
ume
ebe4b8304d
handling RES_USE_INET6 better.
2005-04-30 19:28:31 +00:00
ume
91b46d9bcd
_ht_gethostbyaddr didn't handle RES_USE_INET6 correctly.
2005-04-30 18:46:27 +00:00
ume
7384d01d80
_gethostbynisname() didn't support RES_USE_INET6.
2005-04-30 18:37:35 +00:00
ume
1e5d47dc8c
_ht_gethostbyname didn't handle RES_USE_INET6 correctly.
2005-04-30 17:01:18 +00:00
ume
5acac5def1
- 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
ume
a63da37458
NETDB_INTERNAL is not fit, here. return NO_RECOVERY for h_errno.
2005-04-29 17:36:54 +00:00
ume
5e38b9f0d1
our get{addr,name}info() is considered thread-safe.
2005-04-29 14:37:51 +00:00
ume
3a568cbe4a
we cannot use inet_ntoa(3), here. so, use inet_ntop(3), instead.
2005-04-29 12:01:36 +00:00
stefanf
16dd1d18f5
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
ume
d8dbaeb308
sync _map_v4v6_host*() with bind9's. it treats align better bit.
...
Obtained from: BIND9
2005-04-28 18:52:40 +00:00
ume
412b7128e4
we don't need mutex lock to call _gethostbynis*(), anymore.
2005-04-28 18:21:11 +00:00
ume
b384ad94d8
make gethostby*() thread-safe.
2005-04-28 18:03:43 +00:00
ume
f40143a00f
_gethostbynis{addr,name}() can handle an IPv6, now.
2005-04-28 17:44:44 +00:00
ume
c2ee427f58
make getnetby*() thread-safe.
2005-04-28 15:32:55 +00:00
ume
1dcbf1fa6d
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
davidxu
094168eea8
Remove COMPAT_32BIT, it is no longer needed.
2005-04-27 01:29:03 +00:00
peter
e4fe1baaf9
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
6e045e2291
No longer use _amd64_set_gsbase(). Use i386_set_gsbase() even when
...
building for amd64.
2005-04-26 20:46:11 +00:00
peter
408a98eda0
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
ume
6d6f9267f1
our get{proto,serv}by*() use a thread-specific data space.
2005-04-26 18:04:09 +00:00
mux
a985d1fd69
Use __func__ throughout devstat.c instead of defining a func_name
...
variable in each function.
2005-04-26 15:02:01 +00:00
ume
0d480fe6c9
add IPv6 awareness for NIS query of gethostby*().
...
Inspired by: NetBSD
2005-04-26 14:55:47 +00:00
mux
f213c67ee0
Make this compile with GCC4 by fixing a signedness issue.
...
Reviewed by: md5(1)
2005-04-26 14:51:09 +00:00
mux
97a7651af8
Make this compile with GCC4 by fixing a few signedness related warnings.
...
Reviewed by: md5(1)
2005-04-26 14:25:11 +00:00
ume
c5b4993c85
ensure parsing numeric address before any host query.
...
Inspired by: NetBSD
2005-04-25 17:36:28 +00:00
ume
2b87c6fe2c
remove unused variable.
2005-04-25 14:52:13 +00:00
delphij
ffa9d252ae
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
kientzle
3747e27470
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
ume
02df93e077
if last line didn't have trailing space, network address was also
...
treated as an alias.
2005-04-24 18:22:39 +00:00
kientzle
05a8bcf8e7
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
kientzle
dcdd7970c3
ZLib 1.2.2
2005-04-24 17:11:32 +00:00
alc
8710214da3
Optimize the instruction alignment.
2005-04-23 18:45:36 +00:00
kientzle
47cfd711c7
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
kientzle
5be5ef99a1
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
jkoshy
f4f92f05d5
Note events affected by processor errata.
2005-04-23 05:45:18 +00:00
davidxu
9f7f211673
Remove unused variable.
2005-04-23 03:34:43 +00:00
davidxu
8d38949442
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
davidxu
a0a25ee25d
Use thr_new syscall to create a new thread, obscure context operations
...
is no longer needed.
2005-04-23 02:48:59 +00:00
trhodes
71a4283929
Fix two typos in comments.
2005-04-23 02:20:35 +00:00
davidxu
d75a2adc3f
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
trhodes
17bf236ae6
Properly spell default in a comment.
2005-04-22 23:11:57 +00:00
trhodes
a9041ad05e
Enforce style.Makefile(5).
...
Glanced at by: ru (some time ago).
2005-04-22 18:57:32 +00:00
stefanf
13322eaf9b
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
stefanf
77782516eb
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
alc
b459bdba21
Eliminate an unpredictable branch from bcmp().
...
Reviewed by: bde
2005-04-21 23:07:20 +00:00
kan
efa3870bbf
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
jkoshy
f721107265
Add event aliases for P6 and K8 PMCs.
2005-04-21 05:50:25 +00:00
marcel
c7673a8a31
Build libpmc on all architectures (FWIW :-)
...
Ok'd by: jkoshy@
2005-04-20 20:50:32 +00:00