summaryrefslogtreecommitdiff
path: root/libc/inet/rpc
diff options
context:
space:
mode:
authorEric Andersen <andersen@codepoet.org>2002-08-16 04:49:08 +0000
committerEric Andersen <andersen@codepoet.org>2002-08-16 04:49:08 +0000
commitf106775df14dbd1af2f1e0d3b1b3c67c167f8ce0 (patch)
treeff8ad77949aae56db49e68538ea3fe7a1914211c /libc/inet/rpc
parent7166f6c6fed92ab07fbfa66b50816827012eac9d (diff)
Replace all instances of _LIBC_REENTRANT with __UCLIBC_HAS_THREADS__
-Erik
Diffstat (limited to 'libc/inet/rpc')
-rw-r--r--libc/inet/rpc/rcmd.c20
1 files changed, 10 insertions, 10 deletions
diff --git a/libc/inet/rpc/rcmd.c b/libc/inet/rpc/rcmd.c
index de7433d46..b8138497c 100644
--- a/libc/inet/rpc/rcmd.c
+++ b/libc/inet/rpc/rcmd.c
@@ -38,8 +38,8 @@ static char sccsid[] = "@(#)rcmd.c 8.3 (Berkeley) 3/26/94";
#define __FORCE_GLIBC
#include <features.h>
-#ifdef _LIBC_REENTRANT
-#undef _LIBC_REENTRANT
+#ifdef __UCLIBC_HAS_THREADS__
+#undef __UCLIBC_HAS_THREADS__
#warning FIXME I am not reentrant yet...
#endif
@@ -81,7 +81,7 @@ int rcmd(ahost, rport, locuser, remuser, cmd, fd2p)
const char *locuser, *remuser, *cmd;
int *fd2p;
{
-#ifdef _LIBC_REENTRANT
+#ifdef __UCLIBC_HAS_THREADS__
int herr;
struct hostent hostbuf;
size_t hstbuflen;
@@ -97,7 +97,7 @@ int rcmd(ahost, rport, locuser, remuser, cmd, fd2p)
pid = getpid();
-#ifdef _LIBC_REENTRANT
+#ifdef __UCLIBC_HAS_THREADS__
hstbuflen = 1024;
#ifdef __UCLIBC_HAS_MMU__
tmphstbuf = alloca (hstbuflen);
@@ -304,14 +304,14 @@ int ruserok(rhost, superuser, ruser, luser)
struct hostent *hp;
u_int32_t addr;
char **ap;
-#ifdef _LIBC_REENTRANT
+#ifdef __UCLIBC_HAS_THREADS__
size_t buflen;
char *buffer;
int herr;
struct hostent hostbuf;
#endif
-#ifdef _LIBC_REENTRANT
+#ifdef __UCLIBC_HAS_THREADS__
buflen = 1024;
#ifdef __UCLIBC_HAS_MMU__
buffer = alloca (buflen);
@@ -437,7 +437,7 @@ iruserok2 (raddr, superuser, ruser, luser, rhost)
size_t dirlen;
uid_t uid;
-#ifdef _LIBC_REENTRANT
+#ifdef __UCLIBC_HAS_THREADS__
size_t buflen = sysconf (_SC_GETPW_R_SIZE_MAX);
struct passwd pwdbuf;
#ifdef __UCLIBC_HAS_MMU__
@@ -520,7 +520,7 @@ __icheckhost (u_int32_t raddr, char *lhost, const char *rhost)
int negate=1; /* Multiply return with this to get -1 instead of 1 */
char **pp;
-#ifdef _LIBC_REENTRANT
+#ifdef __UCLIBC_HAS_THREADS__
int save_errno;
size_t buflen;
char *buffer;
@@ -550,7 +550,7 @@ __icheckhost (u_int32_t raddr, char *lhost, const char *rhost)
return negate * (! (raddr ^ laddr));
/* Better be a hostname. */
-#ifdef _LIBC_REENTRANT
+#ifdef __UCLIBC_HAS_THREADS__
buflen = 1024;
buffer = malloc(buflen);
save_errno = errno;
@@ -564,7 +564,7 @@ __icheckhost (u_int32_t raddr, char *lhost, const char *rhost)
__set_errno (save_errno);
#else
hp = gethostbyname(lhost);
-#endif /* _LIBC_REENTRANT */
+#endif /* __UCLIBC_HAS_THREADS__ */
if (hp == NULL)
return 0;