mirror of
git://sourceware.org/git/glibc.git
synced 2025-03-25 13:51:04 +08:00
resolv: Remove traces of ULTRIX support
This commit is contained in:
parent
18b36f5dcf
commit
687c1c0ce2
@ -1,3 +1,8 @@
|
||||
2016-04-28 Florian Weimer <fweimer@redhat.com>
|
||||
|
||||
* resolv/res_comp.c: Remove code conditional on __ultrix__.
|
||||
* resolv/res_data.c: Remove code conditional on ultrix.
|
||||
|
||||
2016-04-28 Florian Weimer <fweimer@redhat.com>
|
||||
|
||||
* resolv/res_init.c (RFC1535): Do not define. Remove
|
||||
|
@ -241,10 +241,8 @@ void __putlong(u_int32_t src, u_char *dst) { ns_put32(src, dst); }
|
||||
libresolv_hidden_def (__putlong)
|
||||
void __putshort(u_int16_t src, u_char *dst) { ns_put16(src, dst); }
|
||||
libresolv_hidden_def (__putshort)
|
||||
#ifndef __ultrix__
|
||||
u_int32_t _getlong(const u_char *src) { return (ns_get32(src)); }
|
||||
u_int16_t _getshort(const u_char *src) { return (ns_get16(src)); }
|
||||
#endif /*__ultrix__*/
|
||||
#endif /*BIND_4_COMPAT*/
|
||||
|
||||
|
||||
|
@ -186,23 +186,6 @@ hostalias(const char *name) {
|
||||
}
|
||||
libresolv_hidden_def (hostalias)
|
||||
|
||||
#ifdef ultrix
|
||||
int
|
||||
local_hostname_length(const char *hostname) {
|
||||
int len_host, len_domain;
|
||||
|
||||
if (!*_res.defdname)
|
||||
res_init();
|
||||
len_host = strlen(hostname);
|
||||
len_domain = strlen(_res.defdname);
|
||||
if (len_host > len_domain &&
|
||||
!strcasecmp(hostname + len_host - len_domain, _res.defdname) &&
|
||||
hostname[len_host - len_domain - 1] == '.')
|
||||
return (len_host - len_domain - 1);
|
||||
return (0);
|
||||
}
|
||||
#endif /*ultrix*/
|
||||
|
||||
#endif
|
||||
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user