]> git.saurik.com Git - apple/libresolv.git/commitdiff
libresolv-40.tar.gz mac-os-x-1063 v40
authorApple <opensource@apple.com>
Tue, 6 Oct 2009 22:11:25 +0000 (22:11 +0000)
committerApple <opensource@apple.com>
Tue, 6 Oct 2009 22:11:25 +0000 (22:11 +0000)
Makefile
dns_async.c
dns_plugin.c

index 1f10d4f8fa45ef50ebeec32962505cfc3abf8202..768c5b7f3d5a2ccb9d514771ca6441911fb8e96c 100644 (file)
--- a/Makefile
+++ b/Makefile
@@ -30,20 +30,20 @@ endif
 
 include $(MAKEFILEPATH)/CoreOS/ReleaseControl/BSDCommon.make
 
-build:: dns.so
-
 PLUGIN_LD_Flags = -L$(SYMROOT) -lresolv.9
 PLUGIN_CC_Flags = -bundle
 
 PLUGIN_DEST = $(DSTROOT)/$(DESTDIR)usr/lib/info
 
+build:: dns.so
+
 dns.so: dns_plugin.c
-       cc -c $(CFLAGS) dns_plugin.c
-       cc $(PLUGIN_CC_Flags) $(LDFLAGS) $(PLUGIN_LD_Flags) -o $(SYMROOT)/dns.so dns_plugin.o
-       dsymutil --out=$(SYMROOT)/dns.so.dSYM $(SYMROOT)/dns.so || exit 0
+       $(CC) -c $(CFLAGS) dns_plugin.c
+       $(CC) $(PLUGIN_CC_Flags) $(LDFLAGS) $(PLUGIN_LD_Flags) -o $(SYMROOT)/dns.so dns_plugin.o
+       $(DSYMUTIL) --out=$(SYMROOT)/dns.so.dSYM $(SYMROOT)/dns.so || exit 0
        $(INSTALL_DIRECTORY) $(PLUGIN_DEST)
        $(INSTALL_LIBRARY) $(SYMROOT)/dns.so $(PLUGIN_DEST)
-       strip -S $(PLUGIN_DEST)/dns.so
+       $(STRIP) -S $(PLUGIN_DEST)/dns.so
 
 after_install:
        $(INSTALL_DIRECTORY) $(DSTROOT)/usr/include/arpa
