summaryrefslogtreecommitdiff
path: root/libc
diff options
context:
space:
mode:
authorEric Andersen <andersen@codepoet.org>2007-02-02 00:37:06 +0000
committerEric Andersen <andersen@codepoet.org>2007-02-02 00:37:06 +0000
commit94b7f1f35ed787871f72c1d400817e80a546a14e (patch)
tree7616151bc9da42bfea6a458c83151575f96ef17b /libc
parentb38dc057f7bff85d052b5560aecd17ce78efabc0 (diff)
fix lock naming
Diffstat (limited to 'libc')
-rw-r--r--libc/inet/resolv.c12
1 files changed, 6 insertions, 6 deletions
diff --git a/libc/inet/resolv.c b/libc/inet/resolv.c
index a910c9adf..403f5c73f 100644
--- a/libc/inet/resolv.c
+++ b/libc/inet/resolv.c
@@ -753,11 +753,11 @@ int attribute_hidden __dns_lookup(const char *name, int type, int nscount, char
++local_id;
local_id &= 0xffff;
h.id = local_id;
- BIGLOCK;
+ __UCLIBC_MUTEX_LOCK(mylock);
/* this is really __nameserver[] which is a global that
needs a lock!! */
dns = nsip[local_ns];
- BIGUNLOCK;
+ __UCLIBC_MUTEX_UNLOCK(mylock);
h.qdcount = 1;
h.rd = 1;
@@ -792,11 +792,11 @@ int attribute_hidden __dns_lookup(const char *name, int type, int nscount, char
retries+1, NAMESERVER_PORT, dns);
#ifdef __UCLIBC_HAS_IPV6__
- BIGLOCK;
+ __UCLIBC_MUTEX_LOCK(mylock);
/* 'dns' is really __nameserver[] which is a global that
needs a lock!! */
v6 = inet_pton(AF_INET6, dns, &sa6.sin6_addr) > 0;
- BIGUNLOCK;
+ __UCLIBC_MUTEX_UNLOCK(mylock);
fd = socket(v6 ? AF_INET6 : AF_INET, SOCK_DGRAM, IPPROTO_UDP);
#else
fd = socket(AF_INET, SOCK_DGRAM, IPPROTO_UDP);
@@ -817,11 +817,11 @@ int attribute_hidden __dns_lookup(const char *name, int type, int nscount, char
#endif
sa.sin_family = AF_INET;
sa.sin_port = htons(NAMESERVER_PORT);
- BIGLOCK;
+ __UCLIBC_MUTEX_LOCK(mylock);
/* 'dns' is really __nameserver[] which is a global that
needs a lock!! */
sa.sin_addr.s_addr = inet_addr(dns);
- BIGUNLOCK;
+ __UCLIBC_MUTEX_UNLOCK(mylock);
rc = connect(fd, (struct sockaddr *) &sa, sizeof(sa));
#ifdef __UCLIBC_HAS_IPV6__
}