index 66bff8bf97f850935c81212560905a85acccebfa..058924999badcf4133e3555ff9700ea50632a04c 100644 (file)
@@ -147,7 +147,7 @@ dns_async_start(mach_port_t *p, const char *name, uint16_t dnsclass, uint16_t dn
        c = dnsclass;
        t = dnstype;
 
-       *p = si_async_call(dns, call, name, NULL, c, t, 0, 0, (void *)_dns_callback, (void *)my_ctx);
+       *p = si_async_call(dns, call, name, NULL, NULL, c, t, 0, 0, (void *)_dns_callback, (void *)my_ctx);
        if (*p == MACH_PORT_NULL)
        {
                free(my_ctx);
index 58d8de62a8a270c6d91564dcb8be5eadbce03b4c..8b1727581c27a493ccb20867f129a554d716a2f5 100644 (file)
@@ -442,7 +442,7 @@ dns_reply_to_hostent(dns_reply_t *r, int af, const char *addr, dns_build_hostent
 }
 
 static si_item_t *
-_internal_host_byname(si_mod_t *si, const char *name, int af, uint32_t *err, int which)
+_internal_host_byname(si_mod_t *si, const char *name, int af, const char *ignored, uint32_t *err, int which)
 {
        uint32_t type;
        dns_reply_t *r;
@@ -520,19 +520,19 @@ _internal_host_byname(si_mod_t *si, const char *name, int af, uint32_t *err, int
 }
 
 si_item_t *
-dns_host_byname(si_mod_t *si, const char *name, int af, uint32_t *err)
+dns_host_byname(si_mod_t *si, const char *name, int af, const char *ignored, uint32_t *err)
 {
-       return _internal_host_byname(si, name, af, err, MODULE_DNS);
+       return _internal_host_byname(si, name, af, NULL, err, MODULE_DNS);
 }
 
 si_item_t *
-mdns_host_byname(si_mod_t *si, const char *name, int af, uint32_t *err)
+mdns_host_byname(si_mod_t *si, const char *name, int af, const char *ignored, uint32_t *err)
 {
-       return _internal_host_byname(si, name, af, err, MODULE_MDNS);
+       return _internal_host_byname(si, name, af, NULL, err, MODULE_MDNS);
 }
 
 static si_item_t *
-_internal_host_byaddr(si_mod_t *si, const void *addr, int af, uint32_t *err, int which)
+_internal_host_byaddr(si_mod_t *si, const void *addr, int af, const char *ignored, uint32_t *err, int which)
 {
        uint32_t type;
        dns_reply_t *r;
@@ -629,22 +629,22 @@ _internal_host_byaddr(si_mod_t *si, const void *addr, int af, uint32_t *err, int
 }
 
 si_item_t *
-dns_host_byaddr(si_mod_t *si, const void *addr, int af, uint32_t *err)
+dns_host_byaddr(si_mod_t *si, const void *addr, int af, const char *ignored, uint32_t *err)
 {
-       return _internal_host_byaddr(si, addr, af, err, MODULE_DNS);
+       return _internal_host_byaddr(si, addr, af, NULL, err, MODULE_DNS);
 }
 
 si_item_t *
-mdns_host_byaddr(si_mod_t *si, const void *addr, int af, uint32_t *err)
+mdns_host_byaddr(si_mod_t *si, const void *addr, int af, const char *ignored, uint32_t *err)
 {
-       return _internal_host_byaddr(si, addr, af, err, MODULE_MDNS);
+       return _internal_host_byaddr(si, addr, af, NULL, err, MODULE_MDNS);
 }
 
 /*
  * We support dns_async_start / cancel / handle_reply using dns_item_call
  */
 static si_item_t *
-_internal_item_call(si_mod_t *si, int call, const char *name, const char *ignored, uint32_t class, uint32_t type, uint32_t *err, int which)
+_internal_item_call(si_mod_t *si, int call, const char *name, const char *ignored1, const char *ignored2, uint32_t class, uint32_t type, uint32_t *err, int which)
 {
        dns_handle_t dns;
        char buf[DNS_MAX_RECEIVE_SIZE];
@@ -699,15 +699,15 @@ _internal_item_call(si_mod_t *si, int call, const char *name, const char *ignore
 }
 
 si_item_t *
-dns_item_call(si_mod_t *si, int call, const char *name, const char *ignored, uint32_t class, uint32_t type, uint32_t *err)
+dns_item_call(si_mod_t *si, int call, const char *name, const char *ignored1, const char *ignored2, uint32_t class, uint32_t type, uint32_t *err)
 {
-       return _internal_item_call(si, call, name, ignored, class, type, err, MODULE_DNS);
+       return _internal_item_call(si, call, name, ignored1, ignored2, class, type, err, MODULE_DNS);
 }
 
 si_item_t *
-mdns_item_call(si_mod_t *si, int call, const char *name, const char *ignored, uint32_t class, uint32_t type, uint32_t *err)
+mdns_item_call(si_mod_t *si, int call, const char *name, const char *ignored1, const char *ignored2, uint32_t class, uint32_t type, uint32_t *err)
 {
-       return _internal_item_call(si, call, name, ignored, class, type, err, MODULE_MDNS);
+       return _internal_item_call(si, call, name, ignored1, ignored2, class, type, err, MODULE_MDNS);
 }
 
 int
@@ -788,4 +788,3 @@ mdns_init(si_mod_t *si)
 
        return 0;
 }
-